Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66101349
material_damage.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, Jun 8, 07:07
Size
4 KB
Mime Type
text/x-c++
Expires
Mon, Jun 10, 07:07 (2 d)
Engine
blob
Format
Raw Data
Handle
18154618
Attached To
rAKA akantu
material_damage.hh
View Options
/**
* @file material_damage.hh
*
* @author Marion Estelle Chambart <marion.chambart@epfl.ch>
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Fri Jun 18 2010
* @date last modification: Fri Apr 09 2021
*
* @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_elastic.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_DAMAGE_HH_
#define AKANTU_MATERIAL_DAMAGE_HH_
namespace
akantu
{
template
<
UInt
spatial_dimension
,
template
<
UInt
>
class
Parent
=
MaterialElastic
>
class
MaterialDamage
:
public
Parent
<
spatial_dimension
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MaterialDamage
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
);
~
MaterialDamage
()
override
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
initMaterial
()
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
;
bool
hasStiffnessMatrixChanged
()
override
{
return
true
;
}
protected
:
/// update the dissipated energy, must be called after the stress have been
/// computed
void
updateEnergies
(
ElementType
el_type
)
override
;
/// compute the tangent stiffness matrix for a given quadrature point
inline
void
computeTangentModuliOnQuad
(
Matrix
<
Real
>
&
tangent
,
Real
&
dam
);
/* ------------------------------------------------------------------------ */
/* DataAccessor inherited members */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// give the dissipated energy for the time step
Real
getDissipatedEnergy
()
const
;
Real
getEnergy
(
const
std
::
string
&
type
)
override
;
AKANTU_GET_MACRO_NOT_CONST
(
Damage
,
damage
,
ElementTypeMapArray
<
Real
>
&
);
AKANTU_GET_MACRO
(
Damage
,
damage
,
const
ElementTypeMapArray
<
Real
>
&
);
AKANTU_GET_MACRO_BY_ELEMENT_TYPE_CONST
(
Damage
,
damage
,
Real
)
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
/// damage internal variable
InternalField
<
Real
>
damage
;
/// dissipated energy
InternalField
<
Real
>
dissipated_energy
;
/// contain the current value of @f$ \int_0^{\epsilon}\sigma(\omega)d\omega
/// @f$ the dissipated energy
InternalField
<
Real
>
int_sigma
;
};
}
// namespace akantu
#include "material_damage_tmpl.hh"
#endif
/* AKANTU_MATERIAL_DAMAGE_HH_ */
Event Timeline
Log In to Comment