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 "PorousFlowPlotQuantity.h" 11 : #include "PorousFlowSumQuantity.h" 12 : 13 : registerMooseObject("PorousFlowApp", PorousFlowPlotQuantity); 14 : 15 : InputParameters 16 492 : PorousFlowPlotQuantity::validParams() 17 : { 18 492 : InputParameters params = GeneralPostprocessor::validParams(); 19 984 : params.addRequiredParam<UserObjectName>( 20 : "uo", "PorousFlowSumQuantity user object name that holds the required information"); 21 492 : params.addClassDescription("Extracts the value from the PorousFlowSumQuantity UserObject"); 22 492 : return params; 23 0 : } 24 : 25 246 : PorousFlowPlotQuantity::PorousFlowPlotQuantity(const InputParameters & parameters) 26 246 : : GeneralPostprocessor(parameters), _total_mass(getUserObject<PorousFlowSumQuantity>("uo")) 27 : { 28 246 : } 29 : 30 206 : PorousFlowPlotQuantity::~PorousFlowPlotQuantity() {} 31 : 32 : void 33 1888 : PorousFlowPlotQuantity::initialize() 34 : { 35 1888 : } 36 : 37 : void 38 1888 : PorousFlowPlotQuantity::execute() 39 : { 40 1888 : } 41 : 42 : PostprocessorValue 43 1888 : PorousFlowPlotQuantity::getValue() const 44 : { 45 1888 : return _total_mass.getValue(); 46 : }