tfel
Loading...
Searching...
No Matches
tfel::material::DDIF2Base Struct Reference

helper class providing static methods for implementing the DDIF2 behaviour. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Material/DDIF2Base.hxx>

Public Member Functions

template<typename StressStensor, typename Stensor, typename strain, typename stress>
DDIF2State determineState (const StressStensor &sig, const Stensor &n, const strain &em, const stress &smax, const stress &H)
template<typename StressStensor, typename StensorView, typename Stensor, typename strain, typename stress, typename real>
void buildImplicitEquation (strain &fe, real &dfe_dde, StensorView &dfe_ddeel, const DDIF2State &s, const StressStensor &sig, const Stensor &n, const strain &em, const strain &e, const strain &de, const stress &yg, const stress &l, const stress &m, const stress &smax, const stress &H)
template<typename StressStensor, typename Stensor, typename strain, typename stress>
bool checkStateConsistency (DDIF2State &s, const StressStensor &sig, const Stensor &n, const strain &em, const strain &e, const stress &smax, const stress &seps, const strain &eeps)
template<typename Stensor2Type1, typename Stensor, typename real>
void treatFracture (Stensor2Type1 &dfe_ddeel, real &dfe_dde, real &fe, const real em_1, const real e, const real de, const Stensor &sig, const Stensor &n, const real sigr, const real Rp, const real young, const real lambda, const real mu, const real pint)
template<typename real>
void cart2cyl (tfel::math::stensor< 1u, real > &, const real)
template<typename real>
void cart2cyl (tfel::math::stensor< 2u, real > &s, const real theta)
template<typename real>
void cart2cyl (tfel::math::stensor< 3u, real > &s, const real theta)
template<typename real>
void cyl2cart (tfel::math::stensor< 1u, real > &, const real)
template<typename real>
void cyl2cart (tfel::math::stensor< 2u, real > &s, const real theta)
template<typename real>
void cyl2cart (tfel::math::stensor< 3u, real > &s, const real theta)
template<unsigned short N, typename real>
void cyl2cart (tfel::math::st2tost2< N, real > &D, const real theta)
template<typename real>
void rk (tfel::math::tmatrix< 3, 3, real > &m, tfel::math::tvector< 3, real > &v, real &Hr, const real s, const real dse, const real e, const real X, const real, const real lambda, const real mu, const unsigned short i, const unsigned short i1, const unsigned short i2)
template<typename real>
void invmat (tfel::math::tmatrix< 3, 3, real > &m, tfel::math::tmatrix< 3, 3, real > &mi, tfel::math::tvector< 3, real > &v)

Static Public Member Functions

template<typename StressStensor, typename Stensor, typename strain, typename stress>
static TFEL_HOST_DEVICE DDIF2State determineState (const StressStensor &, const Stensor &, const strain &, const stress &, const stress &)
 determine the state of the material at the beginning of the time step according to the stress state and internal variables for a given cracking direction.
template<typename StressStensor, typename StensorView, typename Stensor, typename strain, typename stress, typename real>
static TFEL_HOST_DEVICE void buildImplicitEquation (strain &, real &, StensorView &, const DDIF2State &, const StressStensor &, const Stensor &, const strain &, const strain &, const strain &, const stress &, const stress &, const stress &, const stress &, const stress &)
 method called to build the implicit equations associated with the crack strain.
template<typename StressStensor, typename Stensor, typename strain, typename stress>
static TFEL_HOST_DEVICE bool checkStateConsistency (DDIF2State &, const StressStensor &, const Stensor &, const strain &, const strain &, const stress &, const stress &, const strain &)
 method called after the convergence of the behaviour integration to see if the predicted state is consistent with the solution found
template<typename Stensor2Type1, typename Stensor, typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void treatFracture (Stensor2Type1 &, real &, real &, const real, const real, const real, const Stensor &, const Stensor &, const real, const real, const real, const real, const real, const real=real(0))
 class used to update the implicit equation and the jacobian matrix.
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void rk (tfel::math::tmatrix< 3, 3, real > &, tfel::math::tvector< 3, real > &, real &, const real, const real, const real, const real, const real, const real, const real, const unsigned short, const unsigned short, const unsigned short)
 function used to define the equations associated with fracture in explicit integration.
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cart2cyl (tfel::math::stensor< 1u, real > &, const real)
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cart2cyl (tfel::math::stensor< 2u, real > &, const real)
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cart2cyl (tfel::math::stensor< 3u, real > &, const real)
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cyl2cart (tfel::math::stensor< 1u, real > &, const real)
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cyl2cart (tfel::math::stensor< 2u, real > &, const real)
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cyl2cart (tfel::math::stensor< 3u, real > &, const real)
template<unsigned short N, typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void cyl2cart (tfel::math::st2tost2< N, real > &, const real)
 change a fourth order tensor, mapping symmetric tensors expressed in the cylindrical frame, to the cartesian frame
