Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88595455
material_neohookean.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, Oct 19, 16:02
Size
6 KB
Mime Type
text/x-c++
Expires
Mon, Oct 21, 16:02 (2 d)
Engine
blob
Format
Raw Data
Handle
21795315
Attached To
rAKA akantu
material_neohookean.hh
View Options
/**
* @file material_neohookean.hh
*
* @author Daniel Pino Muñoz <daniel.pinomunoz@epfl.ch>
*
* @date creation: Fri Jun 18 2010
* @date last modification: Thu Feb 20 2020
*
* @brief Material isotropic elastic
*
*
* @section LICENSE
*
* Copyright (©) 2010-2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "material.hh"
#include "plane_stress_toolbox.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_NEOHOOKEAN_HH_
#define AKANTU_MATERIAL_NEOHOOKEAN_HH_
namespace
akantu
{
/**
* Material elastic isotropic
*
* parameters in the material files :
* - rho : density (default: 0)
* - 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
<
Int
dim
>
class
MaterialNeohookean
:
public
PlaneStressToolbox
<
dim
>
{
using
Parent
=
PlaneStressToolbox
<
dim
>
;
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MaterialNeohookean
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
);
~
MaterialNeohookean
()
override
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// initialize the material computed parameter
void
initMaterial
()
override
;
/// constitutive law for all element of a type
void
computeStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// Computation of the cauchy stress for plane strain materials
void
computeCauchyStressPlaneStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// Non linear computation of the third direction strain in 2D plane stress
/// case
void
computeThirdAxisDeformation
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// compute the elastic potential energy
void
computePotentialEnergy
(
ElementType
el_type
)
override
;
/// compute the tangent stiffness matrix for an element type
void
computeTangentModuli
(
ElementType
el_type
,
Array
<
Real
>
&
tangent_matrix
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// compute the p-wave speed in the material
Real
getPushWaveSpeed
(
const
Element
&
element
)
const
override
;
/// compute the s-wave speed in the material
Real
getShearWaveSpeed
(
const
Element
&
element
)
const
override
;
MatrixType
getTangentType
()
override
{
return
_symmetric
;
}
decltype
(
auto
)
getArguments
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
{
return
zip_append
(
Material
::
getArguments
<
dim
>
(
el_type
,
ghost_type
),
"C33"
_n
=
broadcast
(
C33
,
this
->
element_filter
(
el_type
,
ghost_type
).
size
()));
}
decltype
(
auto
)
getArgumentsTangent
(
Array
<
Real
>
&
tangent_matrix
,
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
{
return
zip_append
(
Material
::
getArgumentsTangent
<
dim
>
(
tangent_matrix
,
el_type
,
ghost_type
),
"C33"
_n
=
broadcast
(
C33
,
this
->
element_filter
(
el_type
,
ghost_type
).
size
()));
}
protected
:
/// constitutive law for a given quadrature point
inline
void
computePiolaKirchhoffOnQuad
(
const
Matrix
<
Real
>
&
E
,
Matrix
<
Real
>
&
S
);
/// constitutive law for a given quadrature point (first piola)
inline
void
computeFirstPiolaKirchhoffOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
const
Matrix
<
Real
>
&
S
,
Matrix
<
Real
>
&
P
);
/// constitutive law for a given quadrature point
inline
void
computeDeltaStressOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
const
Matrix
<
Real
>
&
grad_delta_u
,
Matrix
<
Real
>
&
delta_S
);
/// constitutive law for a given quadrature point
template
<
class
Args
>
inline
void
computeStressOnQuad
(
Args
&&
args
);
/// constitutive law for a given quadrature point
template
<
class
Args
>
inline
void
computeThirdAxisDeformationOnQuad
(
Args
&&
args
);
/// constitutive law for a given quadrature point
// inline void updateStressOnQuad(const Matrix<Real> & sigma,
// Matrix<Real> & cauchy_sigma);
/// compute the potential energy for a quadrature point
inline
void
computePotentialEnergyOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
Real
&
epot
);
/// compute the tangent stiffness matrix for an element
template
<
class
Args
>
void
computeTangentModuliOnQuad
(
Args
&&
args
);
/// recompute the lame coefficient if E or nu changes
void
updateInternalParameters
()
override
;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
/// the young modulus
Real
E
;
/// Poisson coefficient
Real
nu
;
/// First Lamé coefficient
Real
lambda
;
/// Second Lamé coefficient (shear modulus)
Real
mu
;
/// Bulk modulus
Real
kpa
;
Real
C33
{
1.
};
};
}
// namespace akantu
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "material_neohookean_inline_impl.hh"
#endif
/* AKANTU_MATERIAL_NEOHOOKEAN_HH_ */
Event Timeline
Log In to Comment