version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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-FileCopyrightText: 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
21
22// Forward declaration
23namespace Dune { class ParameterTree; }
24
25namespace Dumux {
26namespace Properties {
27
29namespace TTag {
31}
32
34template<class TypeTag>
35struct Scalar<TypeTag, TTag::ModelProperties> { using type = double; };
36
38template<class TypeTag>
39struct PrimaryVariables<TypeTag, TTag::ModelProperties> { using type = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
41
43template<class TypeTag>
44struct IOFields<TypeTag, TTag::ModelProperties> { using type = DefaultIOFields; };
45
47template<class TypeTag>
48struct BalanceEqOpts<TypeTag, TTag::ModelProperties> { using type = BalanceEquationOptions<TypeTag>; };
49
50template<class TypeTag>
52{
53 struct PropertyBaseLocalResidual {
54 [[deprecated("BaseLocalResidual property is deprecated. Will be removed after release 3.10. Use DiscretizationDefaultLocalOperator.")]]
55 PropertyBaseLocalResidual() = default;
56 int dummy = 0;
57 };
59public:
60 using ParentType::ParentType;
61private:
62 PropertyBaseLocalResidual deprecated_;
63};
64
66template<class TypeTag>
67struct [[deprecated("BaseLocalResidual property is deprecated. Will be removed after release 3.10. Use DiscretizationDefaultLocalOperator.")]]
68BaseLocalResidual<TypeTag, TTag::ModelProperties>
69{
70 using type [[deprecated("BaseLocalResidual property is deprecated. Will be removed after release 3.10. Use DiscretizationDefaultLocalOperator.")]]
72};
73
74} // namespace Properties
75} // namespace Dumux
76
77#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
Definition: common/properties/model.hh:52
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...
The default local operator than can be specialized for each discretization scheme.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
Definition: adapt.hh:17
typename Detail::DiscretizationDefaultLocalOperator< TypeTag >::type DiscretizationDefaultLocalOperator
Definition: defaultlocaloperator.hh:27
Definition: common/pdesolver.hh:24
Dune::FieldVector< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::ModelTraits >::numEq()> type
Definition: common/properties/model.hh:40
double type
Definition: common/properties/model.hh:35
Definition: common/properties/model.hh:30