317 const std::vector<VariableName> & hide);
324 template <
typename postprocessor_type>
381template <
typename postprocessor_type>
391 std::ostringstream oss;
392 oss <<
"execute_" << execute_data_name <<
"_on";
393 std::string execute_on_name = oss.str();
395 std::vector<postprocessor_type *> objs;
396 if constexpr (std::is_same_v<postprocessor_type, Postprocessor>)
400 .condition<AttribThread>(0)
401 .queryIntoUnsorted(objs);
402 else if constexpr (std::is_same_v<postprocessor_type, VectorPostprocessor>)
406 .condition<AttribThread>(0)
407 .queryIntoUnsorted(objs);
409 for (
const auto & obj : objs)
411 execute_data.
available.insert(obj->PPName());
414 const auto & pps_outputs = obj->getOutputs();
421 if (pps_outputs.find(
name()) != pps_outputs.end() ||
422 pps_outputs.find(
"all") != pps_outputs.end())
428 const bool is_pp_type = (execute_data_name ==
"postprocessors");
429 const std::string pp_type_str = is_pp_type ?
"post-processor" :
"vector post-processor";
434 "' has requested to be output by the '",
438 " output is disabled for that output object.");
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
Based class for output objects.
virtual bool hasOutput()
Returns true if any of the other has methods return true.
bool hasReporterOutput()
Returns true if there exists Reporter for output.
bool hasOutputHelper(const std::string &name)
Helper method for checking if output types exists.
virtual void outputScalarVariables()
Performs output of scalar variables The child class must define this method to output the scalar vari...
const std::set< std::string > & getReporterOutput()
The list of Reporter names that are set for output.
void initExecutionTypes(const std::string &name, ExecFlagEnum &input)
Initialize the possible execution types.
void initAvailableLists()
Initializes the available lists for each of the output types.
static InputParameters enableOutputTypes(const std::string &names=std::string())
A method for enabling individual output type control.
virtual void output()
A single call to this function should output all the necessary data for a single timestep.
virtual void initialSetup()
Call init() method on setup.
virtual void outputSystemInformation()
bool hasElementalVariableOutput()
Returns true if there exists elemental nonlinear variables for output.
virtual bool shouldOutput()
Handles logic for determining if a step should be output.
const std::set< std::string > & getElementalVariableOutput()
The list of elemental nonlinear variables names that are set for output.
bool hasNodalVariableOutput()
Returns true if there exists nodal nonlinear variables for output.
const bool _postprocessors_as_reporters
Flags for outputting PP/VPP data as a reporter.
bool _elemental_as_nodal
Flags to control nodal output.
void initPostprocessorOrVectorPostprocessorLists(const std::string &execute_data_name)
Helper function for initAvailableLists, templated on warehouse type and postprocessor_type.
bool hasPostprocessorOutput()
Returns true if there exists postprocessors for output.
std::map< std::string, Real > & _last_execute_time
Storage for the last output time for the various output types, this is used to avoid duplicate output...
const ReporterData & _reporter_data
Storage for Reporter values.
void clearLastExecuteTime()
Clears bookkeeping used to suppress duplicate EXEC_FINAL output at the same time.
const bool _vectorpostprocessors_as_reporters
void hideAdditionalVariable(const std::string &category, const std::string &var_name)
Add an additional variable to the hide list.
const std::set< std::string > & getNodalVariableOutput()
The list of nodal nonlinear variables names that are set for output.
static InputParameters validParams()
static MultiMooseEnum getOutputTypes()
Get the supported types of output (e.g., postprocessors, etc.)
bool hasScalarOutput()
Returns true if there exists scalar variables for output.
const std::set< std::string > & getScalarOutput()
The list of scalar variables names that are set for output.
void initShowHideLists(const std::vector< VariableName > &show, const std::vector< VariableName > &hide)
Parses the user-supplied input for hiding and showing variables and postprocessors into a list for ea...
bool wantOutput(const std::string &name, const ExecFlagType &type)
Handles logic for determining if a step should be output.
virtual void outputElementalVariables()
Performs output of elemental nonlinear variables The child class must define this method to output th...
virtual ~AdvancedOutput()
Class destructor.
virtual void outputReporters()
Output Reporter values.
bool hasVectorPostprocessorOutput()
Returns true if there exists VectorPostprocessors for output.
virtual void outputPostprocessors()
Performs output of postprocessors The child class must define this method to output the postprocessor...
virtual void outputVectorPostprocessors()
Performs output of VectorPostprocessors The child class must define this method to output the VectorP...
const std::set< std::string > & getVectorPostprocessorOutput()
The list of VectorPostprocessor names that are set for output.
virtual void outputInput()
Performs the output of the input file By default this method does nothing and is not called,...
virtual void init()
Populates the various data structures needed to control the output.
OutputDataWarehouse _execute_data
Storage structures for the various output types.
virtual void outputNodalVariables()
Performs output of nodal nonlinear variables The child class must define this method to output the no...
void initOutputList(OutputData &data)
Initializes the list of items to be output using the available, show, and hide lists.
const std::set< std::string > & getPostprocessorOutput()
The list of postprocessor names that are set for output.
static void addValidParams(InputParameters ¶ms, const MultiMooseEnum &types)
Method for defining the available parameters based on the types of outputs.
const OutputOnWarehouse & advancedExecuteOn() const
Get the current advanced 'execute_on' selections for display.
An output object for writing to the console (screen)
A MultiMooseEnum object to hold "execute_on" flags.
TheWarehouse & theWarehouse() const
An outputter with filename support.
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
const InputParameters & parameters() const
Get the parameters of the object.
const std::string & type() const
Get the type of this class.
const std::string & name() const
Get the name of the class.
Class for containing MooseEnum item information.
MooseApp & _app
The MOOSE application this is associated with.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
A helper warehouse for storing OutputData objects for the various output types.
bool contains(const std::string &name) const
A method for testing of a key exists.
A helper warehouse class for storing the "execute_on" settings for the various output types.
Class for storing and utilizing output objects.
void checkOutputs(const std::set< OutputName > &names, const bool supports_material_output=false)
Test that the output names exist.
FEProblemBase * _problem_ptr
Pointer the the FEProblemBase object for output object (use this)
OutputOnWarehouse _advanced_execute_on
Storage for the individual component execute flags.
Adds the ability to output on every nonlinear and/or linear residual.
This is a helper class for managing the storage of declared Reporter object values.
QueryCache & condition(Args &&... args)
Adds a new condition to the query.
Query query()
query creates and returns an initialized a query object for querying objects from the warehouse.
MultiApp Implementation for Transient Apps.
A structure for storing the various lists that contain the names of the items to be exported.
std::set< std::string > available
A list of all possible outputs.