13 #include "MooseMesh.h"
14 #include "MooseVariable.h"
15 #include "SubProblem.h"
17 #include "libmesh/boundary_info.h"
27 params.addClassDescription(
"Determines which nodes are along the crack front");
28 params.addRequiredParam<VariableName>(
29 "variable",
"The name of a variable whose value at the crack front is to be reported");
30 params.addRequiredParam<UserObjectName>(
"crack_front_definition",
31 "The CrackFrontDefinition user object name");
32 params.addParam<
unsigned int>(
33 "crack_front_point_index",
34 "The index of the point on the crack front where data is to be reported");
35 params.addParam<Real>(
"scale_factor", 1,
"A scale factor to be applied to the reported quantity");
40 : GeneralPostprocessor(parameters),
42 _crack_front_point_index(isParamValid(
"crack_front_point_index")
43 ? getParam<unsigned int>(
"crack_front_point_index")
45 _crack_front_node(NULL),
46 _mesh(_subproblem.mesh()),
47 _var_name(parameters.get<VariableName>(
"variable")),
48 _scale_factor(getParam<Real>(
"scale_factor")),
49 _field_var(_subproblem.getStandardVariable(_tid, _var_name))
52 mooseError(
"CrackFrontData can be output only for nodal variables, variable '",
60 if (!(_crack_front_point_index < _crack_front_definition->getNumCrackFrontPoints()))
61 mooseError(
"crack_front_point_index out of range in CrackFrontData");
63 mooseError(
"CrackFrontData not currently supported if crack front is defined with points "