Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
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
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
podlesny
dune-tectonic
Commits
0468f826
Commit
0468f826
authored
11 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename elasticity parameters
parent
d1101c68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/one-body-sample.cc
+7
-6
7 additions, 6 deletions
src/one-body-sample.cc
src/one-body-sample.parset
+2
-2
2 additions, 2 deletions
src/one-body-sample.parset
with
9 additions
and
8 deletions
src/one-body-sample.cc
+
7
−
6
View file @
0468f826
...
...
@@ -110,8 +110,10 @@ int main(int argc, char *argv[]) {
using
ScalarVector
=
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>>
;
using
Nonlinearity
=
GlobalNonlinearity
<
Matrix
,
Vector
>
;
auto
const
E
=
parset
.
get
<
double
>
(
"body.E"
);
auto
const
nu
=
parset
.
get
<
double
>
(
"body.nu"
);
auto
const
youngModulus
=
parset
.
get
<
double
>
(
"body.youngModulus"
);
auto
const
poissonRatio
=
parset
.
get
<
double
>
(
"body.poissonRatio"
);
auto
const
shearViscosity
=
parset
.
get
<
double
>
(
"body.shearViscosity"
);
auto
const
bulkViscosity
=
parset
.
get
<
double
>
(
"body.bulkViscosity"
);
auto
const
density
=
parset
.
get
<
double
>
(
"body.density"
);
double
const
gravity
=
9.81
;
...
...
@@ -228,9 +230,8 @@ int main(int argc, char *argv[]) {
MyAssembler
myAssembler
(
leafView
);
Matrix
A
,
C
,
M
;
myAssembler
.
assembleElasticity
(
E
,
nu
,
A
);
myAssembler
.
assembleViscosity
(
parset
.
get
<
double
>
(
"body.shearViscosity"
),
parset
.
get
<
double
>
(
"body.bulkViscosity"
),
C
);
myAssembler
.
assembleElasticity
(
youngModulus
,
poissonRatio
,
A
);
myAssembler
.
assembleViscosity
(
shearViscosity
,
bulkViscosity
,
C
);
myAssembler
.
assembleMass
(
density
,
M
);
EnergyNorm
<
Matrix
,
Vector
>
const
ANorm
(
A
),
MNorm
(
M
);
// Q: Does it make sense to weigh them in this manner?
...
...
@@ -490,7 +491,7 @@ int main(int argc, char *argv[]) {
myAssembler
.
vertexBasis
,
u
);
ScalarVector
vonMisesStress
;
VonMisesStressAssembler
<
Grid
,
P0Basis
::
LocalFiniteElement
>
localStressAssembler
(
E
,
nu
,
gridDisplacement
);
localStressAssembler
(
youngModulus
,
poissonRatio
,
gridDisplacement
);
p0Assembler
.
assembleFunctional
(
localStressAssembler
,
vonMisesStress
);
writeVtk
(
myAssembler
.
vertexBasis
,
u
,
alpha
,
p0Basis
,
vonMisesStress
,
...
...
This diff is collapsed.
Click to expand it.
src/one-body-sample.parset
+
2
−
2
View file @
0468f826
...
...
@@ -7,8 +7,8 @@ writeVTK = false
finalTime
=
15
[
body
]
E
=
5
e7
nu
=
0
.
3
# The closer we get to 0.5, the more wiggly everything gets
youngModulus
=
5
e7
poissonRatio
=
0
.
3
# The closer we get to 0.5, the more wiggly everything gets
density
=
5000
height
=
1
width
=
5
...
...
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