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

PorousFlowFluidStateWaterNCGIC calculates an initial value for the total mass fraction of a component summed over all phases, z, for water and non-condensable gas. More...

#include <PorousFlowFluidStateWaterNCGIC.h>

Inheritance diagram for PorousFlowFluidStateWaterNCGIC:
[legend]

Public Member Functions

 PorousFlowFluidStateWaterNCGIC (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

PorousFlowFluidStateWaterNCGIC calculates an initial value for the total mass fraction of a component summed over all phases, z, for water and non-condensable gas.

Definition at line 26 of file PorousFlowFluidStateWaterNCGIC.h.

Constructor & Destructor Documentation

◆ PorousFlowFluidStateWaterNCGIC()

PorousFlowFluidStateWaterNCGIC::PorousFlowFluidStateWaterNCGIC ( const InputParameters &  parameters)

Definition at line 25 of file PorousFlowFluidStateWaterNCGIC.C.

26  : PorousFlowFluidStateIC(parameters)
27 {
28  mooseDeprecated(name(),
29  ": the PorousFlowFluidStateWaterNCGIC IC is deprecated. Just use "
30  "PorousFlowFluidStateIC instead");
31 }
PorousFlowFluidStateIC(const InputParameters &parameters)
const std::string name
Definition: Setup.h:22

Member Function Documentation

◆ value()

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

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
protectedinherited

The PorousFlowDictator UserObject.

Definition at line 46 of file PorousFlowFluidStateIC.h.

◆ _fs

const PorousFlowFluidStateBase& PorousFlowFluidStateIC::_fs
protectedinherited

FluidState UserObject.

Definition at line 48 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().

◆ _gas_porepressure

const VariableValue& PorousFlowFluidStateIC::_gas_porepressure
protectedinherited

Gas porepressure (Pa)

Definition at line 36 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().

◆ _saturation

const VariableValue& PorousFlowFluidStateIC::_saturation
protectedinherited

Gas saturation (-)

Definition at line 42 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().

◆ _T_c2k

const Real PorousFlowFluidStateIC::_T_c2k
protectedinherited

Conversion from degrees Celsius to degrees Kelvin.

Definition at line 44 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().

◆ _temperature

const VariableValue& PorousFlowFluidStateIC::_temperature
protectedinherited

Fluid temperature (C or K)

Definition at line 38 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().

◆ _Xnacl

const VariableValue& PorousFlowFluidStateIC::_Xnacl
protectedinherited

NaCl mass fraction (kg/kg)

Definition at line 40 of file PorousFlowFluidStateIC.h.

Referenced by PorousFlowFluidStateIC::value().


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