b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2000::b2dbv3::ElasticityHelper< T > Struct Template Reference

#include "b2material_util.H"

Public Member Functions

 ElasticityHelper (const T material_ref[3][3], const T covariant_base[3][3])
 
void set_strain (const bool planestress, const T strain[6], const T temperature, const T alpha[6])
 
void set_stress_and_or_d_stress_d_strain_mat (const T stress_mat[6], const T d_stress_d_strain_mat[21], T stress[6], T d_stress_d_strain[21])
 
void store (const bool linear, const T displacement_gradient[3][3], const FailureCriterion *failure_criterion, b2000::GradientContainer *gradient_container)
 

Public Attributes

bool has_thermal_expansion
 Whether STRAIN_MECHANICAL fields will be written.
 
bool has_material_ref
 
M [3][3]
 
bool has_covariant_base
 
G [3][3]
 
G_d [3][3]
 
strain_gl_bg [6]
 
strain_gl_bg_te [6]
 
strain_gl_mat [6]
 
strain_gl_mat_te [6]
 
stress_pk2_bg [6]
 
stress_pk2_mat [6]
 
stress_cauchy_bg [6]
 
stress_cauchy_mat [6]
 
failure_index
 

Detailed Description

template<typename T>
struct b2000::b2dbv3::ElasticityHelper< T >

Helper class for elastic material models in conjunction with Total-Lagrange 3D and 2.5D (shell) elements. It simplifies the implementation of material formulations, but does not need to be used for implementing new material models.

Constructor & Destructor Documentation

◆ ElasticityHelper()

template<typename T >
b2000::b2dbv3::ElasticityHelper< T >::ElasticityHelper ( const T  material_ref[3][3],
const T  covariant_base[3][3] 
)
inline
Parameters
material_refThe orthogonal material reference frame (row-major), typically calculated by the element property from user-specified MBASE. May be 0 for isotropic materials.
covariant_baseThe non-orthogonal covariant basis of the (shell) element. May be 0, depending on the element formulation.

Member Function Documentation

◆ set_strain()

template<typename T >
void b2000::b2dbv3::ElasticityHelper< T >::set_strain ( const bool  planestress,
const T  strain[6],
const T  temperature,
const T  alpha[6] 
)
inline

Enter the calculated strain, transform it, and calculate the thermal pre-strain.

Parameters
strainThe linear or Green-Lagrange strain as calculated by the element formulation, depending on the covariant_base parameter it is expressed either in the element covariant basis or in the branch-global orthogonal reference frame. The order of the components is [11, 22, 33, 12, 23, 13]. The shear components are assumed energy-equivalent, hence they must be premultiplied by a factor of 2. The parameter strain may be 0.
temperatureThe temperature difference, invoking a thermal expansion or contraction.
alphaThe thermal expansion coefficients in the directions [11, 22, 33, 12, 23, 13]. May be 0.

◆ set_stress_and_or_d_stress_d_strain_mat()

template<typename T >
void b2000::b2dbv3::ElasticityHelper< T >::set_stress_and_or_d_stress_d_strain_mat ( const T  stress_mat[6],
const T  d_stress_d_strain_mat[21],
stress[6],
d_stress_d_strain[21] 
)
inline

Enter the calculated stress and/or the tangent constitutive matrix.

Parameters
stress_matThe linear or Second Piola-Kirchhoff stress, expressed in the orthogonal material reference frame. The order of the components is [11, 22, 33, 12, 23, 13]. The parameter stress_mat may be 0. In this case, the stress will be calculated from the strain and the constitutive matrix.
d_stress_d_strain_matThe (tangent) constitutive symmetric 6x6 matrix in lower-packed column-major format, expressed in the orthogonal material reference frame. May be 0 (if d_stress_d_strain is 0).
stressThe transformed stress, it is expressed either in the element covariant basis or in the branch-global orthogonal reference frame, depending on the covariant_base parameter. May be 0.
d_stress_d_strainThe (tangent) constitutive symmetric 6x6 matrix in lower-packed column-major format. Depending on the covariant_base parameter, it is expressed either in the element covariant basis or in the branch-global orthogonal reference frame. May be 0.

◆ store()

template<typename T >
void b2000::b2dbv3::ElasticityHelper< T >::store ( const bool  linear,
const T  displacement_gradient[3][3],
const FailureCriterion failure_criterion,
b2000::GradientContainer gradient_container 
)
inline

Store the different calculated stresses and strains, and evaluate the failure index.

Parameters
linearWhether the analysis is geometrically linear.
displacement_gradientThe gradient displacement tensor (column-major). It is F - I where F is the gradient deformation tensor and I the 3x3 identity matrix. This parameter may be 0 in linear analysis, it is used to calculate the Cauchy stress in nonlinear analysis.
failure_criterionPointer to a FailureCriterion instance. May be 0.
gradient_containerIs used to store the strains and stresses, the failure indices, etc.

Member Data Documentation

◆ failure_index

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::failure_index

The failure index as returned from the FailureCriterion instance. Is initialized in the store() method.

◆ G

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::G[3][3]

Covariant tangent vectors (row-major). Is initialized in the constructor.

◆ G_d

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::G_d[3][3]

Contravariant tangent vectors (row-major). Is initialized in the constructor.

◆ has_covariant_base

template<typename T >
bool b2000::b2dbv3::ElasticityHelper< T >::has_covariant_base

If the covariant basis differs from the identity matrix. Is initialized in the constructor.

◆ has_material_ref

template<typename T >
bool b2000::b2dbv3::ElasticityHelper< T >::has_material_ref

If the material reference frame differs from the identity matrix. Is initialized in the constructor.

◆ M

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::M[3][3]

Material reference frame and its transpose (inverse). Is initialized in the constructor.

◆ strain_gl_bg

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::strain_gl_bg[6]

Green-Lagrange strain in the branch-global (bg) reference frame, without thermal expansion. Is initialized in the set_strain() method.

◆ strain_gl_bg_te

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::strain_gl_bg_te[6]

Green-Lagrange strain in the branch-global (bg) reference frame, including thermal expansion. Is initialized in the set_strain() method.

◆ strain_gl_mat

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::strain_gl_mat[6]

Green-Lagrange strain in the material reference frame (mat), without thermal expansion. Is initialized in the set_strain() method.

◆ strain_gl_mat_te

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::strain_gl_mat_te[6]

Green-Lagrange strain in the material reference frame (mat), including thermal expansion. Is initialized in the set_strain() method.

◆ stress_cauchy_bg

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::stress_cauchy_bg[6]

Cauchy stress in the branch-global (bg) reference frame. Is initialized in the store() method.

◆ stress_cauchy_mat

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::stress_cauchy_mat[6]

Cauchy stress in the material (mat) reference frame. Is initialized in the store() method.

◆ stress_pk2_bg

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::stress_pk2_bg[6]

Second Piola-Kirchhoff stress in the branch-global (bg) reference frame. Is initialized in the set_stress_and_or_d_stress_d_strain_mat() method.

◆ stress_pk2_mat

template<typename T >
T b2000::b2dbv3::ElasticityHelper< T >::stress_pk2_mat[6]

Second Piola-Kirchhoff stress in the material (mat) reference frame. Is initialized in the set_stress_and_or_d_stress_d_strain_mat() method.


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