Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
jonathan.drechsel_at_mailbox.tu-dresden.de
dune-elasticity
Commits
8f3d8d99
Commit
8f3d8d99
authored
Jul 03, 2012
by
akbib
Committed by
akbib@FU-BERLIN.DE
Jul 03, 2012
Browse files
export some types and add method to get the global basis
[[Imported from SVN: r11177]]
parent
b68d3f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh
View file @
8f3d8d99
...
...
@@ -5,6 +5,7 @@
#include <dune/fufem/symmetrictensor.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/geononlinlinearizedstvenantassembler.hh>
...
...
@@ -17,21 +18,24 @@
template
<
class
Basis
>
class
GeomExactStVenantMaterial
{
public:
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
;
static
const
int
dim
=
GridType
::
dimension
;
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
>
::
LeafIterator
ElementIterator
;
public:
typedef
GeomNonlinElasticityFunctionalAssembler
<
GridType
>
LocalLinearization
;
typedef
GeomNonlinLinearizedStVenantAssembler
<
GridType
,
Lfe
,
Lfe
>
LocalHessian
;
GeomExactStVenantMaterial
(
const
Basis
&
basis
,
ctype
E
,
ctype
nu
)
:
localLinearization_
(
E
,
nu
),
...
...
@@ -72,7 +76,7 @@ public:
const
ctype
integrationElement
=
eIt
->
geometry
().
integrationElement
(
quadPos
);
// evaluate displacement gradient at the quadrature point
typename
GridFunction
::
DerivativeType
localConfGrad
;
typename
Basis
GridFunction
<
Basis
,
CoeffType
>
::
DerivativeType
localConfGrad
;
if
(
configuration
.
isDefinedOn
(
*
eIt
))
configuration
.
evaluateDerivativeLocal
(
*
eIt
,
quadPos
,
localConfGrad
);
...
...
@@ -101,6 +105,9 @@ public:
//! Return the local assembler of the second derivative of the strain energy
LocalHessian
&
secondDerivative
()
{
return
localHessian_
;}
//! Return the global basis
const
Basis
&
basis
()
{
return
basis_
;}
private:
//! First derivative of the strain energy
LocalLinearization
localLinearization_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment