https://mooseframework.inl.gov
TimeIntegratedPostprocessor.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
14  TotalVariableValue,
15  "04/01/2022 00:00",
17 
20 {
22  params.addClassDescription("Integrate a Postprocessor value over time using trapezoidal rule.");
23  params.addParam<PostprocessorName>("value", "The name of the postprocessor");
24  return params;
25 }
26 
28  : GeneralPostprocessor(parameters),
29  _value(0),
30  _value_old(getPostprocessorValueOldByName(name())),
31  _pps_value(getPostprocessorValue("value")),
32  _pps_value_old(getPostprocessorValueOld("value"))
33 {
34 }
35 
36 void
38 {
39 }
40 
41 void
43 {
45 }
46 
47 Real
49 {
50  return _value;
51 }
std::string name(const ElemQuality q)
registerMooseObjectRenamed("MooseApp", TotalVariableValue, "04/01/2022 00:00", TimeIntegratedPostprocessor)
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void execute() override
Execute method.
Real & _dt
Time step size.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
registerMooseObject("MooseApp", TimeIntegratedPostprocessor)
static InputParameters validParams()
Real _value
The total value of the variable.
const PostprocessorValue & _pps_value
The current post-processor value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const PostprocessorValue & _value_old
My old value.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
Integrate a post-processor value over time using trapezoidal rule.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
TimeIntegratedPostprocessor(const InputParameters &parameters)
const PostprocessorValue & _pps_value_old
The old post-processor value.