Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90538038
material_igfem_elastic.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 2, 14:06
Size
4 KB
Mime Type
text/x-c++
Expires
Mon, Nov 4, 14:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22089158
Attached To
rAKA akantu
material_igfem_elastic.hh
View Options
/**
* @file element_class_igfem.hh
*
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
*
* @brief Material isotropic elastic for IGFEM
*
* @section LICENSE
*
* Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "material_igfem.hh"
#include "plane_stress_toolbox.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MATERIAL_IGFEM_ELASTIC_HH__
#define __AKANTU_MATERIAL_IGFEM_ELASTIC_HH__
__BEGIN_AKANTU__
/**
* Material elastic isotropic
*
* parameters in the material files :
* - E : Young's modulus (default: 0)
* - nu : Poisson's ratio (default: 1/2)
* - Plane_Stress : if 0: plane strain, else: plane stress (default: 0)
*/
template
<
UInt
spatial_dimension
>
class
MaterialIGFEMElastic
:
public
PlaneStressToolbox
<
spatial_dimension
,
MaterialIGFEM
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
private
:
typedef
PlaneStressToolbox
<
spatial_dimension
,
MaterialIGFEM
>
Parent
;
public
:
MaterialIGFEMElastic
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
);
MaterialIGFEMElastic
(
SolidMechanicsModel
&
model
,
UInt
dim
,
const
Mesh
&
mesh
,
FEEngine
&
fe_engine
,
const
ID
&
id
=
""
);
virtual
~
MaterialIGFEMElastic
()
{}
protected
:
void
initialize
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
virtual
void
initMaterial
();
/// constitutive law for all element of a type
virtual
void
computeStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
);
/// compute the tangent stiffness matrix for an element type
virtual
void
computeTangentModuli
(
const
ElementType
&
el_type
,
Array
<
Real
>
&
tangent_matrix
,
GhostType
ghost_type
=
_not_ghost
);
/// compute the elastic potential energy
virtual
void
computePotentialEnergy
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
);
virtual
void
computePotentialEnergyByElement
(
ElementType
type
,
UInt
index
,
Vector
<
Real
>
&
epot_on_quad_points
);
void
updateElasticInternals
(
GhostType
ghost_type
=
_not_ghost
);
protected
:
void
updateElasticConstants
(
Vector
<
Real
>
&
lambda_vec
,
Vector
<
Real
>
&
mu_vec
,
Vector
<
Real
>
&
kpa_vec
);
/// constitutive law for a given quadrature point
inline
void
computeStressOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
Matrix
<
Real
>
&
sigma
,
__attribute__
((
unused
))
const
Real
lambda
,
const
Real
mu
)
const
;
/// compute the tangent stiffness matrix for an element
inline
void
computeTangentModuliOnQuad
(
Matrix
<
Real
>
&
tangent
,
__attribute__
((
unused
))
const
Real
lambda
,
const
Real
mu
)
const
;
static
inline
void
computePotentialEnergyOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
const
Matrix
<
Real
>
&
sigma
,
Real
&
epot
);
/* ------------------------------------------------------------------------ */
/* MeshEventHandler inherited members */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
virtual
void
onElementsAdded
(
const
Array
<
Element
>
&
element_list
,
const
NewElementsEvent
&
event
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
/// the Young's moduli for the different sub-materials
Vector
<
Real
>
E
;
/// Poisson ratios for the different sub-materials
Vector
<
Real
>
nu
;
/// First Lamé coefficient
IGFEMInternalField
<
Real
>
lambda
;
/// Second Lamé coefficient (shear modulus)
IGFEMInternalField
<
Real
>
mu
;
/// Bulk modulus
IGFEMInternalField
<
Real
>
kpa
;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "material_igfem_elastic_inline_impl.cc"
__END_AKANTU__
#endif
/* __AKANTU_MATERIAL_IGFEM_ELASTIC_HH__ */
Event Timeline
Log In to Comment