3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
freeflow/shallowwater/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 2 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_FREEFLOW_SHALLOW_WATER_PROBLEM_HH
25#define DUMUX_FREEFLOW_SHALLOW_WATER_PROBLEM_HH
26
29#include "model.hh"
30
31namespace Dumux {
32
37template<class TypeTag>
38class ShallowWaterProblem : public FVProblem<TypeTag>
39{
42
43public:
45
53 ShallowWaterProblem(std::shared_ptr<const GridGeometry> gridGeometry,
54 std::shared_ptr<SpatialParams> spatialParams,
55 const std::string& paramGroup = "")
57 , spatialParams_(spatialParams)
58 {}
59
66 ShallowWaterProblem(std::shared_ptr<const GridGeometry> gridGeometry,
67 const std::string& paramGroup = "")
69 std::make_shared<SpatialParams>(gridGeometry),
71 {}
72
73
74
79 { return *spatialParams_; }
80
81 // \}
82
83
84private:
85 std::shared_ptr<SpatialParams> spatialParams_;
86};
87
88} // end namespace Dumux
89
90#endif
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
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition: common/fvproblem.hh:586
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:582
Shallow water problem base class.
Definition: freeflow/shallowwater/problem.hh:39
ShallowWaterProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< SpatialParams > spatialParams, const std::string &paramGroup="")
Constructor, passing the spatial parameters.
Definition: freeflow/shallowwater/problem.hh:53
GetPropType< TypeTag, Properties::SpatialParams > SpatialParams
Definition: freeflow/shallowwater/problem.hh:44
ShallowWaterProblem(std::shared_ptr< const GridGeometry > gridGeometry, const std::string &paramGroup="")
Constructor, constructing the spatial parameters.
Definition: freeflow/shallowwater/problem.hh:66
const SpatialParams & spatialParams() const
Returns the spatial parameters object.
Definition: freeflow/shallowwater/problem.hh:78
Base class for all finite volume problems.
Declares all properties used in Dumux.
Adaption of the fully implicit scheme to the tracer transport model.