25 "AuxKernel to visualize the displacements generated by the global strain tensor");
27 "Scalar variable providing global strain components");
28 params.
addCoupledVar(
"displacements",
"The name of the displacement variables");
30 "The displacement component to consider for this kernel");
32 "output_global_displacement",
false,
"Option to output global displacement only");
34 "The name of the GlobalStrainUserObject");
35 params.
addParam<Point>(
"reference_point",
37 "The coordinate of the center/fixed point of the simulation");
48 _scalar_global_strain(coupledScalarValue(
"scalar_global_strain")),
49 _component(getParam<unsigned
int>(
"component")),
50 _output_global_disp(getParam<bool>(
"output_global_displacement")),
52 getUserObjectBase(
"global_strain_uo"))),
53 _periodic_dir(_pst.getPeriodicDirections()),
54 _ref_point(parameters.
get<Point>(
"reference_point")),
55 _dim(_mesh.dimension()),
56 _ndisp(coupledComponents(
"displacements")),
57 _disp(coupledValues(
"displacements"))
60 paramError(
"variable",
"GlobalDisplacementAux must be used on a nodal auxiliary variable");
66 " does not exist for ",
68 " dimensional problems");
77 for (
unsigned int dir = 0; dir <
_dim; ++dir)
79 for (
unsigned int var = 0; var <
_ndisp; ++var)
80 strain(dir, var) = 0.0;
const unsigned int _component
Component of the displacement vector.
const unsigned int _ndisp
Number of displacement variables.
virtual Real computeValue() override
const std::vector< const VariableValue * > _disp
Displacement variables.
void paramError(const std::string ¶m, Args... args) const
const VectorValue< bool > & _periodic_dir
const ExecFlagType EXEC_PRE_DISPLACE
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This class provides interface for extracting the periodic directions, residual, and jacobian values f...
static InputParameters validParams()
const VariableValue & _scalar_global_strain
GlobalDisplacementAux(const InputParameters ¶meters)
static InputParameters validParams()
void fillFromScalarVariable(const VariableValue &scalar_variable)
void ErrorVector unsigned int
const Elem & get(const ElemType type_in)
registerMooseObject("SolidMechanicsApp", GlobalDisplacementAux)