Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-microstructure-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Klaus Böhnlein
dune-microstructure-backup
Commits
87b6c39d
Commit
87b6c39d
authored
3 years ago
by
Klaus Böhnlein
Browse files
Options
Downloads
Patches
Plain Diff
Update Compute_MuGamma for parametrized_Laminate
parent
da38561b
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
inputs/computeMuGamma.parset
+4
-4
4 additions, 4 deletions
inputs/computeMuGamma.parset
src/Compute_MuGamma.cc
+40
-16
40 additions, 16 deletions
src/Compute_MuGamma.cc
with
44 additions
and
20 deletions
inputs/computeMuGamma.parset
+
4
−
4
View file @
87b6c39d
...
@@ -29,8 +29,7 @@
...
@@ -29,8 +29,7 @@
nElements = 32 32
nElements = 32 32
gamma=100
gamma=1000000
#############################################
#############################################
# Material parameters
# Material parameters
...
@@ -49,6 +48,7 @@ lambda1=0.0
...
@@ -49,6 +48,7 @@ lambda1=0.0
#### material_implementation("analytical_Example") ?
#### material_implementation("analytical_Example") ?
material_prestrain_imp= "parametrized_Laminate"
material_prestrain_imp= "parametrized_Laminate"
#material_prestrain_imp= "analytical_Example"
#material_prestrain_imp= "analytical_Example"
#material_prestrain_imp ="isotropic_bilayer"
#material_prestrain_imp ="isotropic_bilayer"
...
@@ -60,13 +60,13 @@ material_prestrain_imp= "parametrized_Laminate"
...
@@ -60,13 +60,13 @@ material_prestrain_imp= "parametrized_Laminate"
# Prestrain parameters
# Prestrain parameters
#############################################
#############################################
write_prestrainFunctions =
tru
e # VTK norm of B ,
write_prestrainFunctions =
fals
e # VTK norm of B ,
rho1=1.0
rho1=1.0
alpha=2.0
alpha=2.0
theta=0.
5418592964824
12
theta=0.12
5
#theta = 0.3 # volume fraction #default = 1.0/4.0
#theta = 0.3 # volume fraction #default = 1.0/4.0
#theta = 0.25 # volume fraction
#theta = 0.25 # volume fraction
...
...
This diff is collapsed.
Click to expand it.
src/Compute_MuGamma.cc
+
40
−
16
View file @
87b6c39d
...
@@ -748,7 +748,7 @@ int main(int argc, char *argv[])
...
@@ -748,7 +748,7 @@ int main(int argc, char *argv[])
log
<<
"material_prestrain used: "
<<
imp
<<
std
::
endl
;
log
<<
"material_prestrain used: "
<<
imp
<<
std
::
endl
;
double
gamma
=
parameterSet
.
get
<
double
>
(
"gamma"
,
1.0
);
double
gamma
=
parameterSet
.
get
<
double
>
(
"gamma"
,
1.0
);
double
theta
=
parameterSet
.
get
<
double
>
(
"theta"
,
1.0
/
4.0
);
double
theta
=
parameterSet
.
get
<
double
>
(
"theta"
,
1.0
/
4.0
);
double
mu1
=
parameterSet
.
get
<
double
>
(
"mu1"
,
1
0
.0
);
double
mu1
=
parameterSet
.
get
<
double
>
(
"mu1"
,
1.0
);
double
beta
=
parameterSet
.
get
<
double
>
(
"beta"
,
2.0
);
double
beta
=
parameterSet
.
get
<
double
>
(
"beta"
,
2.0
);
double
mu2
=
beta
*
mu1
;
double
mu2
=
beta
*
mu1
;
std
::
cout
<<
"Gamma:"
<<
gamma
<<
std
::
endl
;
std
::
cout
<<
"Gamma:"
<<
gamma
<<
std
::
endl
;
...
@@ -887,25 +887,49 @@ int main(int argc, char *argv[])
...
@@ -887,25 +887,49 @@ int main(int argc, char *argv[])
// Vector zeroVec(basis.size());
// Vector zeroVec(basis.size());
// zeroVec = 0;
// zeroVec = 0;
// std::cout << "TEST computeMuGamma:" << computeMuGamma(basis, zeroVec, gamma, muLocal, ForceLocal)<< std::endl;
// std::cout << "TEST computeMuGamma:" << computeMuGamma(basis, zeroVec, gamma, muLocal, ForceLocal)<< std::endl;
std
::
cout
<<
" --- print analytic solutions(if possible) --- "
<<
std
::
endl
;
std
::
cout
<<
" --- print analytic solutions --- "
<<
std
::
endl
;
if
(
imp
==
"analytical_Example"
)
{
std
::
cout
<<
"analytical_Example"
<<
std
::
endl
;
double
q1
=
((
mu1
*
mu2
)
/
6.0
)
/
(
theta
*
mu1
+
(
1.0
-
theta
)
*
mu2
);
double
q2
=
((
1.0
-
theta
)
*
mu1
+
theta
*
mu2
)
/
6.0
;
double
hm
=
mu1
*
(
beta
/
(
theta
+
(
1
-
theta
)
*
beta
))
*
(
1.0
/
6.0
);
double
am
=
mu1
*
((
1
-
theta
)
+
theta
*
beta
)
*
(
1.0
/
6.0
);
std
::
cout
<<
"q1 : "
<<
q1
<<
std
::
endl
;
std
::
cout
<<
"q2 : "
<<
q2
<<
std
::
endl
;
std
::
cout
<<
"q3 should be between q1 and q2"
<<
std
::
endl
;
std
::
cout
<<
"hm : "
<<
hm
<<
std
::
endl
;
std
::
cout
<<
"am : "
<<
am
<<
std
::
endl
;
if
(
mu_gamma
>
q2
)
{
std
::
cout
<<
"mu_gamma > q2!!.. (39) not satisfied"
<<
std
::
endl
;
}
}
if
(
imp
==
"parametrized_Laminate"
)
{
std
::
cout
<<
"parametrized_Laminate"
<<
std
::
endl
;
double
hm
=
mu1
*
(
beta
/
(
theta
+
(
1
-
theta
)
*
beta
));
double
am
=
mu1
*
((
1
-
theta
)
+
theta
*
beta
);
double
q1
=
(
1.0
/
6.0
)
*
hm
;
double
q2
=
(
1.0
/
6.0
)
*
am
;
std
::
cout
<<
"q1 : "
<<
q1
<<
std
::
endl
;
std
::
cout
<<
"q2 : "
<<
q2
<<
std
::
endl
;
std
::
cout
<<
"q3 should be between q1 and q2"
<<
std
::
endl
;
std
::
cout
<<
"hm : "
<<
hm
<<
std
::
endl
;
std
::
cout
<<
"am : "
<<
am
<<
std
::
endl
;
if
(
mu_gamma
>
q2
)
{
std
::
cout
<<
"mu_gamma > q2!!.. (39) not satisfied"
<<
std
::
endl
;
}
}
double
q1
=
((
mu1
*
mu2
)
/
6.0
)
/
(
theta
*
mu1
+
(
1.0
-
theta
)
*
mu2
);
double
q2
=
((
1.0
-
theta
)
*
mu1
+
theta
*
mu2
)
/
6.0
;
double
hm
=
mu1
*
(
beta
/
(
theta
+
(
1
-
theta
)
*
beta
))
*
(
1.0
/
6.0
);
double
am
=
mu1
*
((
1
-
theta
)
+
theta
*
beta
)
*
(
1.0
/
6.0
);
std
::
cout
<<
"q1 : "
<<
q1
<<
std
::
endl
;
std
::
cout
<<
"q2 : "
<<
q2
<<
std
::
endl
;
std
::
cout
<<
"q3 should be between q1 and q2"
<<
std
::
endl
;
std
::
cout
<<
"hm : "
<<
hm
<<
std
::
endl
;
std
::
cout
<<
"am : "
<<
am
<<
std
::
endl
;
if
(
mu_gamma
>
q2
)
{
std
::
cout
<<
"mu_gamma > q2!!.. (39) not satisfied"
<<
std
::
endl
;
}
std
::
cout
<<
"beta : "
<<
beta
<<
std
::
endl
;
std
::
cout
<<
"beta : "
<<
beta
<<
std
::
endl
;
...
...
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