13#ifndef DUMUX_PNM_2P_VOLUME_VARIABLES_HH
14#define DUMUX_PNM_2P_VOLUME_VARIABLES_HH
26template <
class Traits>
31 using ModelTraits =
typename Traits::ModelTraits;
32 using Scalar =
typename Traits::PrimaryVariables::value_type;
33 using FS =
typename Traits::FluidSystem;
35 static constexpr auto formulation = ModelTraits::priVarFormulation();
47 using Indices =
typename ModelTraits::Indices;
58 template<
class ElemSol,
class Problem,
class Element,
class Scv>
60 const Problem& problem,
61 const Element& element,
67 surfaceTension_ = problem.spatialParams().surfaceTension(element, scv, elemSol);
Contains the quantities which are are constant within a finite volume (the pore body) in the two-phas...
Definition: porenetwork/2p/volumevariables.hh:29
typename ModelTraits::Indices Indices
Export the indices.
Definition: porenetwork/2p/volumevariables.hh:47
typename Traits::FluidSystem FluidSystem
Export type of fluid system.
Definition: porenetwork/2p/volumevariables.hh:39
typename Traits::SolidState SolidState
Export type of solid state.
Definition: porenetwork/2p/volumevariables.hh:43
Scalar surfaceTension_
Definition: porenetwork/2p/volumevariables.hh:91
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porenetwork/2p/volumevariables.hh:59
Scalar poreVolume_
Definition: porenetwork/2p/volumevariables.hh:90
Scalar poreVolume() const
Returns the pore volume. // TODO should this be a fraction only?
Definition: porenetwork/2p/volumevariables.hh:79
Scalar poreInscribedRadius() const
Returns the pore's inscribed radius.
Definition: porenetwork/2p/volumevariables.hh:73
Scalar surfaceTension() const
Returns the surface tension.
Definition: porenetwork/2p/volumevariables.hh:85
typename Traits::SolidSystem SolidSystem
Export type of solid system.
Definition: porenetwork/2p/volumevariables.hh:45
typename Traits::FluidState FluidState
Export type of fluid state.
Definition: porenetwork/2p/volumevariables.hh:41
Scalar poreInscribedRadius_
Definition: porenetwork/2p/volumevariables.hh:89
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: porousmediumflow/volumevariables.hh:40
Contains the quantities which are are constant within a finite volume in the two-phase model.
Definition: porousmediumflow/2p/volumevariables.hh:33
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porousmediumflow/2p/volumevariables.hh:75
Scalar porosity() const
Returns the average porosity within the control volume in .
Definition: porousmediumflow/2p/volumevariables.hh:271
Definition: discretization/porenetwork/fvelementgeometry.hh:24
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Contains the quantities which are constant within a finite volume in the two-phase model.