Contains the quantities which are are constant within a finite volume in the one-phase, n-component model. More...
#include <dumux/porousmediumflow/1pnc/volumevariables.hh>
| Public Types | |
| using | FluidState = typename Traits::FluidState | 
| Export fluid state type. | |
| using | FluidSystem = typename Traits::FluidSystem | 
| Export fluid system type. | |
| using | Indices = typename Traits::ModelTraits::Indices | 
| Export indices. | |
| using | SolidState = typename Traits::SolidState | 
| Export type of solid state. | |
| using | SolidSystem = typename Traits::SolidSystem | 
| Export type of solid system. | |
| 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. | |
| 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 fluid configuration at the given primary variables. | |
| const SolidState & | solidState () const | 
| Returns the phase state for the control volume. | |
| Scalar | averageMolarMass (int phaseIdx=0) const | 
| Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. | |
| Scalar | density (int phaseIdx=0) const | 
| Returns density \(\mathrm{[kg/m^3]}\) the of the fluid phase. | |
| Scalar | molarDensity (int phaseIdx=0) const | 
| Returns molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase. | |
| Scalar | saturation (int phaseIdx=0) const | 
| Returns the saturation. | |
| Scalar | moleFraction (int phaseIdx, int compIdx) const | 
| Returns the mole fraction \(\mathrm{[mol/mol]}\) of a component in the phase. | |
| Scalar | massFraction (int phaseIdx, int compIdx) const | 
| Returns the mass fraction of a component in the phase. | |
| Scalar | pressure (int phaseIdx=0) const | 
| Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. | |
| Scalar | temperature () const | 
| Returns the temperature \(\mathrm{[K]}\) inside the sub-control volume. | |
| Scalar | mobility (int phaseIdx=0) const | 
| Returns the mobility \(\mathrm{[1/(Pa s)]}\). | |
| Scalar | viscosity (int phaseIdx=0) const | 
| Returns the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. | |
| Scalar | porosity () const | 
| Returns the average porosity \(\mathrm{[-]}\) 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 | molarity (int compIdx) const | 
| Returns the molarity of a component in the phase. | |
| Scalar | massFraction (int compIdx) const | 
| Returns the mass fraction of a component in the phase. | |
| const PermeabilityType & | permeability () const | 
| Returns the permeability within the control volume in \([m^2]\). | |
| 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 () | 
| Returns whether moles or masses are balanced. | |
| 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 | |
| FluidState | fluidState_ | 
| SolidState | solidState_ | 
| using Dumux::OnePNCVolumeVariables< Traits >::FluidState = typename Traits::FluidState | 
| using Dumux::OnePNCVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem | 
| using Dumux::OnePNCVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices | 
| 
 | inherited | 
| using Dumux::OnePNCVolumeVariables< Traits >::SolidState = typename Traits::SolidState | 
| using Dumux::OnePNCVolumeVariables< Traits >::SolidSystem = typename Traits::SolidSystem | 
| 
 | inline | 
| phaseIdx | The phase index | 
| 
 | 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 | 
| fluidState | A container with the current (physical) state of the fluid | 
| solidState | A container with the current (physical) state of the solid | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | 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.
| 
 | inline | 
| 
 | inline | 
| compIdx | The index of the component | 
| 
 | inline | 
| phaseIdx | The index of the fluid phase | 
| compIdx | The index of the component | 
| 
 | inline | 
The term mobility is usually not employed in the one phase context. The method is here for compatibility reasons with other models.
| 
 | inline | 
| 
 | inline | 
| compIdx | The index of the component | 
| 
 | inline | 
| phaseIdx | The index of the fluid phase | 
| compIdx | The index of the component | 
| 
 | inlinestaticconstexprinherited | 
| 
 | inlinestaticconstexprinherited | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| phaseIdx | The phase index | 
| 
 | inlineinherited | 
| pvIdx | The index of the primary variable of interest | 
| 
 | inlineinherited | 
| 
 | inline | 
This method is here for compatibility reasons with other models. The saturation is always 1.0 in a one-phasic context.
| 
 | inline | 
| 
 | inline | 
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 | 
| 
 | inlinestaticconstexpr | 
| 
 | inline | 
| 
 | protected | 
| 
 | protected |