19 "given the $K_I$, $K_{II}$, and $K_{III}$ stress " 21 params.
addParam<
unsigned int>(
"ring_index",
"Ring ID");
23 "KI_vectorpostprocessor",
"The name of the VectorPostprocessor that computes KI");
25 "KII_vectorpostprocessor",
"The name of the VectorPostprocessor that computes KII");
27 "KIII_vectorpostprocessor",
"The name of the VectorPostprocessor that computes KIII");
28 params.
addRequiredParam<std::string>(
"KI_vector_name",
"The name of the vector that contains KI");
30 "The name of the vector that contains KII");
32 "The name of the vector that contains KIII");
39 _ki_vpp_name(getParam<VectorPostprocessorName>(
"KI_vectorpostprocessor")),
40 _kii_vpp_name(getParam<VectorPostprocessorName>(
"KII_vectorpostprocessor")),
41 _kiii_vpp_name(getParam<VectorPostprocessorName>(
"KIII_vectorpostprocessor")),
42 _ki_vector_name(getParam<
std::string>(
"KI_vector_name")),
43 _kii_vector_name(getParam<
std::string>(
"KII_vector_name")),
44 _kiii_vector_name(getParam<
std::string>(
"KIII_vector_name")),
45 _ki_value(getVectorPostprocessorValue(
"KI_vectorpostprocessor", _ki_vector_name)),
46 _kii_value(getVectorPostprocessorValue(
"KII_vectorpostprocessor", _kii_vector_name)),
47 _kiii_value(getVectorPostprocessorValue(
"KIII_vectorpostprocessor", _kiii_vector_name)),
48 _x_value(getVectorPostprocessorValue(
"KI_vectorpostprocessor",
"x")),
49 _y_value(getVectorPostprocessorValue(
"KI_vectorpostprocessor",
"y")),
50 _z_value(getVectorPostprocessorValue(
"KI_vectorpostprocessor",
"z")),
51 _position_value(getVectorPostprocessorValue(
"KI_vectorpostprocessor",
"id")),
52 _poissons_ratio(getParam<
Real>(
"poissons_ratio")),
53 _ring_index(getParam<unsigned
int>(
"ring_index")),
54 _x(declareVector(
"x")),
55 _y(declareVector(
"y")),
56 _z(declareVector(
"z")),
57 _position(declareVector(
"id")),
65 const unsigned int num_pts =
_x_value.size();
67 _x.assign(num_pts, 0.0);
68 _y.assign(num_pts, 0.0);
69 _z.assign(num_pts, 0.0);
71 _k_eq.assign(num_pts, 0.0);
77 for (
unsigned int i = 0; i <
_k_eq.size(); ++i)
VectorPostprocessorValue & _x
static InputParameters validParams()
virtual void initialize()
registerMooseObject("SolidMechanicsApp", MixedModeEquivalentK)
const VectorPostprocessorValue & _ki_value
const VectorPostprocessorValue & _x_value
const VectorPostprocessorValue & _z_value
static InputParameters validParams()
MixedModeEquivalentK(const InputParameters ¶meters)
VectorPostprocessorValue & _y
VectorPostprocessorValue & _position
std::string stringify(const T &t)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VectorPostprocessorValue & _position_value
VectorPostprocessorValue & _k_eq
const VectorPostprocessorValue & _kiii_value
VectorPostprocessorValue & _z
const VectorPostprocessorValue & _y_value
const Real & _poissons_ratio
void ErrorVector unsigned int
const VectorPostprocessorValue & _kii_value