Line data Source code
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 : 10 : #include "RichardsPlotQuantity.h" 11 : #include "RichardsSumQuantity.h" 12 : 13 : registerMooseObject("RichardsApp", RichardsPlotQuantity); 14 : 15 : InputParameters 16 104 : RichardsPlotQuantity::validParams() 17 : { 18 104 : InputParameters params = GeneralPostprocessor::validParams(); 19 208 : params.addRequiredParam<UserObjectName>("uo", "user object name that has the total mass value"); 20 : 21 104 : return params; 22 0 : } 23 : 24 52 : RichardsPlotQuantity::RichardsPlotQuantity(const InputParameters & parameters) 25 52 : : GeneralPostprocessor(parameters), _total_mass(getUserObject<RichardsSumQuantity>("uo")) 26 : { 27 52 : } 28 : 29 96 : RichardsPlotQuantity::~RichardsPlotQuantity() {} 30 : 31 : void 32 1398 : RichardsPlotQuantity::initialize() 33 : { 34 1398 : } 35 : 36 : void 37 1398 : RichardsPlotQuantity::execute() 38 : { 39 1398 : } 40 : 41 : PostprocessorValue 42 1398 : RichardsPlotQuantity::getValue() const 43 : { 44 1398 : return _total_mass.getValue(); 45 : }