Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CardMech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
KIT
Mpp
CardMech
Commits
c659ea9a
Commit
c659ea9a
authored
3 years ago
by
jonathan.froehlich
Browse files
Options
Downloads
Patches
Plain Diff
Removed MixedElasticity from compilation
parent
8e284c6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!153
Local add output info
,
!144
Debug cardmech
,
!108
Resolve "Remove orientation specific material formulation"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cardmech/src/elasticity/assemble/CMakeLists.txt
+1
-1
1 addition, 1 deletion
cardmech/src/elasticity/assemble/CMakeLists.txt
cardmech/src/elasticity/assemble/MixedElasticity.cpp
+6
-3
6 additions, 3 deletions
cardmech/src/elasticity/assemble/MixedElasticity.cpp
with
7 additions
and
4 deletions
cardmech/src/elasticity/assemble/CMakeLists.txt
+
1
−
1
View file @
c659ea9a
...
...
@@ -2,7 +2,7 @@ add_library(ELASTICITY_ASSEMBLE STATIC
TimeScheme.cpp
FiniteElasticity.cpp
LagrangeElasticity.cpp
MixedElasticity.cpp
#
MixedElasticity.cpp
)
target_link_libraries
(
ELASTICITY_ASSEMBLE ELASTICITY_PROBLEMS
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
cardmech/src/elasticity/assemble/MixedElasticity.cpp
+
6
−
3
View file @
c659ea9a
...
...
@@ -30,7 +30,8 @@ void MixedElasticity::Energy(const cell &c, const Vector &W, double &energy) con
Tensor
Du
=
E
.
VelocityFieldGradient
(
q
,
W
);
Tensor
F
=
FA_inv
+
Q
*
Du
*
FA_inv
*
QI
;
energy
+=
w
*
mat
::
isochoric_energy
(
eProblem
.
GetMaterial
(
d_part
<
2
),
Q
*
F
*
QI
);
energy
+=
w
*
mat
::
isochoric_energy
(
eProblem
.
GetMaterial
(
d_part
<
2
),
<
#
initializer
#
>
,
Q
*
F
*
QI
);
energy
+=
w
*
p
*
mat
::
volumetric_energy
(
eProblem
.
GetMaterial
(
d_part
<
2
),
det
(
F
));
}
}
...
...
@@ -100,7 +101,8 @@ void MixedElasticity::Jacobi(const cell &c, const Vector &W, Matrix &A) const {
// Deviatoric Piola Kirchhoff Stress
A_c
(
E
.
VelocityIndex
(),
E
.
VelocityIndex
(),
i
,
j
,
k
,
l
)
-=
w
*
mat
::
isochoric_second_derivative
(
eProblem
.
GetMaterial
(
d_part
<
2
),
F
,
w
*
mat
::
isochoric_second_derivative
(
eProblem
.
GetMaterial
(
d_part
<
2
),
Q
,
F
,
Q
*
F_ik
*
FA_inv
*
QI
,
Q
*
F_jl
*
FA_inv
*
QI
);
// Volumetric Piola Kirchhoff Stress
...
...
@@ -172,6 +174,7 @@ void MixedElasticity::Residual(const cell &c, const Vector &W, Vector &r) const
// Deviatoric Piola Kirchhoff Stress
r_c
(
E
.
VelocityIndex
(),
i
,
k
)
-=
w
*
mat
::
isochoric_derivative
(
eProblem
.
GetMaterial
(
d_part
<
2
),
<
#
initializer
#
>
,
F
,
Q
*
F_ik
*
FA_inv
*
QI
);
// Volumetric Piola Kirchhoff Stress
r_c
(
E
.
VelocityIndex
(),
i
,
k
)
-=
w
*
p
*
...
...
@@ -238,7 +241,7 @@ void MixedElasticity::GetStress(const Vector &W, Vector &stress) const {
Tensor
F
=
FA_inv
+
Q
*
DeformationGradient
(
Du
)
*
FA_inv
*
QI
;
//double W = mProblem.GetMaterial(d_part < 2)->W(F, Q, FA_inv);
double
W
=
w
*
mat
::
isochoric_energy
(
eProblem
.
GetMaterial
(
d_part
<
2
),
F
);
double
W
=
w
*
mat
::
isochoric_energy
(
eProblem
.
GetMaterial
(
d_part
<
2
),
<
#
initializer
#
>
,
F
);
for
(
int
i
=
0
;
i
<
E
.
VelocitySize
();
++
i
)
{
// Acceleration
...
...
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