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
Iterations
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
Model registry
Operate
Environments
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
agnumpde
dune-elasticity
Commits
42c037ba
Commit
42c037ba
authored
6 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Only use adolc if found
parent
f292f64a
No related branches found
No related tags found
No related merge requests found
Pipeline
#12376
failed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nonlinelast.cc
+12
-5
12 additions, 5 deletions
nonlinelast.cc
with
12 additions
and
5 deletions
nonlinelast.cc
+
12
−
5
View file @
42c037ba
...
@@ -155,17 +155,19 @@ int main (int argc, char *argv[]) try
...
@@ -155,17 +155,19 @@ int main (int argc, char *argv[]) try
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
P1Basis
p1Basis
(
grid
->
leafGridView
());
P1Basis
p1Basis
(
grid
->
leafGridView
());
//typedef NeoHookeanMaterial<P1Basis> MaterialType;
#if HAVE_ADOLC
MooneyRivlinMaterial
<
P1Basis
>
localEnergy
(
p1Basis
,
MooneyRivlinMaterial
<
P1Basis
>
localEnergy
(
p1Basis
,
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"nu"
));
parameterSet
.
get
<
double
>
(
"nu"
));
using
MaterialType
=
AdolcMaterial
<
P1Basis
>
;
using
MaterialType
=
AdolcMaterial
<
P1Basis
>
;
MaterialType
material
(
p1Basis
,
localEnergy
,
parameterSet
.
get
<
bool
>
(
"vectorMode"
));
MaterialType
material
(
p1Basis
,
localEnergy
,
parameterSet
.
get
<
bool
>
(
"vectorMode"
));
/*
#else
using
MaterialType
=
NeoHookeanMaterial
<
P1Basis
>
;
MaterialType
material
(
p1Basis
,
MaterialType
material
(
p1Basis
,
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"nu"
));
parameterSet
.
get
<
double
>
(
"nu"
));
*/
#endif
// ///////////////////////////////////////////////////
// ///////////////////////////////////////////////////
// Do a homotopy of the Dirichlet boundary data
// Do a homotopy of the Dirichlet boundary data
...
@@ -286,7 +288,6 @@ int main (int argc, char *argv[]) try
...
@@ -286,7 +288,6 @@ int main (int argc, char *argv[]) try
std
::
string
name
=
"loadingStep"
+
std
::
to_string
(
loadFactor
);
std
::
string
name
=
"loadingStep"
+
std
::
to_string
(
loadFactor
);
amiramesh2
.
write
(
resultPath
+
name
,
1
);
amiramesh2
.
write
(
resultPath
+
name
,
1
);
}
while
(
loadFactor
<
1
);
}
while
(
loadFactor
<
1
);
...
@@ -306,11 +307,17 @@ int main (int argc, char *argv[]) try
...
@@ -306,11 +307,17 @@ int main (int argc, char *argv[]) try
// Create the materials
// Create the materials
typedef
P2NodalBasis
<
GridType
::
LeafGridView
>
P2Basis
;
typedef
P2NodalBasis
<
GridType
::
LeafGridView
>
P2Basis
;
P2Basis
p2Basis
(
grid
->
leafGridView
());
P2Basis
p2Basis
(
grid
->
leafGridView
());
#if HAVE_ADOLC
typedef
MooneyRivlinMaterial
<
P2Basis
>
MaterialType2
;
typedef
MooneyRivlinMaterial
<
P2Basis
>
MaterialType2
;
MaterialType2
p2localEnergy
(
p2Basis
,
parameterSet
.
get
<
field_type
>
(
"E"
),
MaterialType2
p2localEnergy
(
p2Basis
,
parameterSet
.
get
<
field_type
>
(
"E"
),
parameterSet
.
get
<
field_type
>
(
"nu"
));
parameterSet
.
get
<
field_type
>
(
"nu"
));
AdolcMaterial
<
P2Basis
>
p2Material
(
p2Basis
,
p2localEnergy
,
false
);
AdolcMaterial
<
P2Basis
>
p2Material
(
p2Basis
,
p2localEnergy
,
false
);
#else
using
MaterialType2
=
NeoHookeanMaterial
<
P2Basis
>
;
MaterialType
material
(
p2Basis
,
parameterSet
.
get
<
double
>
(
"E"
),
parameterSet
.
get
<
double
>
(
"nu"
));
#endif
// P2 Forces
// P2 Forces
VectorType
p2ExtForces
(
p2Basis
.
size
());
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