24#ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
25#define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
37template<
class TypeTag>
45 dim = GridView::dimension,
46 dimWorld = GridView::dimensionworld
50 using Element =
typename GridView::template Codim<0>::Entity;
52 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
53 using GravityVector = Dune::FieldVector<Scalar, dimWorld>;
74 const bool enableGravity = getParamFromGroup<bool>(
paramGroup,
"Problem.EnableGravity");
106 {
return this->
asImp_().temperature(); }
117 DUNE_THROW(Dune::NotImplemented,
"temperature() method not implemented by the user problem");
126 [[deprecated(
"Use the gravity function of the spatialParams (i.e. problem.spatialParams().gravity(pos)). Will be removed after 3.1!")]]
128 {
return this->
asImp_().gravity(); }
139 [[deprecated(
"Use the gravity function of the spatialParams (i.e. problem.spatialParams().gravity(pos)). Will be removed after 3.1!")]]
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
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
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:50
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition: common/fvproblem.hh:592
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:588
Implementation & asImp_()
Returns the implementation of the problem (i.e. static polymorphism)
Definition: common/fvproblem.hh:597
Base class for all fully implicit porous media problems.
Definition: dumux/porousmediumflow/problem.hh:39
Scalar temperatureAtPos(const GlobalPosition &globalPos) const
Returns the temperature at a given global position.
Definition: dumux/porousmediumflow/problem.hh:105
GravityVector gravity_
The gravity acceleration vector.
Definition: dumux/porousmediumflow/problem.hh:159
Scalar temperature() const
Returns the temperature for an isothermal problem.
Definition: dumux/porousmediumflow/problem.hh:115
std::shared_ptr< SpatialParams > spatialParams_
Definition: dumux/porousmediumflow/problem.hh:162
const GravityVector & gravity() const
Returns the acceleration due to gravity .
Definition: dumux/porousmediumflow/problem.hh:140
SpatialParams & spatialParams()
Returns the spatial parameters object.
Definition: dumux/porousmediumflow/problem.hh:146
PorousMediumFlowProblem(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
Constructor, constructing the spatial parameters.
Definition: dumux/porousmediumflow/problem.hh:85
const GravityVector & gravityAtPos(const GlobalPosition &pos) const
Returns the acceleration due to gravity .
Definition: dumux/porousmediumflow/problem.hh:127
GetPropType< TypeTag, Properties::SpatialParams > SpatialParams
Export spatial parameter type.
Definition: dumux/porousmediumflow/problem.hh:58
PorousMediumFlowProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< SpatialParams > spatialParams, const std::string ¶mGroup="")
Constructor, passing the spatial parameters.
Definition: dumux/porousmediumflow/problem.hh:67
const SpatialParams & spatialParams() const
Returns the spatial parameters object.
Definition: dumux/porousmediumflow/problem.hh:152
Base class for all finite volume problems.