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 "PorousFlowFluidStateBase.h" 11 : 12 : InputParameters 13 876 : PorousFlowFluidStateBase::validParams() 14 : { 15 876 : InputParameters params = GeneralUserObject::validParams(); 16 1752 : params.addParam<unsigned int>("liquid_phase_number", 0, "The phase number of the liquid phase"); 17 1752 : params.addRequiredParam<UserObjectName>("capillary_pressure", 18 : "Name of the UserObject defining the capillary pressure"); 19 876 : params.addClassDescription("Base class for fluid state classes"); 20 876 : return params; 21 0 : } 22 : 23 438 : PorousFlowFluidStateBase::PorousFlowFluidStateBase(const InputParameters & parameters) 24 : : GeneralUserObject(parameters), 25 438 : _aqueous_phase_number(getParam<unsigned int>("liquid_phase_number")), 26 438 : _R(8.3144598), 27 438 : _T_c2k(273.15), 28 876 : _pc(getUserObject<PorousFlowCapillaryPressure>("capillary_pressure")) 29 : { 30 438 : } 31 : 32 : void 33 2242056 : PorousFlowFluidStateBase::clearFluidStateProperties(std::vector<FluidStateProperties> & fsp) const 34 : { 35 2242056 : std::fill(fsp.begin(), fsp.end(), _empty_fsp); 36 2242056 : }