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
f281c2ff
Commit
f281c2ff
authored
10 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Make compile and use the faster NeoHooke implementation
parent
db1befe0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nonlinelast.cc
+5
-9
5 additions, 9 deletions
nonlinelast.cc
with
5 additions
and
9 deletions
nonlinelast.cc
+
5
−
9
View file @
f281c2ff
#include
<config.h>
#include
<dune/fufem/utilities/adolcnamespaceinjections.hh>
#include
<dune/common/parametertreeparser.hh>
#include
<dune/common/bitsetvector.hh>
...
...
@@ -29,12 +28,11 @@
#include
<dune/solvers/transferoperators/mandelobsrestrictor.hh>
#include
<dune/solvers/transferoperators/truncatedcompressedmgtransfer.hh>
#include
<dune/solvers/iterationsteps/trustregiongsstep.hh>
#include
<dune/solvers/solvers/trustregionsolver.hh>
#include
<dune/elasticity/common/nonlinearelasticityproblem.hh>
#include
<dune/elasticity/common/trustregionsolver.hh>
#define LAURSEN
#include
<dune/elasticity/materials/neohookeanmaterial.hh>
#include
<dune/elasticity/materials/neohookematerial.hh>
// The grid dimension
const
int
dim
=
3
;
...
...
@@ -143,11 +141,10 @@ int main (int argc, char *argv[]) try
//
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
P1Basis
p1Basis
(
grid
->
leafGridView
());
typedef
NeoHookeMaterial
<
P1Basis
>
MaterialType
;
typedef
NeoHooke
an
Material
<
P1Basis
>
MaterialType
;
MaterialType
material
(
p1Basis
,
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"nu"
),
parameterSet
.
get
<
bool
>
(
"vectorMode"
));
parameterSet
.
get
<
double
>
(
"nu"
));
// ///////////////////////////////////////////////////
...
...
@@ -287,10 +284,9 @@ int main (int argc, char *argv[]) try
typedef
P2NodalBasis
<
GridType
::
LeafGridView
>
P2Basis
;
P2Basis
p2Basis
(
grid
->
leafGridView
());
typedef
NeoHookeMaterial
<
P2Basis
>
MaterialTypeP2
;
typedef
NeoHooke
an
Material
<
P2Basis
>
MaterialTypeP2
;
MaterialTypeP2
p2Material
(
p2Basis
,
parameterSet
.
get
<
field_type
>
(
"E"
),
parameterSet
.
get
<
field_type
>
(
"nu"
),
parameterSet
.
get
<
bool
>
(
"vectorMode"
));
parameterSet
.
get
<
field_type
>
(
"nu"
));
// 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