25#ifndef DUMUX_FV_SPATIALPARAMS_NONEQUILIBRIUM_HH
26#define DUMUX_FV_SPATIALPARAMS_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()); }
101 DUNE_THROW(Dune::InvalidStateException,
102 "The spatial parameters do not provide "
103 "a factorEnergyTransferAtPos() method.");
112 template<
class ElementSolution>
114 const SubControlVolume &scv,
115 const ElementSolution &elemSol)
const
116 {
return this->
asImp_().factorMassTransferAtPos(scv.dofPosition()); }
126 DUNE_THROW(Dune::InvalidStateException,
127 "The spatial parameters do not provide "
128 "a factorMassTransferAtPos() method.");
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
Definition: fv.hh:57
The base class for spatial parameters of one-phase problems using a fully implicit discretization met...
Definition: fv1p.hh:77
Implementation & asImp_()
Definition: fv1p.hh:339
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Definition of the spatial parameters for non-equilibrium.
Definition: fvnonequilibrium.hh:39
const Scalar factorEnergyTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the energy transfer.
Definition: fvnonequilibrium.hh:89
const Scalar characteristicLengthAtPos(const GlobalPosition &globalPos) const
Return the characteristic length for the mass transfer.
Definition: fvnonequilibrium.hh:75
FVNonEquilibriumSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: fvnonequilibrium.hh:53
const Scalar characteristicLength(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the characteristic length for the mass transfer.
Definition: fvnonequilibrium.hh:64
const Scalar factorMassTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the mass transfer.
Definition: fvnonequilibrium.hh:113
Scalar AwsSurfaceParams
Definition: fvnonequilibrium.hh:50
Scalar AwnSurfaceParams
export the types used for interfacial area calculations
Definition: fvnonequilibrium.hh:49
const Scalar factorMassTransferAtPos(const GlobalPosition &globalPos) const
Return the pre-factor the the mass transfer.
Definition: fvnonequilibrium.hh:124
const Scalar factorEnergyTransferAtPos(const GlobalPosition &globalPos) const
Return the pre factor the the energy transfer.
Definition: fvnonequilibrium.hh:99
Scalar AnsSurfaceParams
Definition: fvnonequilibrium.hh:51