3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/problem.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
25#define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
26
29
30namespace Dumux {
31
38template<class TypeTag>
40{
42
45 using Element = typename GridGeometry::GridView::template Codim<0>::Entity;
46 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
47
48public:
49
51 using ParentType::ParentType;
52
56 // \{
57
69 [[deprecated("temperature should now be defined in the spatial params with temperature(globalPos)")]]
70 Scalar temperatureAtPos(const GlobalPosition &globalPos, int deprecationHelper = 0) const
71 { return this->asImp_().temperature(); }
72
78 [[deprecated("temperature should now be defined in the spatial params with temperature(globalPos)")]]
79 Scalar temperature(int deprecationHelper = 0) const
80 {
81 DUNE_THROW(Dune::NotImplemented, "temperature() method not implemented by the user problem");
82 }
83
84 // \}
85};
86
87} // end namespace Dumux
88
89#endif
Base class for all finite volume problems that are parameterized.
Definition: adapt.hh:29
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 finite-volume problems using spatial parameters.
Definition: fvproblemwithspatialparams.hh:41
Base class for all fully implicit porous media problems.
Definition: porousmediumflow/problem.hh:40
Scalar temperatureAtPos(const GlobalPosition &globalPos, int deprecationHelper=0) const
Returns the temperature at a given global position.
Definition: porousmediumflow/problem.hh:70
Scalar temperature(int deprecationHelper=0) const
Returns the temperature for an isothermal problem.
Definition: porousmediumflow/problem.hh:79
Declares all properties used in Dumux.