Volume variables for the single-phase, multi-component free-flow model. More...
#include <dumux/freeflow/compositional/volumevariables.hh>
Volume variables for the single-phase, multi-component free-flow model.
Public Types | |
using | FluidSystem = typename Traits::FluidSystem |
export the underlying fluid system More... | |
using | FluidState = typename Traits::FluidState |
export the fluid state type More... | |
using | Indices = typename Traits::ModelTraits::Indices |
export the indices type More... | |
Public Member Functions | |
template<class ElementSolution , class Problem , class Element , class SubControlVolume > | |
void | update (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv) |
Update all quantities for a given control volume. More... | |
Scalar | pressure (int phaseIdx=0) const |
Return the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More... | |
Scalar | density (int phaseIdx=0) const |
Return the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume. More... | |
Scalar | temperature () const |
Return temperature \(\mathrm{[K]}\) inside the sub-control volume. More... | |
Scalar | effectiveViscosity () const |
Return the effective dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More... | |
Scalar | viscosity (int phaseIdx=0) const |
Return the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More... | |
Scalar | massFraction (int phaseIdx, int compIdx) const |
Returns the mass fraction of a component in the phase \(\mathrm{[-]}\). More... | |
Scalar | massFraction (int compIdx) const |
Returns the mass fraction of a component in the phase \(\mathrm{[-]}\). More... | |
Scalar | moleFraction (int phaseIdx, int compIdx) const |
Returns the mole fraction of a component in the phase \(\mathrm{[-]}\). More... | |
Scalar | moleFraction (int compIdx) const |
Returns the mole fraction of a component in the phase \(\mathrm{[-]}\). More... | |
Scalar | molarDensity (int phaseIdx=0) const |
Returns the mass density of a given phase \(\mathrm{[kg/m^3]}\). More... | |
Scalar | molarMass (int compIdx) const |
Returns the molar mass of a given component. More... | |
Scalar | averageMolarMass (const int phaseIdx=0) const |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. More... | |
Scalar | diffusionCoefficient (int compIIdx, int compJIdx=0) const |
Returns the diffusion coefficient \(\mathrm{[m^2/s]}\). More... | |
Scalar | diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More... | |
Scalar | effectiveDiffusivity (int compIIdx, int compJIdx=0) const |
Returns the effective diffusion coefficient \(\mathrm{[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... | |
const FluidState & | fluidState () const |
Return the fluid state of the control volume. More... | |
Static Public Member Functions | |
template<class ElementSolution , class Problem , class Element , class SubControlVolume > | |
static void | completeFluidState (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv, FluidState &fluidState) |
Update the fluid state. More... | |
Protected Attributes | |
FluidState | fluidState_ |
DiffusionCoefficients | diffCoefficient_ |
using Dumux::FreeflowNCVolumeVariables< Traits >::FluidState = typename Traits::FluidState |
export the fluid state type
using Dumux::FreeflowNCVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem |
export the underlying fluid system
using Dumux::FreeflowNCVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices |
export the indices type
|
inline |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase.
phaseIdx | The phase index |
|
inlinestatic |
Update the fluid state.
|
inline |
Return the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume.
|
inline |
Returns the diffusion coefficient \(\mathrm{[m^2/s]}\).
compIIdx | the index of the component which diffusive |
compJIdx | the index of the component with respect to which compIIdx diffuses |
|
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]\).
|
inline |
Returns the effective diffusion coefficient \(\mathrm{[m^2/s]}\).
compIIdx | the index of the component which diffusive |
compJIdx | the index of the component with respect to which compIIdx diffuses |
|
inline |
Return the effective dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume.
|
inline |
Return the fluid state of the control volume.
|
inline |
Returns the mass fraction of a component in the phase \(\mathrm{[-]}\).
compIdx | the index of the component |
|
inline |
Returns the mass fraction of a component in the phase \(\mathrm{[-]}\).
phaseIdx | the index of the phase |
compIdx | the index of the component |
|
inline |
Returns the mass density of a given phase \(\mathrm{[kg/m^3]}\).
|
inline |
Returns the molar mass of a given component.
compIdx | the index of the component |
|
inline |
Returns the mole fraction of a component in the phase \(\mathrm{[-]}\).
compIdx | the index of the component |
|
inline |
Returns the mole fraction of a component in the phase \(\mathrm{[-]}\).
phaseIdx | the index of the phase |
compIdx | the index of the component |
|
inline |
Return the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume.
|
inline |
Return temperature \(\mathrm{[K]}\) inside the sub-control volume.
Note that we assume thermodynamic equilibrium, i.e. the temperatures of the rock matrix and of all fluid phases are identical.
|
inline |
Update 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 |
|
inline |
Return the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume.
|
protected |
|
protected |