Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
8ab416b7
Commit
8ab416b7
authored
8 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MatL] Correct s_odot_s() product for 2D cases.
parent
6a267aec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MaterialLib/SolidModels/Ehlers-impl.h
+8
-40
8 additions, 40 deletions
MaterialLib/SolidModels/Ehlers-impl.h
MaterialLib/SolidModels/Ehlers.cpp
+61
-0
61 additions, 0 deletions
MaterialLib/SolidModels/Ehlers.cpp
with
69 additions
and
40 deletions
MaterialLib/SolidModels/Ehlers-impl.h
+
8
−
40
View file @
8ab416b7
...
@@ -43,6 +43,14 @@ namespace Solids
...
@@ -43,6 +43,14 @@ namespace Solids
{
{
namespace
Ehlers
namespace
Ehlers
{
{
/// Special product of \p v with itself: \f$v \odot v\f$.
/// v is given in \p Kelvin mapping.
/// \note Implementation only for 2 and 3 dimensions.
template
<
int
DisplacementDim
>
ProcessLib
::
KelvinMatrixType
<
DisplacementDim
>
s_odot_s
(
ProcessLib
::
KelvinVectorType
<
DisplacementDim
>
const
&
v
);
template
<
int
DisplacementDim
>
template
<
int
DisplacementDim
>
struct
PhysicalStressWithInvariants
final
struct
PhysicalStressWithInvariants
final
{
{
...
@@ -216,46 +224,6 @@ void calculatePlasticResidual(
...
@@ -216,46 +224,6 @@ void calculatePlasticResidual(
yieldFunction
<
DisplacementDim
>
(
s
,
_mp
,
t
,
x
)
/
G
;
yieldFunction
<
DisplacementDim
>
(
s
,
_mp
,
t
,
x
)
/
G
;
}
}
/// Special product of \p v with itself: \f$v \odot v\f$.
/// v is given in \p Kelvin mapping.
template
<
int
DisplacementDim
>
ProcessLib
::
KelvinMatrixType
<
DisplacementDim
>
s_odot_s
(
ProcessLib
::
KelvinVectorType
<
DisplacementDim
>
const
&
v
)
{
ProcessLib
::
KelvinMatrixType
<
DisplacementDim
>
result
;
result
(
0
,
0
)
=
v
(
0
)
*
v
(
0
);
result
(
0
,
1
)
=
result
(
1
,
0
)
=
v
(
3
)
*
v
(
3
)
/
2.
;
result
(
0
,
2
)
=
result
(
2
,
0
)
=
v
(
5
)
*
v
(
5
)
/
2.
;
result
(
0
,
3
)
=
result
(
3
,
0
)
=
v
(
0
)
*
v
(
3
);
result
(
0
,
4
)
=
result
(
4
,
0
)
=
v
(
3
)
*
v
(
5
)
/
std
::
sqrt
(
2.
);
result
(
0
,
5
)
=
result
(
5
,
0
)
=
v
(
0
)
*
v
(
5
);
result
(
1
,
1
)
=
v
(
1
)
*
v
(
1
);
result
(
1
,
2
)
=
result
(
2
,
1
)
=
v
(
4
)
*
v
(
4
)
/
2.
;
result
(
1
,
3
)
=
result
(
3
,
1
)
=
v
(
3
)
*
v
(
1
);
result
(
1
,
4
)
=
result
(
4
,
1
)
=
v
(
1
)
*
v
(
4
);
result
(
1
,
5
)
=
result
(
5
,
1
)
=
v
(
3
)
*
v
(
4
)
/
std
::
sqrt
(
2.
);
result
(
2
,
2
)
=
v
(
2
)
*
v
(
2
);
result
(
2
,
3
)
=
result
(
3
,
2
)
=
v
(
5
)
*
v
(
4
)
/
std
::
sqrt
(
2.
);
result
(
2
,
4
)
=
result
(
4
,
2
)
=
v
(
4
)
*
v
(
2
);
result
(
2
,
5
)
=
result
(
5
,
2
)
=
v
(
5
)
*
v
(
2
);
result
(
3
,
3
)
=
v
(
0
)
*
v
(
1
)
+
v
(
3
)
*
v
(
3
)
/
2.
;
result
(
3
,
4
)
=
result
(
4
,
3
)
=
v
(
3
)
*
v
(
4
)
/
2.
+
v
(
5
)
*
v
(
1
)
/
std
::
sqrt
(
2.
);
result
(
3
,
5
)
=
result
(
5
,
3
)
=
v
(
0
)
*
v
(
4
)
/
std
::
sqrt
(
2.
)
+
v
(
3
)
*
v
(
5
)
/
2.
;
result
(
4
,
4
)
=
v
(
1
)
*
v
(
2
)
+
v
(
4
)
*
v
(
4
)
/
2.
;
result
(
4
,
5
)
=
result
(
5
,
4
)
=
v
(
3
)
*
v
(
2
)
/
std
::
sqrt
(
2.
)
+
v
(
5
)
*
v
(
4
)
/
2.
;
result
(
5
,
5
)
=
v
(
0
)
*
v
(
2
)
+
v
(
5
)
*
v
(
5
)
/
2.
;
return
result
;
}
template
<
int
DisplacementDim
>
template
<
int
DisplacementDim
>
void
calculatePlasticJacobian
(
void
calculatePlasticJacobian
(
double
const
dt
,
double
const
dt
,
...
...
This diff is collapsed.
Click to expand it.
MaterialLib/SolidModels/Ehlers.cpp
+
61
−
0
View file @
8ab416b7
...
@@ -18,6 +18,67 @@ namespace Ehlers
...
@@ -18,6 +18,67 @@ namespace Ehlers
template
class
SolidEhlers
<
2
>;
template
class
SolidEhlers
<
2
>;
template
class
SolidEhlers
<
3
>;
template
class
SolidEhlers
<
3
>;
template
<
>
ProcessLib
::
KelvinMatrixType
<
3
>
s_odot_s
<
3
>
(
ProcessLib
::
KelvinVectorType
<
3
>
const
&
v
)
{
ProcessLib
::
KelvinMatrixType
<
3
>
result
;
result
(
0
,
0
)
=
v
(
0
)
*
v
(
0
);
result
(
0
,
1
)
=
result
(
1
,
0
)
=
v
(
3
)
*
v
(
3
)
/
2.
;
result
(
0
,
2
)
=
result
(
2
,
0
)
=
v
(
5
)
*
v
(
5
)
/
2.
;
result
(
0
,
3
)
=
result
(
3
,
0
)
=
v
(
0
)
*
v
(
3
);
result
(
0
,
4
)
=
result
(
4
,
0
)
=
v
(
3
)
*
v
(
5
)
/
std
::
sqrt
(
2.
);
result
(
0
,
5
)
=
result
(
5
,
0
)
=
v
(
0
)
*
v
(
5
);
result
(
1
,
1
)
=
v
(
1
)
*
v
(
1
);
result
(
1
,
2
)
=
result
(
2
,
1
)
=
v
(
4
)
*
v
(
4
)
/
2.
;
result
(
1
,
3
)
=
result
(
3
,
1
)
=
v
(
3
)
*
v
(
1
);
result
(
1
,
4
)
=
result
(
4
,
1
)
=
v
(
1
)
*
v
(
4
);
result
(
1
,
5
)
=
result
(
5
,
1
)
=
v
(
3
)
*
v
(
4
)
/
std
::
sqrt
(
2.
);
result
(
2
,
2
)
=
v
(
2
)
*
v
(
2
);
result
(
2
,
3
)
=
result
(
3
,
2
)
=
v
(
5
)
*
v
(
4
)
/
std
::
sqrt
(
2.
);
result
(
2
,
4
)
=
result
(
4
,
2
)
=
v
(
4
)
*
v
(
2
);
result
(
2
,
5
)
=
result
(
5
,
2
)
=
v
(
5
)
*
v
(
2
);
result
(
3
,
3
)
=
v
(
0
)
*
v
(
1
)
+
v
(
3
)
*
v
(
3
)
/
2.
;
result
(
3
,
4
)
=
result
(
4
,
3
)
=
v
(
3
)
*
v
(
4
)
/
2.
+
v
(
5
)
*
v
(
1
)
/
std
::
sqrt
(
2.
);
result
(
3
,
5
)
=
result
(
5
,
3
)
=
v
(
0
)
*
v
(
4
)
/
std
::
sqrt
(
2.
)
+
v
(
3
)
*
v
(
5
)
/
2.
;
result
(
4
,
4
)
=
v
(
1
)
*
v
(
2
)
+
v
(
4
)
*
v
(
4
)
/
2.
;
result
(
4
,
5
)
=
result
(
5
,
4
)
=
v
(
3
)
*
v
(
2
)
/
std
::
sqrt
(
2.
)
+
v
(
5
)
*
v
(
4
)
/
2.
;
result
(
5
,
5
)
=
v
(
0
)
*
v
(
2
)
+
v
(
5
)
*
v
(
5
)
/
2.
;
return
result
;
}
template
<
>
ProcessLib
::
KelvinMatrixType
<
2
>
s_odot_s
<
2
>
(
ProcessLib
::
KelvinVectorType
<
2
>
const
&
v
)
{
ProcessLib
::
KelvinMatrixType
<
2
>
result
;
result
(
0
,
0
)
=
v
(
0
)
*
v
(
0
);
result
(
0
,
1
)
=
result
(
1
,
0
)
=
v
(
3
)
*
v
(
3
)
/
2.
;
result
(
0
,
2
)
=
result
(
2
,
0
)
=
0
;
result
(
0
,
3
)
=
result
(
3
,
0
)
=
v
(
0
)
*
v
(
3
);
result
(
1
,
1
)
=
v
(
1
)
*
v
(
1
);
result
(
1
,
2
)
=
result
(
2
,
1
)
=
0
;
result
(
1
,
3
)
=
result
(
3
,
1
)
=
v
(
3
)
*
v
(
1
);
result
(
2
,
2
)
=
v
(
2
)
*
v
(
2
);
result
(
2
,
3
)
=
result
(
3
,
2
)
=
0
;
result
(
3
,
3
)
=
v
(
0
)
*
v
(
1
)
+
v
(
3
)
*
v
(
3
)
/
2.
;
return
result
;
}
}
// namespace Ehlers
}
// namespace Ehlers
}
// namespace Solids
}
// namespace Solids
}
// namespace MaterialLib
}
// namespace MaterialLib
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment