www.mooseframework.org
PorousFlowPlotQuantity.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<GeneralPostprocessor>();
16  params.addRequiredParam<UserObjectName>(
17  "uo", "PorousFlowSumQuantity user object name that holds the required information");
18  params.addClassDescription("Extracts the value from the PorousFlowSumQuantity UserObject");
19  return params;
20 }
21 
22 PorousFlowPlotQuantity::PorousFlowPlotQuantity(const InputParameters & parameters)
23  : GeneralPostprocessor(parameters), _total_mass(getUserObject<PorousFlowSumQuantity>("uo"))
24 {
25 }
26 
28 
29 void
31 {
32 }
33 
34 void
36 {
37 }
38 
39 PostprocessorValue
41 {
42  return _total_mass.getValue();
43 }
virtual PostprocessorValue getValue() override
returns the value of the PorousFlowSumQuantity
virtual Real getValue() const
returns _total
PorousFlowPlotQuantity(const InputParameters &parameters)
virtual void initialize() override
Sums into _total This is used, for instance, to record the total mass flowing into a borehole...
const PorousFlowSumQuantity & _total_mass
the PorousFlowSumQuantity userobject
InputParameters validParams< PorousFlowPlotQuantity >()
virtual void execute() override