version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_PROBLEM_HH
13#define DUMUX_FREEFLOW_SHALLOW_WATER_PROBLEM_HH
14
17#include "model.hh"
18
19namespace Dumux {
20
25template<class TypeTag>
26class ShallowWaterProblem : public FVProblem<TypeTag>
27{
30
31public:
33
41 ShallowWaterProblem(std::shared_ptr<const GridGeometry> gridGeometry,
42 std::shared_ptr<SpatialParams> spatialParams,
43 const std::string& paramGroup = "")
45 , spatialParams_(spatialParams)
46 {}
47
54 ShallowWaterProblem(std::shared_ptr<const GridGeometry> gridGeometry,
55 const std::string& paramGroup = "")
57 std::make_shared<SpatialParams>(gridGeometry),
59 {}
60
61
62
67 { return *spatialParams_; }
68
69 // \}
70
71
72private:
73 std::shared_ptr<SpatialParams> spatialParams_;
74};
75
76} // end namespace Dumux
77
78#endif
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:43
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition: common/fvproblem.hh:528
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:524
Shallow water problem base class.
Definition: freeflow/shallowwater/problem.hh:27
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:41
GetPropType< TypeTag, Properties::SpatialParams > SpatialParams
Definition: freeflow/shallowwater/problem.hh:32
ShallowWaterProblem(std::shared_ptr< const GridGeometry > gridGeometry, const std::string &paramGroup="")
Constructor, constructing the spatial parameters.
Definition: freeflow/shallowwater/problem.hh:54
const SpatialParams & spatialParams() const
Returns the spatial parameters object.
Definition: freeflow/shallowwater/problem.hh:66
Base class for all finite volume problems.
Defines all properties used in Dumux.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
Definition: adapt.hh:17
Adaption of the fully implicit scheme to the tracer transport model.