Fluid state class for brine and CO2. More...
#include <PorousFlowFluidStateBrineCO2.h>
Public Member Functions | |
PorousFlowFluidStateBrineCO2 (const InputParameters ¶meters) | |
Protected Member Functions | |
virtual void | initQpStatefulProperties () override |
virtual void | computeQpProperties () override |
void | setMaterialVectorSize () const |
Size material property vectors and initialise with zeros. More... | |
virtual void | thermophysicalProperties () |
Calculates all required thermophysical properties and derivatives for each phase and fluid component. More... | |
Protected Attributes | |
const VariableValue & | _gas_porepressure |
Porepressure. More... | |
const VariableGradient & | _gas_gradp_qp |
Gradient of porepressure (only defined at the qps) More... | |
const unsigned int | _gas_porepressure_varnum |
Moose variable number of the gas porepressure. More... | |
const unsigned int | _pvar |
PorousFlow variable number of the gas porepressure. More... | |
std::vector< const VariableValue * > | _Z |
Total mass fraction(s) of the gas component(s) summed over all phases. More... | |
std::vector< const VariableGradient * > | _gradZ_qp |
Gradient(s) of total mass fraction(s) of the gas component(s) (only defined at the qps) More... | |
std::vector< unsigned int > | _Z_varnum |
Moose variable number of Z. More... | |
std::vector< unsigned int > | _Zvar |
PorousFlow variable number of Z. More... | |
const unsigned int | _num_Z_vars |
Number of coupled total mass fractions. Should be _num_phases - 1. More... | |
const VariableValue & | _Xnacl |
Salt mass fraction (kg/kg) More... | |
const VariableGradient & | _grad_Xnacl_qp |
Gradient of salt mass fraction (only defined at the qps) More... | |
const unsigned int | _Xnacl_varnum |
Salt mass fraction variable number. More... | |
const unsigned int | _Xvar |
Salt mass fraction PorousFlow variable number. More... | |
const PorousFlowFluidStateBase & | _fs |
FluidState UserObject. More... | |
const unsigned int | _aqueous_phase_number |
Phase number of the aqueous phase. More... | |
const 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... | |
const unsigned int | _gas_fluid_component |
Fluid component number of the gas phase. More... | |
const unsigned int | _salt_component |
Salt component index. More... | |
const MaterialProperty< Real > & | _temperature |
Temperature. More... | |
const MaterialProperty< RealGradient > & | _gradT_qp |
Gradient of temperature (only defined at the qps) More... | |
const MaterialProperty< std::vector< Real > > & | _dtemperature_dvar |
Derivative of temperature wrt PorousFlow variables. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _mass_frac |
Mass fraction matrix. More... | |
MaterialProperty< std::vector< std::vector< RealGradient > > > * | _grad_mass_frac_qp |
Gradient of the mass fraction matrix (only defined at the qps) More... | |
MaterialProperty< std::vector< std::vector< std::vector< Real > > > > & | _dmass_frac_dvar |
Derivative of the mass fraction matrix with respect to the Porous Flow variables. More... | |
const MaterialProperty< std::vector< Real > > & | _saturation_old |
Old value of saturation. More... | |
MaterialProperty< std::vector< Real > > & | _fluid_density |
Fluid density of each phase. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_density_dvar |
Derivative of the fluid density for each phase wrt PorousFlow variables. More... | |
MaterialProperty< std::vector< Real > > & | _fluid_viscosity |
Viscosity of each phase. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_viscosity_dvar |
Derivative of the fluid viscosity for each phase wrt PorousFlow variables. More... | |
MaterialProperty< std::vector< Real > > & | _fluid_enthalpy |
Enthalpy of each phase. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_enthalpy_dvar |
Derivative of the fluid enthalpy for each phase wrt PorousFlow variables. More... | |
const Real | _T_c2k |
Conversion from degrees Celsius to degrees Kelvin. More... | |
bool | _is_initqp |
Flag to indicate whether to calculate stateful properties. More... | |
std::vector< FluidStateProperties > | _fsp |
FluidStateProperties data structure. More... | |
const PorousFlowCapillaryPressure & | _pc |
Capillary pressure UserObject. More... | |
const unsigned int | _num_phases |
Number of phases. More... | |
const unsigned int | _num_components |
Number of components. More... | |
const unsigned int | _num_pf_vars |
Number of PorousFlow variables. More... | |
MaterialProperty< std::vector< Real > > & | _porepressure |
Computed nodal or quadpoint values of porepressure of the phases. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dporepressure_dvar |
d(porepressure)/d(PorousFlow variable) More... | |
MaterialProperty< std::vector< RealGradient > > *const | _gradp_qp |
Grad(p) at the quadpoints. More... | |
MaterialProperty< std::vector< std::vector< Real > > > *const | _dgradp_qp_dgradv |
d(grad porepressure)/d(grad PorousFlow variable) at the quadpoints More... | |
MaterialProperty< std::vector< std::vector< RealGradient > > > *const | _dgradp_qp_dv |
d(grad porepressure)/d(PorousFlow variable) at the quadpoints More... | |
MaterialProperty< std::vector< Real > > & | _saturation |
Computed nodal or qp saturation of the phases. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dsaturation_dvar |
d(saturation)/d(PorousFlow variable) More... | |
MaterialProperty< std::vector< RealGradient > > *const | _grads_qp |
Grad(s) at the quadpoints. More... | |
MaterialProperty< std::vector< std::vector< Real > > > *const | _dgrads_qp_dgradv |
d(grad saturation)/d(grad PorousFlow variable) at the quadpoints More... | |
MaterialProperty< std::vector< std::vector< RealGradient > > > *const | _dgrads_qp_dv |
d(grad saturation)/d(PorousFlow variable) at the quadpoints More... | |
Fluid state class for brine and CO2.
Includes mutual solubility of CO2 and brine using model of Spycher, Pruess and Ennis-King, CO2-H2O mixtures in the geological sequestration of CO2. I. Assessment and calculation of mutual solubilities from 12 to 100C and up to 600 bar, Geochimica et Cosmochimica Acta, 67, 3015-3031 (2003), and Spycher and Pruess, CO2-H2O mixtures in the geological sequestration of CO2. II. Partitioning in chloride brine at 12-100C and up to 600 bar, Geochimica et Cosmochimica Acta, 69, 3309-3320 (2005)
Definition at line 30 of file PorousFlowFluidStateBrineCO2.h.
PorousFlowFluidStateBrineCO2::PorousFlowFluidStateBrineCO2 | ( | const InputParameters & | parameters | ) |
Definition at line 25 of file PorousFlowFluidStateBrineCO2.C.
|
overrideprotectedvirtualinherited |
Reimplemented from PorousFlowVariableBase.
Definition at line 180 of file PorousFlowFluidState.C.
|
overrideprotectedvirtualinherited |
Reimplemented from PorousFlowVariableBase.
Definition at line 150 of file PorousFlowFluidState.C.
|
protectedinherited |
Size material property vectors and initialise with zeros.
Definition at line 404 of file PorousFlowFluidState.C.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedvirtualinherited |
Calculates all required thermophysical properties and derivatives for each phase and fluid component.
Must override in all derived classes.
Definition at line 141 of file PorousFlowFluidState.C.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
Fluid component number of the aqueous component.
Definition at line 102 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Phase number of the aqueous phase.
Definition at line 98 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Derivative of the fluid density for each phase wrt PorousFlow variables.
Definition at line 125 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Derivative of the fluid enthalpy for each phase wrt PorousFlow variables.
Definition at line 133 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Derivative of the fluid viscosity for each phase wrt PorousFlow variables.
Definition at line 129 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
d(grad porepressure)/d(grad PorousFlow variable) at the quadpoints
Definition at line 54 of file PorousFlowVariableBase.h.
|
protectedinherited |
d(grad porepressure)/d(PorousFlow variable) at the quadpoints
Definition at line 57 of file PorousFlowVariableBase.h.
|
protectedinherited |
d(grad saturation)/d(grad PorousFlow variable) at the quadpoints
Definition at line 69 of file PorousFlowVariableBase.h.
|
protectedinherited |
d(grad saturation)/d(PorousFlow variable) at the quadpoints
Definition at line 72 of file PorousFlowVariableBase.h.
|
protectedinherited |
Derivative of the mass fraction matrix with respect to the Porous Flow variables.
Definition at line 118 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
d(porepressure)/d(PorousFlow variable)
Definition at line 48 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseFullySaturated::computeQpProperties(), PorousFlow2PhasePP::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlow1PhaseP::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), and PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
d(saturation)/d(PorousFlow variable)
Definition at line 63 of file PorousFlowVariableBase.h.
Referenced by PorousFlow2PhasePP::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlow1PhaseP::computeQpProperties(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), and PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Derivative of temperature wrt PorousFlow variables.
Definition at line 112 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Fluid density of each phase.
Definition at line 123 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Enthalpy of each phase.
Definition at line 131 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Viscosity of each phase.
Definition at line 127 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
FluidState UserObject.
Definition at line 96 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
FluidStateProperties data structure.
Definition at line 140 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Fluid component number of the gas phase.
Definition at line 104 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Gradient of porepressure (only defined at the qps)
Definition at line 72 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Phase number of the gas phase.
Definition at line 100 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Porepressure.
Definition at line 70 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Moose variable number of the gas porepressure.
Definition at line 74 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Gradient of the mass fraction matrix (only defined at the qps)
Definition at line 116 of file PorousFlowFluidState.h.
|
protectedinherited |
Gradient of salt mass fraction (only defined at the qps)
Definition at line 90 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Grad(p) at the quadpoints.
Definition at line 51 of file PorousFlowVariableBase.h.
|
protectedinherited |
Grad(s) at the quadpoints.
Definition at line 66 of file PorousFlowVariableBase.h.
|
protectedinherited |
Gradient of temperature (only defined at the qps)
Definition at line 110 of file PorousFlowFluidState.h.
|
protectedinherited |
Gradient(s) of total mass fraction(s) of the gas component(s) (only defined at the qps)
Definition at line 80 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
Flag to indicate whether to calculate stateful properties.
Definition at line 138 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Mass fraction matrix.
Definition at line 114 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of components.
Definition at line 39 of file PorousFlowVariableBase.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of PorousFlow variables.
Definition at line 42 of file PorousFlowVariableBase.h.
Referenced by PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of phases.
Definition at line 36 of file PorousFlowVariableBase.h.
Referenced by PorousFlowVariableBase::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), PorousFlowFluidState::initQpStatefulProperties(), PorousFlow1PhaseFullySaturated::PorousFlow1PhaseFullySaturated(), PorousFlow1PhaseMD_Gaussian::PorousFlow1PhaseMD_Gaussian(), PorousFlow1PhaseP::PorousFlow1PhaseP(), PorousFlow2PhasePP::PorousFlow2PhasePP(), PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of coupled total mass fractions. Should be _num_phases - 1.
Definition at line 86 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
Capillary pressure UserObject.
Definition at line 142 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Computed nodal or quadpoint values of porepressure of the phases.
Definition at line 45 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseMD_Gaussian::buildPS(), PorousFlow2PhasePS::buildQpPPSS(), PorousFlow1PhaseFullySaturated::buildQpPPSS(), PorousFlow1PhaseP::buildQpPPSS(), PorousFlow2PhasePP::buildQpPPSS(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
PorousFlow variable number of the gas porepressure.
Definition at line 76 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Salt component index.
Definition at line 106 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Computed nodal or qp saturation of the phases.
Definition at line 60 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseMD_Gaussian::buildPS(), PorousFlow2PhasePS::buildQpPPSS(), PorousFlow1PhaseFullySaturated::buildQpPPSS(), PorousFlow1PhaseP::buildQpPPSS(), PorousFlow2PhasePP::buildQpPPSS(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
Old value of saturation.
Definition at line 120 of file PorousFlowFluidState.h.
|
protectedinherited |
Conversion from degrees Celsius to degrees Kelvin.
Definition at line 136 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Temperature.
Definition at line 108 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Salt mass fraction (kg/kg)
Definition at line 88 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Salt mass fraction variable number.
Definition at line 92 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Salt mass fraction PorousFlow variable number.
Definition at line 94 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Total mass fraction(s) of the gas component(s) summed over all phases.
Definition at line 78 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Moose variable number of Z.
Definition at line 82 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
PorousFlow variable number of Z.
Definition at line 84 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().