www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
PorousFlowFluidStateSingleComponentBase Class Referenceabstract

Base class for miscible multiphase flow classes with a single fluid component using a pressure and enthalpy formulation (eg, water and steam) More...

#include <PorousFlowFluidStateSingleComponentBase.h>

Inheritance diagram for PorousFlowFluidStateSingleComponentBase:
[legend]

Public Member Functions

 PorousFlowFluidStateSingleComponentBase (const InputParameters &parameters)
 
virtual void thermophysicalProperties (Real pressure, Real enthalpy, unsigned int qp, FluidStatePhaseEnum &phase_state, std::vector< FluidStateProperties > &fsp) const =0
 Determines the complete thermophysical state of the system for a given set of primary variables. More...
 
unsigned int getPressureIndex () const
 
unsigned int getEnthalpyIndex () const
 
void initialize () final
 
void execute () final
 
void finalize () final
 
unsigned int numPhases () const
 The maximum number of phases in this model. More...
 
unsigned int numComponents () const
 The maximum number of components in this model. More...
 
unsigned int aqueousPhaseIndex () const
 The index of the aqueous phase. More...
 
unsigned int gasPhaseIndex () const
 The index of the gas phase. More...
 
unsigned int aqueousComponentIndex () const
 The index of the aqueous fluid component. More...
 
unsigned int gasComponentIndex () const
 The index of the gas fluid component. More...
 
unsigned int saltComponentIndex () const
 The index of the salt component. More...
 
virtual std::string fluidStateName () const =0
 Name of FluidState. More...
 
void clearFluidStateProperties (std::vector< FluidStateProperties > &fsp) const
 Clears the contents of the FluidStateProperties data structure. More...
 

Protected Attributes

const unsigned int _pidx
 Index of derivative wrt pressure. More...
 
const unsigned int _hidx
 Index of derivative wrt enthalpy. More...
 
const Real dT
 Perturbation applied to saturation temperature to move to gas/liquid phase. More...
 
unsigned int _num_phases
 Number of phases. More...
 
unsigned int _num_components
 Number of components. More...
 
const unsigned int _aqueous_phase_number
 Phase number of the aqueous phase. More...
 
unsigned int _gas_phase_number
 Phase number of the gas phase. More...
 
const unsigned int _aqueous_fluid_component
 Fluid component number of the aqueous component. More...
 
unsigned int _gas_fluid_component
 Fluid component number of the gas phase. More...
 
const unsigned int _salt_component
 Salt component index. More...
 
const Real _R
 Universal gas constant (J/mol/K) More...
 
const Real _T_c2k
 Conversion from C to K. More...
 
const PorousFlowCapillaryPressure_pc
 Capillary pressure UserObject. More...
 
FluidStateProperties _empty_fsp
 Empty FluidStateProperties object. More...
 

Detailed Description

Base class for miscible multiphase flow classes with a single fluid component using a pressure and enthalpy formulation (eg, water and steam)

Definition at line 23 of file PorousFlowFluidStateSingleComponentBase.h.

Constructor & Destructor Documentation

◆ PorousFlowFluidStateSingleComponentBase()

PorousFlowFluidStateSingleComponentBase::PorousFlowFluidStateSingleComponentBase ( const InputParameters &  parameters)

Definition at line 21 of file PorousFlowFluidStateSingleComponentBase.C.

23  : PorousFlowFluidStateBase(parameters), _pidx(0), _hidx(1), dT(1.0e-6)
24 {
25 }

Member Function Documentation

◆ aqueousComponentIndex()

unsigned int PorousFlowFluidStateBase::aqueousComponentIndex ( ) const
inlineinherited

The index of the aqueous fluid component.

Returns
aqueous fluid component number

Definition at line 92 of file PorousFlowFluidStateBase.h.

92 { return _aqueous_fluid_component; };

◆ aqueousPhaseIndex()

unsigned int PorousFlowFluidStateBase::aqueousPhaseIndex ( ) const
inlineinherited

The index of the aqueous phase.

Returns
aqueous phase number

Definition at line 80 of file PorousFlowFluidStateBase.h.

80 { return _aqueous_phase_number; };

◆ clearFluidStateProperties()

void PorousFlowFluidStateBase::clearFluidStateProperties ( std::vector< FluidStateProperties > &  fsp) const
inherited

Clears the contents of the FluidStateProperties data structure.

Parameters
[out]fspFluidStateProperties data structure with all data initialized to 0

