25 params.
addParam<PostprocessorName>(
"value",
"The name of the postprocessor");
26 MooseEnum schemes(
"implicit-euler trapezoidal-rule",
"trapezoidal-rule");
28 "time_integration_scheme", schemes,
"Time integration scheme to use for the postprocessors");
35 _value_old(getPostprocessorValueOldByName(name())),
36 _pps_value(getPostprocessorValue(
"value")),
37 _pps_value_old(getPostprocessorValueOld(
"value")),
38 _time_integration_scheme(getParam<
MooseEnum>(
"time_integration_scheme"))
42 "Time integration of postprocessor has only been implemented with a transient executioner");
47 const auto time_integrators =
49 for (
const auto & ti : time_integrators)
53 "The time integration in this postprocessor uses the trapezoidal rule method. The "
54 "equation time integration scheme does not use the trapezoidal rule. If the "
55 "postprocessor uses variable values, even indirectly, we would recommend you "
56 "code the same time integration method for the time-integrated postprocessor. "
57 "Specify the 'time_integration_scheme' parameter to silence this warning.");
void mooseInfo(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", TimeIntegratedPostprocessor)
registerMooseObjectRenamed("MooseApp", TotalVariableValue, "04/01/2022 00:00", TimeIntegratedPostprocessor)
Crank-Nicolson time integrator.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
bool isParamSetByUser(const std::string &name) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
MooseApp & _app
The MOOSE application this is associated with.
Integrate a post-processor value over time using trapezoidal rule.
Real _value
The total value of the variable.
static InputParameters validParams()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
const PostprocessorValue & _value_old
My old value.
virtual void execute() override
Execute method.
const PostprocessorValue & _pps_value_old
The old post-processor value.
const MooseEnum & _time_integration_scheme
The time integration method.
const PostprocessorValue & _pps_value
The current post-processor value.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
TimeIntegratedPostprocessor(const InputParameters ¶meters)
Base class for transient executioners that use a FixedPointSolve solve object for multiapp-main app i...
Real & _dt
Time step size.