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
8f3d8d99
Commit
8f3d8d99
authored
13 years ago
by
akbib
Committed by
akbib@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
export some types and add method to get the global basis
[[Imported from SVN: r11177]]
parent
b68d3f68
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
dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh
+13
-6
13 additions, 6 deletions
...lasticity/materials/geomexactstvenantkirchhoffmaterial.hh
with
13 additions
and
6 deletions
dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh
+
13
−
6
View file @
8f3d8d99
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include
<dune/fufem/symmetrictensor.hh>
#include
<dune/fufem/symmetrictensor.hh>
#include
<dune/fufem/functions/virtualgridfunction.hh>
#include
<dune/fufem/functions/virtualgridfunction.hh>
#include
<dune/fufem/functions/basisgridfunction.hh>
#include
<dune/fufem/assemblers/localassemblers/geononlinstvenantfunctionalassembler.hh>
#include
<dune/fufem/assemblers/localassemblers/geononlinstvenantfunctionalassembler.hh>
#include
<dune/fufem/assemblers/localassemblers/geononlinlinearizedstvenantassembler.hh>
#include
<dune/fufem/assemblers/localassemblers/geononlinlinearizedstvenantassembler.hh>
...
@@ -17,21 +18,24 @@
...
@@ -17,21 +18,24 @@
template
<
class
Basis
>
template
<
class
Basis
>
class
GeomExactStVenantMaterial
class
GeomExactStVenantMaterial
{
{
public:
typedef
typename
Basis
::
GridView
::
Grid
GridType
;
typedef
typename
Basis
::
GridView
::
Grid
GridType
;
typedef
typename
Basis
::
LocalFiniteElement
Lfe
;
typedef
GeomNonlinElasticityFunctionalAssembler
<
GridType
>
LocalLinearization
;
typedef
GeomNonlinLinearizedStVenantAssembler
<
GridType
,
Lfe
,
Lfe
>
LocalHessian
;
typedef
Basis
GlobalBasis
;
private:
typedef
typename
GridType
::
ctype
ctype
;
typedef
typename
GridType
::
ctype
ctype
;
static
const
int
dim
=
GridType
::
dimension
;
static
const
int
dim
=
GridType
::
dimension
;
static
const
int
dimworld
=
GridType
::
dimensionworld
;
static
const
int
dimworld
=
GridType
::
dimensionworld
;
typedef
typename
Basis
::
LocalFiniteElement
Lfe
;
typedef
VirtualGridFunction
<
GridType
,
Dune
::
FieldVector
<
double
,
GridType
::
dimension
>
>
GridFunction
;
typedef
typename
GridType
::
template
Codim
<
0
>
::
Geometry
::
LocalCoordinate
LocalCoordinate
;
typedef
typename
GridType
::
template
Codim
<
0
>
::
Geometry
::
LocalCoordinate
LocalCoordinate
;
typedef
typename
GridType
::
template
Codim
<
0
>
::
LeafIterator
ElementIterator
;
typedef
typename
GridType
::
template
Codim
<
0
>
::
LeafIterator
ElementIterator
;
public:
public:
typedef
GeomNonlinElasticityFunctionalAssembler
<
GridType
>
LocalLinearization
;
typedef
GeomNonlinLinearizedStVenantAssembler
<
GridType
,
Lfe
,
Lfe
>
LocalHessian
;
GeomExactStVenantMaterial
(
const
Basis
&
basis
,
ctype
E
,
ctype
nu
)
:
GeomExactStVenantMaterial
(
const
Basis
&
basis
,
ctype
E
,
ctype
nu
)
:
localLinearization_
(
E
,
nu
),
localLinearization_
(
E
,
nu
),
...
@@ -72,7 +76,7 @@ public:
...
@@ -72,7 +76,7 @@ public:
const
ctype
integrationElement
=
eIt
->
geometry
().
integrationElement
(
quadPos
);
const
ctype
integrationElement
=
eIt
->
geometry
().
integrationElement
(
quadPos
);
// evaluate displacement gradient at the quadrature point
// evaluate displacement gradient at the quadrature point
typename
GridFunction
::
DerivativeType
localConfGrad
;
typename
Basis
GridFunction
<
Basis
,
CoeffType
>
::
DerivativeType
localConfGrad
;
if
(
configuration
.
isDefinedOn
(
*
eIt
))
if
(
configuration
.
isDefinedOn
(
*
eIt
))
configuration
.
evaluateDerivativeLocal
(
*
eIt
,
quadPos
,
localConfGrad
);
configuration
.
evaluateDerivativeLocal
(
*
eIt
,
quadPos
,
localConfGrad
);
...
@@ -101,6 +105,9 @@ public:
...
@@ -101,6 +105,9 @@ public:
//! Return the local assembler of the second derivative of the strain energy
//! Return the local assembler of the second derivative of the strain energy
LocalHessian
&
secondDerivative
()
{
return
localHessian_
;}
LocalHessian
&
secondDerivative
()
{
return
localHessian_
;}
//! Return the global basis
const
Basis
&
basis
()
{
return
basis_
;}
private
:
private
:
//! First derivative of the strain energy
//! First derivative of the strain energy
LocalLinearization
localLinearization_
;
LocalLinearization
localLinearization_
;
...
...
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