Contains the quantities which are constant within a finite volume in the two-phase two-component model. This is the base class for a 2p2c model with and without chemical nonequilibrium. More...
#include <dumux/porousmediumflow/2p2c/volumevariables.hh>
Contains the quantities which are constant within a finite volume in the two-phase two-component model. This is the base class for a 2p2c model with and without chemical nonequilibrium.
Public Types | |
| using | FluidState = typename Traits::FluidState |
| The type of the object returned by the fluidState() method. More... | |
| using | FluidSystem = typename Traits::FluidSystem |
| The fluid system used here. More... | |
| using | Indices = typename ModelTraits::Indices |
| Export the indices. More... | |
| using | SolidState = typename Traits::SolidState |
| Export type of solid state. More... | |
| using | SolidSystem = typename Traits::SolidSystem |
| Export type of solid system. More... | |
| using | PrimaryVariableSwitch = TwoPNCPrimaryVariableSwitch |
| Export the primary variable switch. More... | |
| using | PrimaryVariables = typename Traits::PrimaryVariables |
| Export the type used for the primary variables. More... | |
Public Member Functions | |
| template<class ElemSol , class Problem , class Element , class Scv > | |
| void | update (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv) |
| Updates all quantities for a given control volume. More... | |
| template<class ElemSol , class Problem , class Element , class Scv > | |
| void | completeFluidState (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState, SolidState &solidState) |
| Sets complete fluid state. More... | |
| const FluidState & | fluidState () const |
| Returns the phase state within the control volume. More... | |
| const SolidState & | solidState () const |
| Returns the phase state for the control-volume. More... | |
| Scalar | averageMolarMass (int phaseIdx) const |
| Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. More... | |
| Scalar | saturation (const int phaseIdx) const |
| Returns the saturation of a given phase within the control volume in \([-]\). More... | |
| Scalar | massFraction (const int phaseIdx, const int compIdx) const |
| Returns the mass fraction of a given component in a given phase within the control volume in \([-]\). More... | |
| Scalar | moleFraction (const int phaseIdx, const int compIdx) const |
| Returns the mole fraction of a given component in a given phase within the control volume in \([-]\). More... | |
| Scalar | density (const int phaseIdx) const |
| Returns the mass density of a given phase within the control volume in \([kg/m^3]\). More... | |
| Scalar | viscosity (const int phaseIdx) const |
| Returns the dynamic viscosity of the fluid within the control volume in \(\mathrm{[Pa s]}\). More... | |
| Scalar | molarDensity (const int phaseIdx) const |
| Returns the mass density of a given phase within the control volume in \([mol/m^3]\). More... | |
| Scalar | pressure (const int phaseIdx) const |
| Returns the effective pressure of a given phase within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). More... | |
| Scalar | temperature () const |
| Returns temperature within the control volume in \([K]\). More... | |
| Scalar | relativePermeability (const int phaseIdx) const |
| Returns the relative permeability of a given phase within the control volume in \([-]\). More... | |
| Scalar | mobility (const int phaseIdx) const |
| Returns the effective mobility of a given phase within the control volume in \([s*m/kg]\). More... | |
| Scalar | capillaryPressure () const |
| Returns the effective capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). More... | |
| Scalar | porosity () const |
| Returns the average porosity within the control volume in \([-]\). More... | |
| const PermeabilityType & | permeability () const |
| Returns the average permeability within the control volume in \([m^2]\). More... | |
| Scalar | diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More... | |
| Scalar | effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the effective diffusion coefficients for a phase in \([m^2/s]\). More... | |
| int | wettingPhase () const |
| Returns the wetting phase index. More... | |
| const PrimaryVariables & | priVars () const |
| Returns the vector of primary variables. More... | |
| Scalar | priVar (const int pvIdx) const |
| Returns a component of primary variable vector. More... | |
| Scalar | extrusionFactor () const |
| Returns how much the sub-control volume is extruded. More... | |
Static Public Member Functions | |
| static constexpr bool | useMoles () |
| Return whether moles or masses are balanced. More... | |
| static constexpr TwoPFormulation | priVarFormulation () |
| Return the two-phase formulation used here. More... | |
| static constexpr int | numFluidPhases () |
| Return number of phases considered by the model. More... | |
| static constexpr int | numFluidComponents () |
| Return number of components considered by the model. More... | |
Protected Member Functions | |
| const Impl & | asImp_ () const |
| Impl & | asImp_ () |
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::FluidState = typename Traits::FluidState |
The type of the object returned by the fluidState() method.
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::FluidSystem = typename Traits::FluidSystem |
The fluid system used here.
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::Indices = typename ModelTraits::Indices |
Export the indices.
|
inherited |
Export the type used for the primary variables.
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::PrimaryVariableSwitch = TwoPNCPrimaryVariableSwitch |
Export the primary variable switch.
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::SolidState = typename Traits::SolidState |
Export type of solid state.
| using Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >::SolidSystem = typename Traits::SolidSystem |
Export type of solid system.
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase.
| phaseIdx | The phase index |
|
inline |
Returns the effective capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\).
|
inline |
Sets complete fluid state.
| elemSol | A vector containing all primary variables connected to the element |
| problem | The object specifying the problem which ought to be simulated |
| element | An element which contains part of the control volume |
| scv | The sub-control volume |
| fluidState | A container with the current (physical) state of the fluid |
| solidState | A container with the current (physical) state of the solid |
Set temperature, saturations, capillary pressures, viscosities, densities and enthalpies.
|
inline |
Returns the mass density of a given phase within the control volume in \([kg/m^3]\).
| phaseIdx | The phase index |
|
inline |
Returns the binary diffusion coefficients for a phase in \([m^2/s]\).
|
inline |
Returns the effective diffusion coefficients for a phase in \([m^2/s]\).
|
inlineinherited |
Returns how much the sub-control volume is extruded.
This means the factor by which a lower-dimensional (1D or 2D) entity needs to be expanded to get a full dimensional cell. The default is 1.0 which means that 1D problems are actually thought as pipes with a cross section of 1 m^2 and 2D problems are assumed to extend 1 m to the back.
|
inline |
Returns the phase state within the control volume.
|
inline |
Returns the mass fraction of a given component in a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
| compIdx | The component index |
|
inline |
Returns the effective mobility of a given phase within the control volume in \([s*m/kg]\).
| phaseIdx | The phase index |
|
inline |
Returns the mass density of a given phase within the control volume in \([mol/m^3]\).
| phaseIdx | The phase index |
|
inline |
Returns the mole fraction of a given component in a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
| compIdx | The component index |
|
inlinestaticconstexprinherited |
Return number of components considered by the model.
|
inlinestaticconstexprinherited |
Return number of phases considered by the model.
|
inline |
Returns the average permeability within the control volume in \([m^2]\).
|
inline |
Returns the average porosity within the control volume in \([-]\).
|
inline |
Returns the effective pressure of a given phase within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\).
| phaseIdx | The phase index |
|
inlineinherited |
Returns a component of primary variable vector.
| pvIdx | The index of the primary variable of interest |
|
inlinestaticconstexpr |
Return the two-phase formulation used here.
|
inlineinherited |
Returns the vector of primary variables.
|
inline |
Returns the relative permeability of a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
|
inline |
Returns the saturation of a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
|
inline |
Returns the phase state for the control-volume.
|
inline |
Returns temperature within the control volume in \([K]\).
Note that we assume thermodynamic equilibrium, i.e. the temperature of the rock matrix and of all fluid phases are identical.
|
inline |
Updates all quantities for a given control volume.
| elemSol | A vector containing all primary variables connected to the element |
| problem | The object specifying the problem which ought to be simulated |
| element | An element which contains part of the control volume |
| scv | The sub control volume |
|
inlinestaticconstexpr |
Return whether moles or masses are balanced.
|
inline |
Returns the dynamic viscosity of the fluid within the control volume in \(\mathrm{[Pa s]}\).
| phaseIdx | The phase index |
|
inline |
Returns the wetting phase index.