template<typename real>
TFEL_VISIBILITY_LOCAL static TFEL_HOST_DEVICE void invmat (tfel::math::tmatrix< 3, 3, real > &, tfel::math::tmatrix< 3, 3, real > &, tfel::math::tvector< 3, real > &)

Static Public Attributes

static constexpr double emin1 = 1.e-7
 small parameter which guarantees that Ef is finite
static constexpr double emin_rk1 = 1.e-5
 small parameter which guarantees that Ef is finite
static constexpr double eps = 1.e-10
 small numerical parameter

Detailed Description

helper class providing static methods for implementing the DDIF2 behaviour.

Member Function Documentation

◆ buildImplicitEquation()

template<typename StressStensor, typename StensorView, typename Stensor, typename strain, typename stress, typename real>
TFEL_HOST_DEVICE void tfel::material::DDIF2Base::buildImplicitEquation ( strain & ,
real & ,
StensorView & ,
const DDIF2State & ,
const StressStensor & ,
const Stensor & ,
const strain & ,
const strain & ,
const strain & ,
const stress & ,
const stress & ,
const stress & ,
const stress & ,
const stress &  )
static

method called to build the implicit equations associated with the crack strain.

Template Parameters
StressStensortype of the stress tensor
Stensortype of the tensor holding the considered crack direction
straintype of strain variables
stresstype of stress variables
Parameters
[in,out]feimplicit equation associated with the crack strain
[in,out]dfe_ddederivative of the implicit equation with respect to the increment of the crack strain
[in,out]dfe_ddeelderivative of the implicit equation with respect to the increment of the elastic strain
[in]scurrent estimation of the state.
[in]sigcurrent estimate of the stress tensor at the end of the time step.
[in]ncrack direction
[in]emmaximum crack strain at the beginning of the time step
[in]ecrack strain at the beginning of the time step
[in]decurrent estimate of the increment of the crack strain
[in]ygYoung modulus, used to normalise the implicit equation
[in]lfirst Lamé coefficient
[in]msecond Lamé coefficient (shear modulus)
[in]smaxelastic limit
[in]Hsoftening modulus (expect a negative value)

◆ checkStateConsistency()

template<typename StressStensor, typename Stensor, typename strain, typename stress>
TFEL_HOST_DEVICE bool tfel::material::DDIF2Base::checkStateConsistency ( DDIF2State & ,
const StressStensor & ,
const Stensor & ,
const strain & ,
const strain & ,
const stress & ,
const stress & ,
const strain &  )
static

method called after the convergence of the behaviour integration to see if the predicted state is consistent with the solution found

Template Parameters
StressStensortype of the stress tensor
Stensortype of the tensor holding the considered crack direction
straintype of strain variables
stresstype of stress variables
Parameters
[in,out]son input, the current estimation of the state. If this estimate is not consistent, the state is changed on output
[in]sigcurrent estimate of the stress tensor at the end of the time step.
[in]ncrack direction
[in]emmaximum crack strain at the beginning of the time step
[in]ecurrent estimate of the crack strain
[in]smaxelastic limit
[in]sepstolerance on the stress state
[in]eepstolerance on the strain state
Returns
a boolean stating if the state of the material is constitent with the current solution

◆ determineState()

template<typename StressStensor, typename Stensor, typename strain, typename stress>
TFEL_HOST_DEVICE DDIF2State tfel::material::DDIF2Base::determineState ( const StressStensor & ,
const Stensor & ,
const strain & ,
const stress & ,
const stress &  )
static

determine the state of the material at the beginning of the time step according to the stress state and internal variables for a given cracking direction.

Template Parameters
StressStensortype of the stress tensor
Stensortype of the tensor holding the considered crack direction
straintype of strain variables
stresstype of stress variables
Parameters
[in]sigstress tensor
[in]ncrack direction
[in]emmaximum crack strain
[in]smaxelastic limit
[in]Hsoftening modulus (expect a negative value)
Returns
the state

The documentation for this struct was generated from the following files: