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");
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:54
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition: common/fvproblem.hh:578
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:574
Implementation & asImp_()
Returns the implementation of the problem (i.e. static polymorphism)
Definition: common/fvproblem.hh:583
Base class for all fully implicit porous media problems.
Definition: porousmediumflow/problem.hh:39
Scalar temperatureAtPos(const GlobalPosition &globalPos) const
Returns the temperature at a given global position.
Definition: porousmediumflow/problem.hh:105
GravityVector gravity_
The gravity acceleration vector.
Definition: porousmediumflow/problem.hh:136
Scalar temperature() const
Returns the temperature for an isothermal problem.
Definition: porousmediumflow/problem.hh:115
std::shared_ptr< SpatialParams > spatialParams_
Definition: porousmediumflow/problem.hh:139
SpatialParams & spatialParams()
Returns the spatial parameters object.
Definition: porousmediumflow/problem.hh:123
PorousMediumFlowProblem(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
Constructor, constructing the spatial parameters.
Definition: porousmediumflow/problem.hh:85
GetPropType< TypeTag, Properties::SpatialParams > SpatialParams
Export spatial parameter type.
Definition: 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: porousmediumflow/problem.hh:67
const SpatialParams & spatialParams() const
Returns the spatial parameters object.
Definition: porousmediumflow/problem.hh:129
Base class for all finite volume problems.