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 PorousFlowFluidStateMultiComponentBase & | _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... | |
const unsigned int | _temperature_varnum |
Moose variable number of the temperature. More... | |
const unsigned int | _Tvar |
PorousFlow variable number of the temperature. 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... | |
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... | |
MaterialProperty< std::vector< Real > > & | _fluid_internal_energy |
Internal energy of each phase. More... | |
MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_internal_energy_dvar |
Derivative of the fluid internal energy 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 | _pidx |
Index of derivative wrt pressure. More... | |
const unsigned int | _Tidx |
Index of derivative wrt temperature. More... | |
const unsigned int | _Zidx |
Index of derivative wrt total mass fraction Z. More... | |
const unsigned int | _Xidx |
Index of derivative wrt salt mass fraction X. 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 29 of file PorousFlowFluidStateBrineCO2.h.
PorousFlowFluidStateBrineCO2::PorousFlowFluidStateBrineCO2 | ( | const InputParameters & | parameters | ) |
Definition at line 25 of file PorousFlowFluidStateBrineCO2.C.
|
overrideprotectedvirtualinherited |
Reimplemented from PorousFlowVariableBase.
Definition at line 195 of file PorousFlowFluidState.C.
|
overrideprotectedvirtualinherited |
|
protectedinherited |
Size material property vectors and initialise with zeros.
Definition at line 394 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.
Definition at line 157 of file PorousFlowFluidState.C.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
Fluid component number of the aqueous component.
Definition at line 101 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Phase number of the aqueous phase.
Definition at line 97 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Derivative of the fluid density for each phase wrt PorousFlow variables.
Definition at line 126 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 134 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Derivative of the fluid internal energy for each phase wrt PorousFlow variables.
Definition at line 138 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 130 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 53 of file PorousFlowVariableBase.h.
Referenced by PorousFlowFluidStateSingleComponent::computeQpProperties(), and PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
d(grad porepressure)/d(PorousFlow variable) at the quadpoints
Definition at line 56 of file PorousFlowVariableBase.h.
|
protectedinherited |
d(grad saturation)/d(grad PorousFlow variable) at the quadpoints
Definition at line 68 of file PorousFlowVariableBase.h.
|
protectedinherited |
d(grad saturation)/d(PorousFlow variable) at the quadpoints
Definition at line 71 of file PorousFlowVariableBase.h.
|
protectedinherited |
Derivative of the mass fraction matrix with respect to the Porous Flow variables.
Definition at line 121 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
d(porepressure)/d(PorousFlow variable)
Definition at line 47 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseFullySaturated::computeQpProperties(), PorousFlow2PhasePP::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlow1PhaseP::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), PorousFlowFluidStateSingleComponent::computeQpProperties(), and PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
d(saturation)/d(PorousFlow variable)
Definition at line 62 of file PorousFlowVariableBase.h.
Referenced by PorousFlow2PhasePP::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlow1PhaseP::computeQpProperties(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), PorousFlowFluidStateSingleComponent::computeQpProperties(), and PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Derivative of temperature wrt PorousFlow variables.
Definition at line 111 of file PorousFlowFluidState.h.
|
protectedinherited |
Fluid density of each phase.
Definition at line 124 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Enthalpy of each phase.
Definition at line 132 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Internal energy of each phase.
Definition at line 136 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Viscosity of each phase.
Definition at line 128 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
FluidState UserObject.
Definition at line 95 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
FluidStateProperties data structure.
Definition at line 145 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 103 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Gradient of porepressure (only defined at the qps)
Definition at line 71 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Phase number of the gas phase.
Definition at line 99 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Porepressure.
Definition at line 69 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Moose variable number of the gas porepressure.
Definition at line 73 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Gradient of the mass fraction matrix (only defined at the qps)
Definition at line 119 of file PorousFlowFluidState.h.
|
protectedinherited |
Gradient of salt mass fraction (only defined at the qps)
Definition at line 89 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Grad(p) at the quadpoints.
Definition at line 50 of file PorousFlowVariableBase.h.
|
protectedinherited |
Grad(s) at the quadpoints.
Definition at line 65 of file PorousFlowVariableBase.h.
|
protectedinherited |
Gradient of temperature (only defined at the qps)
Definition at line 109 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Gradient(s) of total mass fraction(s) of the gas component(s) (only defined at the qps)
Definition at line 79 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
Flag to indicate whether to calculate stateful properties.
Definition at line 143 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Mass fraction matrix.
Definition at line 117 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of components.
Definition at line 38 of file PorousFlowVariableBase.h.
Referenced by PorousFlowFluidStateSingleComponent::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowFluidState::initQpStatefulProperties(), PorousFlowFluidState::PorousFlowFluidState(), PorousFlowFluidStateSingleComponent::PorousFlowFluidStateSingleComponent(), PorousFlowFluidStateSingleComponent::setMaterialVectorSize(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of PorousFlow variables.
Definition at line 41 of file PorousFlowVariableBase.h.
Referenced by PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidStateSingleComponent::setMaterialVectorSize(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of phases.
Definition at line 35 of file PorousFlowVariableBase.h.
Referenced by PorousFlowVariableBase::computeQpProperties(), PorousFlow2PhasePS::computeQpProperties(), PorousFlowFluidStateSingleComponent::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), PorousFlowFluidStateSingleComponent::initQpStatefulProperties(), PorousFlowFluidState::initQpStatefulProperties(), PorousFlow1PhaseFullySaturated::PorousFlow1PhaseFullySaturated(), PorousFlow1PhaseMD_Gaussian::PorousFlow1PhaseMD_Gaussian(), PorousFlow1PhaseP::PorousFlow1PhaseP(), PorousFlow2PhasePP::PorousFlow2PhasePP(), PorousFlowFluidState::PorousFlowFluidState(), PorousFlowFluidStateSingleComponent::PorousFlowFluidStateSingleComponent(), PorousFlowFluidStateSingleComponent::setMaterialVectorSize(), and PorousFlowFluidState::setMaterialVectorSize().
|
protectedinherited |
Number of coupled total mass fractions. Should be _num_phases - 1.
Definition at line 85 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
Capillary pressure UserObject.
Definition at line 147 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Index of derivative wrt pressure.
Definition at line 149 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Computed nodal or quadpoint values of porepressure of the phases.
Definition at line 44 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseMD_Gaussian::buildPS(), PorousFlow2PhasePS::buildQpPPSS(), PorousFlow1PhaseFullySaturated::buildQpPPSS(), PorousFlow1PhaseP::buildQpPPSS(), PorousFlow2PhasePP::buildQpPPSS(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidStateSingleComponent::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), PorousFlowFluidStateSingleComponent::initQpStatefulProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
PorousFlow variable number of the gas porepressure.
Definition at line 75 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Salt component index.
Definition at line 105 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Computed nodal or qp saturation of the phases.
Definition at line 59 of file PorousFlowVariableBase.h.
Referenced by PorousFlow1PhaseMD_Gaussian::buildPS(), PorousFlow2PhasePS::buildQpPPSS(), PorousFlow1PhaseFullySaturated::buildQpPPSS(), PorousFlow1PhaseP::buildQpPPSS(), PorousFlow2PhasePP::buildQpPPSS(), PorousFlow1PhaseMD_Gaussian::computeQpProperties(), PorousFlowVariableBase::computeQpProperties(), PorousFlowFluidStateSingleComponent::computeQpProperties(), PorousFlowFluidState::computeQpProperties(), PorousFlowVariableBase::initQpStatefulProperties(), PorousFlowFluidStateSingleComponent::initQpStatefulProperties(), and PorousFlowFluidState::initQpStatefulProperties().
|
protectedinherited |
Conversion from degrees Celsius to degrees Kelvin.
Definition at line 141 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Temperature.
Definition at line 107 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Moose variable number of the temperature.
Definition at line 113 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Index of derivative wrt temperature.
Definition at line 151 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
PorousFlow variable number of the temperature.
Definition at line 115 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Index of derivative wrt salt mass fraction X.
Definition at line 155 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Salt mass fraction (kg/kg)
Definition at line 87 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Salt mass fraction variable number.
Definition at line 91 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
Salt mass fraction PorousFlow variable number.
Definition at line 93 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 77 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::PorousFlowFluidState(), and PorousFlowFluidState::thermophysicalProperties().
|
protectedinherited |
Moose variable number of Z.
Definition at line 81 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().
|
protectedinherited |
Index of derivative wrt total mass fraction Z.
Definition at line 153 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties().
|
protectedinherited |
PorousFlow variable number of Z.
Definition at line 83 of file PorousFlowFluidState.h.
Referenced by PorousFlowFluidState::computeQpProperties(), and PorousFlowFluidState::PorousFlowFluidState().