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 "PorousFlowFluidStateSingleComponentBase.h" 11 : 12 : InputParameters 13 130 : PorousFlowFluidStateSingleComponentBase::validParams() 14 : { 15 130 : InputParameters params = PorousFlowFluidStateBase::validParams(); 16 260 : params.addParam<unsigned int>("fluid_component", 0, "The fluid component number"); 17 130 : params.addClassDescription("Base class for single component fluid state classes"); 18 130 : return params; 19 0 : } 20 : 21 65 : PorousFlowFluidStateSingleComponentBase::PorousFlowFluidStateSingleComponentBase( 22 65 : const InputParameters & parameters) 23 : : PorousFlowFluidStateBase(parameters), 24 65 : _fluid_component(getParam<unsigned int>("fluid_component")), 25 65 : _pidx(0), 26 65 : _hidx(1), 27 65 : _dT(1.0e-6) 28 : { 29 65 : }