Go to the documentation of this file.
17 : _ppi_params(moose_object->parameters()),
18 _pi_feproblem(*_ppi_params.getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base"))
26 mooseError(
"Postprocessor requested with index ",
28 " when only a single postprocessor is coupled.");
40 if (index >=
_ppi_params.get<std::vector<PostprocessorName>>(name).size())
41 mooseError(
"Postprocessor requested with index ",
46 _ppi_params.get<std::vector<PostprocessorName>>(name).size(),
50 _ppi_params.get<std::vector<PostprocessorName>>(name)[index]);
58 mooseError(
"Postprocessor requested with index ",
60 " when only a single postprocessor is coupled.");
72 if (index >=
_ppi_params.get<std::vector<PostprocessorName>>(name).size())
73 mooseError(
"Postprocessor requested with index ",
78 _ppi_params.get<std::vector<PostprocessorName>>(name).size(),
82 _ppi_params.get<std::vector<PostprocessorName>>(name)[index]);
90 mooseError(
"Postprocessor requested with index ",
92 " when only a single postprocessor is coupled.");
104 if (index >=
_ppi_params.get<std::vector<PostprocessorName>>(name).size())
105 mooseError(
"Postprocessor requested with index ",
110 _ppi_params.get<std::vector<PostprocessorName>>(name).size(),
114 _ppi_params.get<std::vector<PostprocessorName>>(name)[index]);
142 _ppi_params.get<std::vector<PostprocessorName>>(name)[index]);
150 return _ppi_params.get<std::vector<PostprocessorName>>(name).size();
PostprocessorValue & getPostprocessorValue(const PostprocessorName &name)
Get a reference to the value associated with the postprocessor.
bool hasPostprocessor(const std::string &name, unsigned int index=0) const
Determine if the Postprocessor exists.
bool singlePostprocessor(const std::string &name) const
Checks if there is a single postprocessor coupled by parameter name.
bool hasPostprocessorByName(const PostprocessorName &name)
Determine if the Postprocessor exists.
PostprocessorInterface(const MooseObject *moose_object)
FEProblemBase & _pi_feproblem
Reference the the FEProblemBase class.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Every object that can be built by the factory should be derived from this class.
Real PostprocessorValue
MOOSE typedefs.
PostprocessorValue & getPostprocessorValueOld(const std::string &name)
Get the reference to the old value of a post-processor.
const PostprocessorValue & getDefaultPostprocessorValue(const std::string &name)
Return the default postprocessor value.
const PostprocessorValue & getPostprocessorValueOld(const std::string &name, unsigned int index=0)
PostprocessorValue & getPostprocessorValueOlder(const std::string &name)
Get the reference to the older value of a post-processor.
const InputParameters & _ppi_params
PostprocessorInterface Parameters.
const PostprocessorValue & getPostprocessorValue(const std::string &name, unsigned int index=0)
doco-normal-methods-begin Retrieve the value of a Postprocessor or one of it's old or older values
const PostprocessorValue & getPostprocessorValueByName(const PostprocessorName &name)
Retrieve the value of the Postprocessor.
const PostprocessorValue & getPostprocessorValueOlder(const std::string &name, unsigned int index=0)
unsigned int coupledPostprocessors(const std::string &name) const
Returns number of Postprocessors coupled under parameter name.
const PostprocessorValue & getPostprocessorValueOlderByName(const PostprocessorName &name)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const PostprocessorValue & getPostprocessorValueOldByName(const PostprocessorName &name)
bool hasPostprocessor(const std::string &name)
Check existence of the postprocessor.