24#ifndef DUMUX_GEOMECHANICS_FV_PROBLEM_HH
25#define DUMUX_GEOMECHANICS_FV_PROBLEM_HH
41template<
class TypeTag>
48 using FVElementGeometry =
typename GridGeometry::LocalView;
49 using SubControlVolume =
typename GridGeometry::SubControlVolume;
51 using Element =
typename GridView::template Codim<0>::Entity;
52 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
58 using ParentType::ParentType;
70 template<
int n = numFP, std::enable_if_t<(n > 0),
int> = 0 >
71 [[deprecated(
"effectiveFluidDensity() is now defined in the spatial params. This interface will be removed after release 3.5.")]]
73 const SubControlVolume& scv,
74 int deprecationHelper = 0)
const
76 static_assert(
decltype(
isValid(Detail::hasEffFluidDensityAtPos<GlobalPosition>())(this->
asImp_()))::value,
" \n\n"
77 " Your problem class has to either implement\n\n"
78 " Scalar effectiveFluidDensityAtPos(const GlobalPosition& globalPos) const\n\n"
79 " or overload this function\n\n"
80 " template<class ElementSolution>\n"
81 " Scalar effectiveFluidDensity(const Element& element,\n\
82 const SubControlVolume& scv) const\n\n");
84 return this->
asImp_().effectiveFluidDensityAtPos(scv.center());
103 template<
class ElemVolVars,
class FluxVarsCache,
int n = numFP, std::enable_if_t<(n > 0),
int> = 0 >
104 [[deprecated(
"effectivePorePressure() is now defined in the spatial params. This interface will be removed after release 3.5.")]]
106 const FVElementGeometry& fvGeometry,
107 const ElemVolVars& elemVolVars,
108 const FluxVarsCache& fluxVarsCache,
109 int deprecationHelper = 0)
const
111 static_assert(
decltype(
isValid(Detail::hasEffPorePressureAtPos<GlobalPosition>())(this->
asImp_()))::value,
" \n\n"
112 " Your problem class has to either implement\n\n"
113 " Scalar effectivePorePressureAtPos(const GlobalPosition& globalPos) const\n\n"
114 " or overload this function\n\n"
115 " template<class ElementSolution>\n"
116 " Scalar effectivePorePressure(const Element& element,\n"
117 " const FVElementGeometry& fvGeometry,\n"
118 " const ElemVolVars& elemVolVars,\n"
119 " const FluxVarsCache& fluxVarsCache) const\n\n");
121 return this->
asImp_().effectivePorePressureAtPos(element.geometry().center());
A helper function for class member function introspection.
constexpr auto isValid(const Expression &t)
A function that creates a test functor to do class member introspection at compile time.
Definition: isvalid.hh:93
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:55
Implementation & asImp_()
Returns the implementation of the problem (i.e. static polymorphism)
Definition: common/fvproblem.hh:591
Base class for all geomechanical problems.
Definition: geomechanics/fvproblem.hh:43
Scalar effectivePorePressure(const Element &element, const FVElementGeometry &fvGeometry, const ElemVolVars &elemVolVars, const FluxVarsCache &fluxVarsCache, int deprecationHelper=0) const
Returns the effective pore pressure.
Definition: geomechanics/fvproblem.hh:105
Scalar effectiveFluidDensity(const Element &element, const SubControlVolume &scv, int deprecationHelper=0) const
Returns the effective fluid density within an scv.
Definition: geomechanics/fvproblem.hh:72
Base class for all fully implicit porous media problems.
Definition: porousmediumflow/problem.hh:40
The base class for spatial parameters of poro-elastic geomechanical problems.
Base class for all porous media problems.