Loading...
Searching...
No Matches
basicproperties.hh
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef EWOMS_BASIC_PROPERTIES_HH
#define EWOMS_BASIC_PROPERTIES_HH
#include <dune/common/parametertree.hh>
#include <opm/models/utils/basicparameters.hh>
#include <opm/models/utils/parametersystem.hpp>
#include <opm/models/utils/propertysystem.hh>
#if HAVE_DUNE_FEM
#include <dune/fem/gridpart/adaptiveleafgridpart.hh>
#endif
namespace Opm {
template<class TypeTag> class DgfVanguard;
}
namespace Opm::Properties {
// Type tag definitions:
//
// NumericModel
// |
// +-> ImplicitModel
// Create new type tags
namespace TTag {
struct NumericModel {};
struct ImplicitModel { using InheritsFrom = std::tuple<NumericModel>; };
} // end namespace TTag
// Property names which are always available:
//
// Scalar
template<class TypeTag, class MyTypeTag>
struct Scalar { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct NumEq { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct ParameterTree { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct Model { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct ModelParameterGroup { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct Vanguard { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct Grid { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct GridView { using type = UndefinedProperty; };
#if HAVE_DUNE_FEM
template<class TypeTag, class MyTypeTag>
struct GridPart { using type = UndefinedProperty; };
#endif
template<class TypeTag, class MyTypeTag>
struct GridViewLevel { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct Simulator { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag>
struct BorderListCreator { using type = UndefinedProperty; };
// Values for the properties
template<class TypeTag>
struct Scalar<TypeTag, TTag::NumericModel> { using type = double; };
template<class TypeTag>
struct ParameterTree<TypeTag, TTag::NumericModel>
{
using type = Dune::ParameterTree;
static Dune::ParameterTree& tree()
{
static Dune::ParameterTree obj_;
return obj_;
}
};
template<class TypeTag>
struct ModelParameterGroup<TypeTag, TTag::NumericModel>
{ static constexpr auto value = ""; };
#if HAVE_DUNE_FEM
template<class TypeTag>
struct GridPart<TypeTag, TTag::NumericModel>
{
using Grid = GetPropType<TypeTag, Properties::Grid>;
using type = Dune::Fem::AdaptiveLeafGridPart<Grid>;
};
template<class TypeTag>
struct GridView<TypeTag, TTag::NumericModel>
{ using type = typename GetPropType<TypeTag, Properties::GridPart>::GridViewType; };
#else
template<class TypeTag>
struct GridView<TypeTag, TTag::NumericModel>
{ using type = typename GetPropType<TypeTag, Properties::Grid>::LeafGridView; };
#endif
template<class TypeTag>
struct Vanguard<TypeTag, TTag::NumericModel>
{ using type = Opm::DgfVanguard<TypeTag>; };
} // namespace Opm::Properties
#endif
basicparameters.hh
Defines some fundamental parameters for all models.
Opm::DgfVanguard
Provides a simulator vanguard which creates a grid by parsing a Dune Grid Format (DGF) file.
Definition dgfvanguard.hh:50
Opm::Properties::TTag
The generic type tag for problems using the immiscible multi-phase model.
Definition blackoilmodel.hh:81
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Opm::GetPropType
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:233
parametersystem.hpp
This file provides the infrastructure to retrieve run-time parameters.
propertysystem.hh
The Opm property system, traits with inheritance.
Opm::Properties::BorderListCreator
The class which marks the border indices associated with the degrees of freedom on a process boundary...
Definition basicproperties.hh:125
Opm::Properties::GridViewLevel
level of the grid view
Definition basicproperties.hh:112
Opm::Properties::GridView
Definition basicproperties.hh:103
Opm::Properties::Grid
The type of the DUNE grid.
Definition basicproperties.hh:100
Opm::Properties::ModelParameterGroup
Property which defines the group that is queried for parameters by default.
Definition basicproperties.hh:92
Opm::Properties::Model
The type of the model.
Definition basicproperties.hh:88
Opm::Properties::NumEq
Number of equations in the system of PDEs.
Definition basicproperties.hh:80
Opm::Properties::ParameterTree
Property which provides a Dune::ParameterTree.
Definition basicproperties.hh:84
Opm::Properties::Scalar
Property to specify the type of scalar values.
Definition basicproperties.hh:76
Opm::Properties::Simulator
Manages the simulation time.
Definition basicproperties.hh:116
Opm::Properties::TTag::ImplicitModel
Type tag for all fully coupled models.
Definition basicproperties.hh:64
Opm::Properties::TTag::NumericModel
Type tag for all models.
Definition basicproperties.hh:61
Opm::Properties::UndefinedProperty
a tag to mark properties as undefined
Definition propertysystem.hh:38
Opm::Properties::Vanguard
Property which provides a Vanguard (manages grids).
Definition basicproperties.hh:96