25#ifndef DUMUX_SEQUENTIAL_FV_SPATIAL_PARAMS_HH
26#define DUMUX_SEQUENTIAL_FV_SPATIAL_PARAMS_HH
33{
template<
class TypeTag,
class MyTypeTag>
41template<
class TypeTag>
51 dimWorld = GridView::dimensionworld
54 using Element =
typename GridView::template Codim<0>::Entity;
55 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
65 template<
class ElementSolution,
class SubControlVolume>
66 [[deprecated(
"Use the new style material laws. Old material laws and this interface will no longer be supported after release 3.3")]]
68 const SubControlVolume& scv,
69 const ElementSolution& elemSol)
const
71 return this->asImp_().materialLawParams(element);
82 return asImp_().materialLawParamsAtPos(element.geometry().center());
93 DUNE_THROW(Dune::InvalidStateException,
94 "The spatial parameters do not provide "
95 "a materialLawParamsAtPos() method.");
99 Implementation &asImp_()
101 return *
static_cast<Implementation*
> (
this);
104 const Implementation &asImp_()
const
106 return *
static_cast<const Implementation*
> (
this);
The base class for spatial parameters of problems using the fv method.
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
a tag to mark properties as undefined
Definition: propertysystem.hh:36
Definition: sequentialfv.hh:34
The base class for spatial parameters of a multi-phase problem using the fv method.
Definition: sequentialfv.hh:43
const auto & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: sequentialfv.hh:91
const auto & materialLawParams(const Element &element) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: sequentialfv.hh:80
SequentialFVSpatialParams(const Problem &problem)
Definition: sequentialfv.hh:58
decltype(auto) materialLawParamsDeprecated(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Definition: sequentialfv.hh:67
The base class for spatial parameters of problems using the fv method.
Definition: sequentialfv1p.hh:42
Declares all properties used in Dumux.