version 3.8
common/properties/model.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_MODEL_PROPERTIES_HH
13#define DUMUX_MODEL_PROPERTIES_HH
14
15#include <dune/common/fvector.hh>
16
20
21// Forward declaration
22namespace Dune { class ParameterTree; }
23
24namespace Dumux {
25namespace Properties {
26
28namespace TTag {
30}
31
33template<class TypeTag>
34struct Scalar<TypeTag, TTag::ModelProperties> { using type = double; };
35
37template<class TypeTag>
38struct PrimaryVariables<TypeTag, TTag::ModelProperties> { using type = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
40
42template<class TypeTag>
43struct ModelDefaultParameters<TypeTag, TTag::ModelProperties>
44{
45 static void defaultParams(Dune::ParameterTree& tree, const std::string& group = "") { }
46};
47
49template<class TypeTag>
50struct IOFields<TypeTag, TTag::ModelProperties> { using type = DefaultIOFields; };
51
53template<class TypeTag>
54struct BalanceEqOpts<TypeTag, TTag::ModelProperties> { using type = BalanceEquationOptions<TypeTag>; };
55
56} // namespace Properties
57} // namespace Dumux
58
59#endif
Traits class to set options used by the local residual when when evaluating the balance equations.
Definition: common/balanceequationopts.hh:27
Adds output fields to a given output module.
Definition: defaultiofields.hh:25
Traits class to set options used by the local residual when when evaluating the balance equations.
Defines all properties used in Dumux.
Adds output fields to a given output module, this is the default if a model doesn't implement this fu...
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
Definition: adapt.hh:17
Definition: common/pdesolver.hh:24
static void defaultParams(Dune::ParameterTree &tree, const std::string &group="")
Definition: common/properties/model.hh:45
Dune::FieldVector< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::ModelTraits >::numEq()> type
Definition: common/properties/model.hh:39
double type
Definition: common/properties/model.hh:34
Definition: common/properties/model.hh:29