Contains the quantities which are constant within a finite volume in the two-phase n-components model.
#include <dumux/porenetwork/2pnc/volumevariables.hh>
Public Types | |
| using | FluidSystem = typename Traits::FluidSystem |
| Export type of fluid system. | |
| using | FluidState = typename Traits::FluidState |
| Export type of fluid state. | |
| using | SolidState = typename Traits::SolidState |
| Export type of solid state. | |
| using | SolidSystem = typename Traits::SolidSystem |
| Export type of solid system. | |
| using | Indices = typename ModelTraits::Indices |
| Export the indices. | |
| using | PrimaryVariableSwitch = TwoPNCPrimaryVariableSwitch |
| Export the primary variable switch. | |
| using | PrimaryVariables = typename Traits::PrimaryVariables |
| Export the type used for the primary variables. | |
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. | |
| Scalar | poreInscribedRadius () const |
| Returns the pore's inscribed radius. | |
| Scalar | poreVolume () const |
| Returns the pore volume. // TODO should this be a fraction only? | |
| Scalar | surfaceTension () const |
| Returns the surface tension. | |
| 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. | |
| const FluidState & | fluidState () const |
| Returns the phase state for the control-volume. | |
| const SolidState & | solidState () const |
| Returns the phase state for the control-volume. | |
| Scalar | averageMolarMass (int phaseIdx) const |
| Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. | |
| Scalar | saturation (int phaseIdx) const |
| Returns the saturation of a given phase within the control volume in \([-]\). | |
| Scalar | density (int phaseIdx) const |
| Returns the mass density of a given phase within the control volume. | |
| Scalar | viscosity (int phaseIdx) const |
| Returns the dynamic viscosity of a given phase within the control volume. | |
| Scalar | molarDensity (int phaseIdx) const |
| Returns the molar density of a given phase within the control volume. | |
| Scalar | pressure (int phaseIdx) const |
| Returns the effective pressure of a given phase within the control volume. | |
| Scalar | temperature () const |
| Returns temperature inside the sub-control volume. | |
| Scalar | mobility (int phaseIdx) const |
| Returns the effective mobility of a given phase within the control volume. | |
| Scalar | capillaryPressure () const |
| Returns the effective capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). | |
| Scalar | porosity () const |
| Returns the average porosity within the control volume. | |
| const PermeabilityType & | permeability () const |
| Returns the permeability within the control volume. | |
| Scalar | diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the binary diffusion coefficients for a phase in \([m^2/s]\). | |
| Scalar | effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the effective diffusion coefficients for a phase in \([m^2/s]\). | |
| Scalar | massFraction (int phaseIdx, int compIdx) const |
| Returns the mass fraction of a component in the phase. | |
| Scalar | moleFraction (int phaseIdx, int compIdx) const |
| Returns the mole fraction of a component in the phase. | |
| int | wettingPhase () const |
| Returns the wetting phase index. | |
| const PrimaryVariables & | priVars () const |
| Returns the vector of primary variables. | |
| Scalar | priVar (const int pvIdx) const |
| Returns a component of primary variable vector. | |
| Scalar | extrusionFactor () const |
| Returns how much the sub-control volume is extruded. | |
Static Public Member Functions | |
| static constexpr bool | useMoles () |
| Return whether moles or masses are balanced. | |
| static constexpr TwoPFormulation | priVarFormulation () |
| Return the two-phase formulation used here. | |
| static constexpr int | numFluidPhases () |
| Return number of phases considered by the model. | |
| static constexpr int | numFluidComponents () |
| Return number of components considered by the model. | |
Protected Attributes | |
| Scalar | poreInscribedRadius_ |
| Scalar | poreVolume_ |
| Scalar | surfaceTension_ |
| FluidState | fluidState_ |
| SolidState | solidState_ |
| using Dumux::PoreNetwork::TwoPNCVolumeVariables< Traits >::FluidState = typename Traits::FluidState |
| using Dumux::PoreNetwork::TwoPNCVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem |
|
inherited |
|
inherited |
|
inherited |
| using Dumux::PoreNetwork::TwoPNCVolumeVariables< Traits >::SolidState = typename Traits::SolidState |
| using Dumux::PoreNetwork::TwoPNCVolumeVariables< Traits >::SolidSystem = typename Traits::SolidSystem |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
|
inlineinherited |
| 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.
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
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.
|
inlineinherited |
|
inlineinherited |
| phaseIdx | the index of the fluid phase |
| compIdx | the index of the component |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
| phaseIdx | the index of the fluid phase |
| compIdx | the index of the component |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
| pvIdx | The index of the primary variable of interest |
|
inlinestaticconstexprinherited |
|
inlineinherited |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
|
inline |
|
inlineinherited |
Note that we assume thermodynamic equilibrium, i.e. the temperature of the rock matrix and of all fluid phases are identical.
|
inline |
| 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 |
|
inlinestaticconstexprinherited |
|
inlineinherited |
| phaseIdx | The phase index |
|
inlineinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protected |