Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77896487
material_damage_iterative.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, Aug 17, 01:54
Size
5 KB
Mime Type
text/x-c++
Expires
Mon, Aug 19, 01:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19911785
Attached To
rAKA akantu
material_damage_iterative.hh
View Options
/**
* @file material_damage_iterative.hh
*
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
*
*
* @brief Specialization of the class material damage to damage only one gauss
* point at a time and propagate damage in a linear way. Max principal stress
* criterion is used as a failure criterion.
*
*
* 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.hh"
#include "material_damage.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_DAMAGE_ITERATIVE_HH_
#define AKANTU_MATERIAL_DAMAGE_ITERATIVE_HH_
namespace
akantu
{
/**
* Material damage iterative
*
* parameters in the material files :
* - Sc
*/
template
<
UInt
spatial_dimension
>
class
MaterialDamageIterative
:
public
MaterialDamage
<
spatial_dimension
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MaterialDamageIterative
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
);
~
MaterialDamageIterative
()
override
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// virtual void updateInternalParameters();
void
computeAllStresses
(
GhostType
ghost_type
=
_not_ghost
)
override
;
/// update internal field damage
virtual
UInt
updateDamage
();
UInt
updateDamage
(
UInt
quad_index
,
Real
eq_stress
,
ElementType
el_type
,
GhostType
ghost_type
);
/// update energies after damage has been updated
void
updateEnergiesAfterDamage
(
ElementType
el_type
)
override
;
/// compute the equivalent stress on each Gauss point (i.e. the max prinicpal
/// stress) and normalize it by the tensile strength
virtual
void
computeNormalizedEquivalentStress
(
const
Array
<
Real
>
&
grad_u
,
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
);
/// find max normalized equivalent stress
void
findMaxNormalizedEquivalentStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
);
protected
:
/// constitutive law for all element of a type
void
computeStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
inline
void
computeDamageAndStressOnQuad
(
Matrix
<
Real
>
&
sigma
,
Real
&
dam
);
/* ------------------------------------------------------------------------ */
/* DataAccessor inherited members */
/* ------------------------------------------------------------------------ */
inline
UInt
getNbData
(
const
Array
<
Element
>
&
elements
,
const
SynchronizationTag
&
tag
)
const
override
;
inline
void
packData
(
CommunicationBuffer
&
buffer
,
const
Array
<
Element
>
&
elements
,
const
SynchronizationTag
&
tag
)
const
override
;
inline
void
unpackData
(
CommunicationBuffer
&
buffer
,
const
Array
<
Element
>
&
elements
,
const
SynchronizationTag
&
tag
)
override
;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// get max normalized equivalent stress
AKANTU_GET_MACRO
(
NormMaxEquivalentStress
,
norm_max_equivalent_stress
,
Real
);
/// get a non-const reference to the max normalized equivalent stress
AKANTU_GET_MACRO_NOT_CONST
(
NormMaxEquivalentStress
,
norm_max_equivalent_stress
,
Real
&
);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
/// resistance to damage
RandomInternalField
<
Real
>
Sc
;
/// the reduction
InternalField
<
UInt
>
reduction_step
;
/// internal field to store equivalent stress on each Gauss point
InternalField
<
Real
>
equivalent_stress
;
/// the number of total reductions steps until complete failure
UInt
max_reductions
;
/// damage increment
Real
prescribed_dam
;
/// maximum equivalent stress
Real
norm_max_equivalent_stress
;
/// deviation from max stress at which Gauss point will still get damaged
Real
dam_tolerance
;
/// define damage threshold at which damage will be set to 1
Real
dam_threshold
;
/// maximum damage value
Real
max_damage
;
};
}
// namespace akantu
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "material_damage_iterative_inline_impl.hh"
#endif
/* AKANTU_MATERIAL_DAMAGE_ITERATIVE_HH_ */
Event Timeline
Log In to Comment