www.mooseframework.org
RichardsPlotQuantity.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 
8 #include "RichardsPlotQuantity.h"
9 #include "RichardsSumQuantity.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<GeneralPostprocessor>();
16  params.addRequiredParam<UserObjectName>("uo", "user object name that has the total mass value");
17 
18  return params;
19 }
20 
21 RichardsPlotQuantity::RichardsPlotQuantity(const InputParameters & parameters)
22  : GeneralPostprocessor(parameters), _total_mass(getUserObject<RichardsSumQuantity>("uo"))
23 {
24 }
25 
27 
28 void
30 {
31 }
32 
33 void
35 {
36 }
37 
38 PostprocessorValue
40 {
41  return _total_mass.getValue();
42 }
Sums into _total This is used, for instance, to record the total mass flowing into a borehole...
virtual PostprocessorValue getValue()
returns the value of the RichardsSumQuantity
RichardsPlotQuantity(const InputParameters &parameters)
InputParameters validParams< RichardsPlotQuantity >()
const RichardsSumQuantity & _total_mass
the RichardsSumQuantity userobject
virtual Real getValue() const
returns _total