Definition at line 39 of file PorousFlowFluidStateBase.C.

40 {
41  std::fill(fsp.begin(), fsp.end(), _empty_fsp);
42 }

Referenced by PorousFlowWaterNCG::thermophysicalProperties(), PorousFlowFluidStateSingleComponent::thermophysicalProperties(), and PorousFlowBrineCO2::thermophysicalProperties().

◆ execute()

void PorousFlowFluidStateBase::execute ( )
inlinefinalinherited

Definition at line 61 of file PorousFlowFluidStateBase.h.

61 {};

◆ finalize()

void PorousFlowFluidStateBase::finalize ( )
inlinefinalinherited

Definition at line 62 of file PorousFlowFluidStateBase.h.

62 {};

◆ fluidStateName()

virtual std::string PorousFlowFluidStateBase::fluidStateName ( ) const
pure virtualinherited

Name of FluidState.

Implemented in PorousFlowBrineCO2, PorousFlowWaterNCG, and PorousFlowWaterVapor.

◆ gasComponentIndex()

unsigned int PorousFlowFluidStateBase::gasComponentIndex ( ) const
inlineinherited

The index of the gas fluid component.

Returns
gas fluid component number

Definition at line 98 of file PorousFlowFluidStateBase.h.

98 { return _gas_fluid_component; };

◆ gasPhaseIndex()

unsigned int PorousFlowFluidStateBase::gasPhaseIndex ( ) const
inlineinherited

The index of the gas phase.

Returns
gas phase number

Definition at line 86 of file PorousFlowFluidStateBase.h.

86 { return _gas_phase_number; };

◆ getEnthalpyIndex()

unsigned int PorousFlowFluidStateSingleComponentBase::getEnthalpyIndex ( ) const
inline

Definition at line 45 of file PorousFlowFluidStateSingleComponentBase.h.

45 { return _hidx; };

◆ getPressureIndex()

unsigned int PorousFlowFluidStateSingleComponentBase::getPressureIndex ( ) const
inline

Definition at line 44 of file PorousFlowFluidStateSingleComponentBase.h.

44 { return _pidx; };

◆ initialize()

void PorousFlowFluidStateBase::initialize ( )
inlinefinalinherited

Definition at line 60 of file PorousFlowFluidStateBase.h.

60 {};

◆ numComponents()

unsigned int PorousFlowFluidStateBase::numComponents ( ) const
inlineinherited

The maximum number of components in this model.

Returns
number of components

Definition at line 74 of file PorousFlowFluidStateBase.h.

74 { return _num_components; };

◆ numPhases()

unsigned int PorousFlowFluidStateBase::numPhases ( ) const
inlineinherited

The maximum number of phases in this model.

Returns
number of phases

Definition at line 68 of file PorousFlowFluidStateBase.h.

68 { return _num_phases; };

Referenced by PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidStateSingleComponent::PorousFlowFluidStateSingleComponent().

◆ saltComponentIndex()

unsigned int PorousFlowFluidStateBase::saltComponentIndex ( ) const
inlineinherited

The index of the salt component.

Returns
salt component number

Definition at line 104 of file PorousFlowFluidStateBase.h.

104 { return _salt_component; };

◆ thermophysicalProperties()

virtual void PorousFlowFluidStateSingleComponentBase::thermophysicalProperties ( Real  pressure,
Real  enthalpy,
unsigned int  qp,
FluidStatePhaseEnum phase_state,
std::vector< FluidStateProperties > &  fsp 
) const
pure virtual

Determines the complete thermophysical state of the system for a given set of primary variables.

Parameters
pressuregas phase pressure (Pa)
enthalpyfluid enthalpy (J/kg)
qpquadpoint index
[out]phase_statethe current phase (gas, liquid or two-phase)
[out]fspthe FluidStateProperties struct containing all properties

Implemented in PorousFlowWaterVapor.

Referenced by PorousFlowFluidStateSingleComponent::computeQpProperties(), and PorousFlowFluidStateSingleComponent::thermophysicalProperties().

Member Data Documentation

◆ _aqueous_fluid_component

const unsigned int PorousFlowFluidStateBase::_aqueous_fluid_component
protectedinherited

◆ _aqueous_phase_number

const unsigned int PorousFlowFluidStateBase::_aqueous_phase_number
protectedinherited

◆ _empty_fsp

FluidStateProperties PorousFlowFluidStateBase::_empty_fsp
protectedinherited

◆ _gas_fluid_component

