25#ifndef DUMUX_POROUS_MEDIUM_FLOW_FV_SPATIAL_PARAMS_NONEQUILIBRIUM_HH
26#define DUMUX_POROUS_MEDIUM_FLOW_FV_SPATIAL_PARAMS_NONEQUILIBRIUM_HH
36template<
class Gr
idGeometry,
class Scalar,
class Implementation>
41 using GridView =
typename GridGeometry::GridView;
42 using FVElementGeometry =
typename GridGeometry::LocalView;
43 using SubControlVolume =
typename GridGeometry::SubControlVolume;
44 using Element =
typename GridView::template Codim<0>::Entity;
45 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
63 template<
class ElementSolution>
65 const SubControlVolume &scv,
66 const ElementSolution &elemSol)
const
68 {
return this->
asImp_().characteristicLengthAtPos(scv.dofPosition()); }
77 DUNE_THROW(Dune::InvalidStateException,
78 "The spatial parameters do not provide "
79 "a characteristicLengthAtPos() method.");
88 template<
class ElementSolution>
90 const SubControlVolume& scv,
91 const ElementSolution& elemSol)
const
92 {
return this->
asImp_().factorEnergyTransferAtPos(scv.dofPosition()); }
100 DUNE_THROW(Dune::InvalidStateException,
101 "The spatial parameters do not provide "
102 "a factorEnergyTransferAtPos() method.");
111 template<
class ElementSolution>
113 const SubControlVolume& scv,
114 const ElementSolution& elemSol)
const
115 {
return this->
asImp_().factorMassTransferAtPos(scv.dofPosition()); }
124 DUNE_THROW(Dune::InvalidStateException,
125 "The spatial parameters do not provide "
126 "a factorMassTransferAtPos() method.");
The base class for spatial parameters in multi-phase porous-medium-flow problems.
The base class for spatial parameters used with finite-volume schemes.
Definition: common/fvspatialparams.hh:46
Implementation & asImp_()
Returns the implementation of the spatial parameters (static polymorphism)
Definition: common/fvspatialparams.hh:147
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvspatialparams.hh:142
The base class for spatial parameters of multi-phase problems.
Definition: fvspatialparamsmp.hh:61
Definition of the spatial parameters for non-equilibrium.
Definition: fvspatialparamsnonequilibrium.hh:39
Scalar AnsSurfaceParams
Definition: fvspatialparamsnonequilibrium.hh:51
const Scalar factorEnergyTransferAtPos(const GlobalPosition &globalPos) const
Return the pre factor the the energy transfer.
Definition: fvspatialparamsnonequilibrium.hh:98
const Scalar factorEnergyTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the energy transfer.
Definition: fvspatialparamsnonequilibrium.hh:89
FVPorousMediumFlowSpatialParamsNonEquilibrium(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: fvspatialparamsnonequilibrium.hh:53
Scalar AwnSurfaceParams
export the types used for interfacial area calculations
Definition: fvspatialparamsnonequilibrium.hh:49
const Scalar characteristicLengthAtPos(const GlobalPosition &globalPos) const
Return the characteristic length for the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:75
const Scalar factorMassTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:112
const Scalar factorMassTransferAtPos(const GlobalPosition &globalPos) const
Return the pre-factor the the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:122
Scalar AwsSurfaceParams
Definition: fvspatialparamsnonequilibrium.hh:50
const Scalar characteristicLength(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the characteristic length for the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:64