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 
14 {
16  params.addParam<unsigned int>("liquid_phase_number", 0, "The phase number of the liquid phase");
17  params.addRequiredParam<UserObjectName>("capillary_pressure",
18  "Name of the UserObject defining the capillary pressure");
19  params.addClassDescription("Base class for fluid state classes");
20  return params;
21 }
22 
24  : GeneralUserObject(parameters),
25  _aqueous_phase_number(getParam<unsigned int>("liquid_phase_number")),
26  _R(8.3144598),
27  _T_c2k(273.15),
28  _pc(getUserObject<PorousFlowCapillaryPressure>("capillary_pressure"))
29 {
30 }
31 
32 void
33 PorousFlowFluidStateBase::clearFluidStateProperties(std::vector<FluidStateProperties> & fsp) const
34 {
35  std::fill(fsp.begin(), fsp.end(), _empty_fsp);
36 }
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void clearFluidStateProperties(std::vector< FluidStateProperties > &fsp) const
Clears the contents of the FluidStateProperties data structure.
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
Base class for capillary pressure for multiphase flow in porous media.
PorousFlowFluidStateBase(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
FluidStateProperties _empty_fsp
Empty FluidStateProperties object.
void ErrorVector unsigned int