www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
PorousFlowFluidStateIC Class Reference

PorousFlowFluidStateIC calculates an initial value for the total mass fraction of a component summed over all phases, z. More...

#include <PorousFlowFluidStateIC.h>

Inheritance diagram for PorousFlowFluidStateIC:
[legend]

Public Member Functions

 PorousFlowFluidStateIC (const InputParameters &parameters)
 
virtual Real value (const Point &p) override
 

Protected Attributes

const VariableValue & _gas_porepressure
 Gas porepressure (Pa) More...
 
const VariableValue & _temperature
 Fluid temperature (C or K) More...
 
const VariableValue & _Xnacl
 NaCl mass fraction (kg/kg) More...
 
const VariableValue & _saturation
 Gas saturation (-) More...
 
const Real _T_c2k
 Conversion from degrees Celsius to degrees Kelvin. More...
 
const PorousFlowDictator_dictator
 The PorousFlowDictator UserObject. More...
 
const PorousFlowFluidStateBase_fs
 FluidState UserObject. More...
 

Detailed Description

PorousFlowFluidStateIC calculates an initial value for the total mass fraction of a component summed over all phases, z.

Definition at line 27 of file PorousFlowFluidStateIC.h.

Constructor & Destructor Documentation

◆ PorousFlowFluidStateIC()

PorousFlowFluidStateIC::PorousFlowFluidStateIC ( const InputParameters &  parameters)

Definition at line 36 of file PorousFlowFluidStateIC.C.

37  : InitialCondition(parameters),
38  _gas_porepressure(coupledValue("gas_porepressure")),
39  _temperature(coupledValue("temperature")),
40  _Xnacl(coupledValue("xnacl")),
41  _saturation(coupledValue("saturation")),
42  _T_c2k(getParam<MooseEnum>("temperature_unit") == 0 ? 0.0 : 273.15),
43  _dictator(getUserObject<PorousFlowDictator>("PorousFlowDictator")),
44  _fs(getUserObject<PorousFlowFluidStateBase>("fluid_state"))
45 {
46 }
const PorousFlowDictator & _dictator
The PorousFlowDictator UserObject.
const VariableValue & _Xnacl
NaCl mass fraction (kg/kg)
const VariableValue & _saturation
Gas saturation (-)
const Real _T_c2k
Conversion from degrees Celsius to degrees Kelvin.
const PorousFlowFluidStateBase & _fs
FluidState UserObject.
const VariableValue & _temperature
Fluid temperature (C or K)
const VariableValue & _gas_porepressure
Gas porepressure (Pa)

Member Function Documentation

◆ value()

Real PorousFlowFluidStateIC::value ( const Point &  p)
overridevirtual

Definition at line 49 of file PorousFlowFluidStateIC.C.

50 {
51  // The fluid state user object needs temperature in K
52  const Real Tk = _temperature[_qp] + _T_c2k;
53 
54  // The total mass fraction corresponding to the input saturation
55  return _fs.totalMassFraction(_gas_porepressure[_qp], Tk, _Xnacl[_qp], _saturation[_qp], _qp);
56 }
const VariableValue & _Xnacl
NaCl mass fraction (kg/kg)
const VariableValue & _saturation
Gas saturation (-)
const Real _T_c2k
Conversion from degrees Celsius to degrees Kelvin.
const PorousFlowFluidStateBase & _fs
FluidState UserObject.
virtual Real totalMassFraction(Real pressure, Real temperature, Real Xnacl, Real saturation, unsigned int qp) const =0
Total mass fraction of fluid component summed over all phases in the two-phase state for a specified ...
const VariableValue & _temperature
Fluid temperature (C or K)
const VariableValue & _gas_porepressure
Gas porepressure (Pa)

Member Data Documentation

◆ _dictator

const PorousFlowDictator& PorousFlowFluidStateIC::_dictator
protected

The PorousFlowDictator UserObject.

Definition at line 46 of file PorousFlowFluidStateIC.h.

◆ _fs

const PorousFlowFluidStateBase& PorousFlowFluidStateIC::_fs
protected

FluidState UserObject.

Definition at line 48 of file PorousFlowFluidStateIC.h.

Referenced by value().

◆ _gas_porepressure

const VariableValue& PorousFlowFluidStateIC::_gas_porepressure
protected

Gas porepressure (Pa)

Definition at line 36 of file PorousFlowFluidStateIC.h.

Referenced by value().

◆ _saturation

const VariableValue& PorousFlowFluidStateIC::_saturation
protected

Gas saturation (-)

Definition at line 42 of file PorousFlowFluidStateIC.h.

Referenced by value().

◆ _T_c2k

const Real PorousFlowFluidStateIC::_T_c2k
protected

Conversion from degrees Celsius to degrees Kelvin.

Definition at line 44 of file PorousFlowFluidStateIC.h.

Referenced by value().

◆ _temperature

const VariableValue& PorousFlowFluidStateIC::_temperature
protected

Fluid temperature (C or K)

Definition at line 38 of file PorousFlowFluidStateIC.h.

Referenced by value().

◆ _Xnacl

const VariableValue& PorousFlowFluidStateIC::_Xnacl
protected

NaCl mass fraction (kg/kg)

Definition at line 40 of file PorousFlowFluidStateIC.h.

Referenced by value().


The documentation for this class was generated from the following files: