CrackDataSampler is a type of VectorPostprocessor that outputs the values of domain integrals, printed along with positions and angles along the crack front.
More...
#include <CrackDataSampler.h>
CrackDataSampler is a type of VectorPostprocessor that outputs the values of domain integrals, printed along with positions and angles along the crack front.
Definition at line 27 of file CrackDataSampler.h.
◆ CrackDataSampler()
CrackDataSampler::CrackDataSampler |
( |
const InputParameters & |
parameters | ) |
|
Class constructor.
- Parameters
-
parameters | The input parameters |
Definition at line 41 of file CrackDataSampler.C.
42 : GeneralVectorPostprocessor(parameters),
43 SamplerBase(parameters,
this, _communicator),
47 std::vector<PostprocessorName> pps_names(
48 getParam<std::vector<PostprocessorName>>(
"postprocessors"));
49 for (
unsigned int i = 0; i < pps_names.size(); ++i)
51 if (!hasPostprocessorByName(pps_names[i]))
52 mooseError(
"In CrackDataSampler, postprocessor with name: ", pps_names[i],
" does not exist");
55 std::vector<std::string> var_names;
56 var_names.push_back(
name());
57 SamplerBase::setupVariables(var_names);
◆ ~CrackDataSampler()
virtual CrackDataSampler::~CrackDataSampler |
( |
| ) |
|
|
inlinevirtual |
◆ execute()
void CrackDataSampler::execute |
( |
| ) |
|
|
virtual |
Populates the postprocessor vector of values with the supplied postprocessors.
Definition at line 75 of file CrackDataSampler.C.
77 if (processor_id() == 0)
79 std::vector<Real> values;
91 addSample(*crack_front_point, position, values);
◆ finalize()
void CrackDataSampler::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
void CrackDataSampler::initialize |
( |
| ) |
|
|
virtual |
Initialize, clears the postprocessor vector.
Definition at line 61 of file CrackDataSampler.C.
65 mooseError(
"In CrackDataSampler, number of crack front nodes != number of domain integral "
69 "In CrackDataSampler, 'position_type = Angle' specified, but angle is not available. ",
70 "Must specify 'crack_mouth_boundary' in CrackFrontDefinition");
71 SamplerBase::initialize();
◆ validParams()
InputParameters CrackDataSampler::validParams |
( |
| ) |
|
|
static |
Definition at line 19 of file CrackDataSampler.C.
25 params.addRequiredParam<std::vector<PostprocessorName>>(
26 "postprocessors",
"The postprocessors whose values are to be reported");
27 params.addRequiredParam<UserObjectName>(
"crack_front_definition",
28 "The CrackFrontDefinition user object name");
29 MooseEnum position_type(
"Angle Distance",
"Distance");
30 params.addParam<MooseEnum>(
33 "The method used to calculate position along crack front. Options are: " +
34 position_type.getRawNames());
35 params.addClassDescription(
"Outputs the values of a set of domain integral postprocessors as a "
36 "vector, along with their positions along the crack front.");
◆ _crack_front_definition
◆ _domain_integral_postprocessor_values
std::vector<const PostprocessorValue *> CrackDataSampler::_domain_integral_postprocessor_values |
|
protected |
◆ _position_type
MooseEnum CrackDataSampler::_position_type |
|
protected |
The documentation for this class was generated from the following files: