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 : // This post processor returns the effective saturation of a region. 11 : // 12 : #include "RichardsSeffAux.h" 13 : 14 : registerMooseObject("RichardsApp", RichardsSeffAux); 15 : 16 : InputParameters 17 472 : RichardsSeffAux::validParams() 18 : { 19 472 : InputParameters params = AuxKernel::validParams(); 20 944 : params.addRequiredCoupledVar("pressure_vars", "List of variables that represent the pressure"); 21 944 : params.addRequiredParam<UserObjectName>("seff_UO", 22 : "Name of user object that defines effective saturation."); 23 472 : params.addClassDescription("auxillary variable which is effective saturation"); 24 472 : return params; 25 0 : } 26 : 27 221 : RichardsSeffAux::RichardsSeffAux(const InputParameters & parameters) 28 : : AuxKernel(parameters), 29 221 : _seff_UO(getUserObject<RichardsSeff>("seff_UO")), 30 442 : _pressure_vals(coupledValues("pressure_vars")) 31 : { 32 221 : } 33 : 34 : Real 35 1994138 : RichardsSeffAux::computeValue() 36 : { 37 1994138 : return _seff_UO.seff(_pressure_vals, _qp); 38 : }