unsigned int PorousFlowFluidStateBase::_gas_fluid_component
protectedinherited

◆ _gas_phase_number

unsigned int PorousFlowFluidStateBase::_gas_phase_number
protectedinherited

◆ _hidx

const unsigned int PorousFlowFluidStateSingleComponentBase::_hidx
protected

Index of derivative wrt enthalpy.

Definition at line 51 of file PorousFlowFluidStateSingleComponentBase.h.

Referenced by getEnthalpyIndex(), and PorousFlowWaterVapor::thermophysicalProperties().

◆ _num_components

unsigned int PorousFlowFluidStateBase::_num_components
protectedinherited

◆ _num_phases

unsigned int PorousFlowFluidStateBase::_num_phases
protectedinherited

◆ _pc

const PorousFlowCapillaryPressure& PorousFlowFluidStateBase::_pc
protectedinherited

◆ _pidx

const unsigned int PorousFlowFluidStateSingleComponentBase::_pidx
protected

Index of derivative wrt pressure.

Definition at line 45 of file PorousFlowFluidStateSingleComponentBase.h.

Referenced by getPressureIndex(), and PorousFlowWaterVapor::thermophysicalProperties().

◆ _R

const Real PorousFlowFluidStateBase::_R
protectedinherited

Universal gas constant (J/mol/K)

Definition at line 133 of file PorousFlowFluidStateBase.h.

Referenced by PorousFlowWaterNCG::enthalpyOfDissolution(), and PorousFlowBrineCO2::enthalpyOfDissolutionGas().

◆ _salt_component

const unsigned int PorousFlowFluidStateBase::_salt_component
protectedinherited

Salt component index.

Definition at line 131 of file PorousFlowFluidStateBase.h.

Referenced by PorousFlowFluidStateBase::saltComponentIndex().

◆ _T_c2k

const Real PorousFlowFluidStateBase::_T_c2k
protectedinherited

◆ dT

const Real PorousFlowFluidStateSingleComponentBase::dT
protected

Perturbation applied to saturation temperature to move to gas/liquid phase.

Definition at line 53 of file PorousFlowFluidStateSingleComponentBase.h.

Referenced by PorousFlowWaterVapor::thermophysicalProperties().


The documentation for this class was generated from the following files:
PorousFlowFluidStateBase::_empty_fsp
FluidStateProperties _empty_fsp
Empty FluidStateProperties object.
Definition: PorousFlowFluidStateBase.h:139
PorousFlowFluidStateBase::_gas_phase_number
unsigned int _gas_phase_number
Phase number of the gas phase.
Definition: PorousFlowFluidStateBase.h:125
PorousFlowFluidStateBase::_gas_fluid_component
unsigned int _gas_fluid_component
Fluid component number of the gas phase.
Definition: PorousFlowFluidStateBase.h:129
PorousFlowFluidStateBase::_salt_component
const unsigned int _salt_component
Salt component index.
Definition: PorousFlowFluidStateBase.h:131
PorousFlowFluidStateBase::_aqueous_phase_number
const unsigned int _aqueous_phase_number
Phase number of the aqueous phase.
Definition: PorousFlowFluidStateBase.h:123
PorousFlowFluidStateBase::_num_phases
unsigned int _num_phases
Number of phases.
Definition: PorousFlowFluidStateBase.h:119
PorousFlowFluidStateBase::PorousFlowFluidStateBase
PorousFlowFluidStateBase(const InputParameters &parameters)
Definition: PorousFlowFluidStateBase.C:27
PorousFlowFluidStateBase::_num_components
unsigned int _num_components
Number of components.
Definition: PorousFlowFluidStateBase.h:121
PorousFlowFluidStateBase::_aqueous_fluid_component
const unsigned int _aqueous_fluid_component
Fluid component number of the aqueous component.
Definition: PorousFlowFluidStateBase.h:127
PorousFlowFluidStateSingleComponentBase::_hidx
const unsigned int _hidx
Index of derivative wrt enthalpy.
Definition: PorousFlowFluidStateSingleComponentBase.h:51
PorousFlowFluidStateSingleComponentBase::dT
const Real dT
Perturbation applied to saturation temperature to move to gas/liquid phase.
Definition: PorousFlowFluidStateSingleComponentBase.h:53
PorousFlowFluidStateSingleComponentBase::_pidx
const unsigned int _pidx
Index of derivative wrt pressure.
Definition: PorousFlowFluidStateSingleComponentBase.h:45