www.mooseframework.org
PorousFlowFluidStateBase.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<GeneralUserObject>();
17  params.addParam<unsigned int>("liquid_phase_number", 0, "The phase number of the liquid phase");
18  params.addParam<unsigned int>(
19  "liquid_fluid_component", 0, "The fluid component number of the primary liquid component");
20  params.addParam<unsigned int>("salt_component", 2, "The component number of salt");
21  params.addRequiredParam<UserObjectName>("capillary_pressure",
22  "Name of the UserObject defining the capillary pressure");
23  params.addClassDescription("Base class for fluid state classes");
24  return params;
25 }
26 
27 PorousFlowFluidStateBase::PorousFlowFluidStateBase(const InputParameters & parameters)
28  : GeneralUserObject(parameters),
29  _aqueous_phase_number(getParam<unsigned int>("liquid_phase_number")),
30  _aqueous_fluid_component(getParam<unsigned int>("liquid_fluid_component")),
31  _salt_component(getParam<unsigned int>("salt_component")),
32  _R(8.3144598),
33  _T_c2k(273.15),
34  _pc(getUserObject<PorousFlowCapillaryPressure>("capillary_pressure"))
35 {
36 }
37 
38 void
39 PorousFlowFluidStateBase::clearFluidStateProperties(std::vector<FluidStateProperties> & fsp) const
40 {
41  std::fill(fsp.begin(), fsp.end(), _empty_fsp);
42 }
PorousFlowFluidStateBase::_empty_fsp
FluidStateProperties _empty_fsp
Empty FluidStateProperties object.
Definition: PorousFlowFluidStateBase.h:139
validParams< PorousFlowFluidStateBase >
InputParameters validParams< PorousFlowFluidStateBase >()
Definition: PorousFlowFluidStateBase.C:14
PorousFlowCapillaryPressure
Base class for capillary pressure for multiphase flow in porous media.
Definition: PorousFlowCapillaryPressure.h:39
PorousFlowFluidStateBase::PorousFlowFluidStateBase
PorousFlowFluidStateBase(const InputParameters &parameters)
Definition: PorousFlowFluidStateBase.C:27
PorousFlowFluidStateBase.h
PorousFlowFluidStateBase::clearFluidStateProperties
void clearFluidStateProperties(std::vector< FluidStateProperties > &fsp) const
Clears the contents of the FluidStateProperties data structure.
Definition: PorousFlowFluidStateBase.C:39