Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Container 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ansgar Burchardt
dune-elasticity
Commits
d229081d
Commit
d229081d
authored
6 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Switch to Mooney Rivlin with Adol-C material
parent
03794bdf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nonlinelast.cc
+14
-4
14 additions, 4 deletions
nonlinelast.cc
with
14 additions
and
4 deletions
nonlinelast.cc
+
14
−
4
View file @
d229081d
#include
<config.h>
#include
<dune/fufem/utilities/adolcnamespaceinjections.hh>
#include
<dune/common/parametertreeparser.hh>
#include
<dune/common/bitsetvector.hh>
...
...
@@ -34,6 +35,8 @@
#include
<dune/elasticity/common/nonlinearelasticityproblem.hh>
#define LAURSEN
#include
<dune/elasticity/materials/neohookeanmaterial.hh>
#include
<dune/elasticity/materials/adolcmaterial.hh>
#include
<dune/elasticity/materials/mooneyrivlinmaterial.hh>
// The grid dimension
const
int
dim
=
3
;
...
...
@@ -152,11 +155,17 @@ int main (int argc, char *argv[]) try
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
P1Basis
p1Basis
(
grid
->
leafGridView
());
typedef
NeoHookeanMaterial
<
P1Basis
>
MaterialType
;
//typedef NeoHookeanMaterial<P1Basis> MaterialType;
MooneyRivlinMaterial
<
P1Basis
>
localEnergy
(
p1Basis
,
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"nu"
));
using
MaterialType
=
AdolcMaterial
<
P1Basis
>
;
MaterialType
material
(
p1Basis
,
localEnergy
,
parameterSet
.
get
<
bool
>
(
"vectorMode"
));
/*
MaterialType material(p1Basis,
parameterSet.get<double>("E"),
parameterSet.get<double>("nu"));
*/
// ///////////////////////////////////////////////////
// Do a homotopy of the Dirichlet boundary data
...
...
@@ -291,9 +300,10 @@ int main (int argc, char *argv[]) try
typedef
P2NodalBasis
<
GridType
::
LeafGridView
>
P2Basis
;
P2Basis
p2Basis
(
grid
->
leafGridView
());
typedef
NeoHookea
nMaterial
<
P2Basis
>
MaterialType
P
2
;
MaterialType
P
2
p2
Material
(
p2Basis
,
parameterSet
.
get
<
field_type
>
(
"E"
),
typedef
MooneyRivli
nMaterial
<
P2Basis
>
MaterialType2
;
MaterialType2
p2
localEnergy
(
p2Basis
,
parameterSet
.
get
<
field_type
>
(
"E"
),
parameterSet
.
get
<
field_type
>
(
"nu"
));
AdolcMaterial
<
P2Basis
>
p2Material
(
p2Basis
,
p2localEnergy
,
false
);
// P2 Forces
VectorType
p2ExtForces
(
p2Basis
.
size
());
...
...
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