Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Sander, Oliver
dune-gfe
Commits
3b39a00c
Commit
3b39a00c
authored
2 years ago
by
Lisa Julia Nebel
Browse files
Options
Downloads
Patches
Plain Diff
Repair the call to the volume load in cosseratenergystiffness.hh
parent
1d3814c2
No related branches found
No related tags found
2 merge requests
!118
Correct the dimension of the rotation and the deformation in the...
,
!110
Experiments with the sphere
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/cosseratenergystiffness.hh
+16
-1
16 additions, 1 deletion
dune/gfe/cosseratenergystiffness.hh
with
16 additions
and
1 deletion
dune/gfe/cosseratenergystiffness.hh
+
16
−
1
View file @
3b39a00c
...
...
@@ -99,7 +99,8 @@ public:
const
std
::
function
<
Dune
::
FieldVector
<
double
,
3
>
(
Dune
::
FieldVector
<
double
,
dimworld
>
)
>
neumannFunction
,
const
std
::
function
<
Dune
::
FieldVector
<
double
,
3
>
(
Dune
::
FieldVector
<
double
,
dimworld
>
)
>
volumeLoad
)
:
neumannBoundary_
(
neumannBoundary
),
neumannFunction_
(
neumannFunction
)
neumannFunction_
(
neumannFunction
),
volumeLoad_
(
volumeLoad
)
{
// The shell thickness
thickness_
=
parameters
.
template
get
<
double
>(
"thickness"
);
...
...
@@ -513,6 +514,20 @@ energy(const typename Basis::LocalView& localView,
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"CosseratEnergyStiffness for 1d grids"
);
///////////////////////////////////////////////////////////
// Volume load contribution
///////////////////////////////////////////////////////////
if
(
not
volumeLoad_
)
continue
;
// Value of the volume load density at the current position
auto
volumeLoadDensity
=
volumeLoad_
(
element
.
geometry
().
global
(
quad
[
pt
].
position
()));
// Only translational dofs are affected by the volume load
for
(
size_t
i
=
0
;
i
<
volumeLoadDensity
.
size
();
i
++
)
energy
+=
(
volumeLoadDensity
[
i
]
*
deformationValue
[
i
])
*
quad
[
pt
].
weight
()
*
integrationElement
;
}
//////////////////////////////////////////////////////////////////////////////
...
...
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