ComputeGlobalStrain calculates the global strain tensor from the scalar variables.
More...
#include <ComputeGlobalStrain.h>
ComputeGlobalStrain calculates the global strain tensor from the scalar variables.
Definition at line 27 of file ComputeGlobalStrain.h.
◆ ComputeGlobalStrain()
ComputeGlobalStrain::ComputeGlobalStrain |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 38 of file ComputeGlobalStrain.C.
39 : Material(parameters),
40 _base_name(isParamValid(
"base_name") ? getParam<std::string>(
"base_name") +
"_" :
""),
43 _pst(getUserObject<GlobalStrainUserObjectInterface>(
"global_strain_uo")),
45 _dim(_mesh.dimension()),
46 _ndisp(coupledComponents(
"displacements"))
◆ computeProperties()
void ComputeGlobalStrain::computeProperties |
( |
| ) |
|
|
virtual |
Definition at line 57 of file ComputeGlobalStrain.C.
62 for (
unsigned int dir = 0; dir <
_dim; ++dir)
64 for (
unsigned int var = 0; var <
_ndisp; ++var)
65 strain(dir, var) = 0.0;
67 for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
◆ initQpStatefulProperties()
void ComputeGlobalStrain::initQpStatefulProperties |
( |
| ) |
|
|
protectedvirtual |
◆ validParams()
InputParameters ComputeGlobalStrain::validParams |
( |
| ) |
|
|
static |
Definition at line 21 of file ComputeGlobalStrain.C.
24 params.addClassDescription(
25 "Material for storing the global strain values from the scalar variable");
26 params.addParam<std::string>(
"base_name",
27 "Optional parameter that allows the user to define "
28 "multiple mechanics material systems on the same "
29 "block, i.e. for multiple phases");
30 params.addCoupledVar(
"scalar_global_strain",
"Scalar variable for global strain");
31 params.addCoupledVar(
"displacements",
"The name of the displacement variables");
32 params.addRequiredParam<UserObjectName>(
"global_strain_uo",
33 "The name of the GlobalStrainUserObject");
◆ _base_name
const std::string ComputeGlobalStrain::_base_name |
|
protected |
◆ _dim
const unsigned int ComputeGlobalStrain::_dim |
|
protected |
◆ _global_strain
MaterialProperty<RankTwoTensor>& ComputeGlobalStrain::_global_strain |
|
protected |
◆ _ndisp
const unsigned int ComputeGlobalStrain::_ndisp |
|
protected |
◆ _periodic_dir
const VectorValue<bool>& ComputeGlobalStrain::_periodic_dir |
|
protected |
◆ _pst
◆ _scalar_global_strain
const VariableValue& ComputeGlobalStrain::_scalar_global_strain |
|
protected |
The documentation for this class was generated from the following files: