27#ifndef DUMUX_DISCRETIZATION_STAGGERD_HH
28#define DUMUX_DISCRETIZATION_STAGGERD_HH
48#include <dune/istl/multitypeblockvector.hh>
49#include <dune/istl/multitypeblockmatrix.hh>
55class CCElementBoundaryTypes;
66template<
class TypeTag>
72 static constexpr auto enableCache = getPropValue<TypeTag, Properties::EnableGridFaceVariablesCache>();
78template<
class TypeTag>
82template<
class TypeTag>
89 static constexpr auto enableCache = getPropValue<TypeTag, Properties::EnableGridFluxVariablesCache>();
90 static constexpr auto upwindSchemeOrder = getPropValue<TypeTag, Properties::UpwindSchemeOrder>();
96template<
class TypeTag>
106template<
class TypeTag>
119template<
class TypeTag>
123template<
class TypeTag>
127template<
class TypeTag>
130 using type = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
131 getPropValue<TypeTag, Properties::NumEqCellCenter>()>;
135template<
class TypeTag>
138 using type = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
139 getPropValue<TypeTag, Properties::NumEqFace>()>;
142DUNE_NO_DEPRECATED_BEGIN
144template<
class TypeTag>
146DUNE_NO_DEPRECATED_END
151template<
class TypeTag>
153{
using type = Dune::BlockVector<GetPropType<TypeTag, Properties::CellCenterPrimaryVariables>>; };
156template<
class TypeTag>
158{
using type = Dune::BlockVector<GetPropType<TypeTag, Properties::FacePrimaryVariables>>; };
161template<
class TypeTag>
168 using type = Dune::MultiTypeBlockVector<FaceSolutionVector, CellCenterSolutionVector>;
172template<
class TypeTag>
178 static constexpr auto numEqCellCenter = getPropValue<TypeTag, Properties::NumEqCellCenter>();
179 static constexpr auto numEqFace = getPropValue<TypeTag, Properties::NumEqFace>();
197 using RowFace =
typename Dune::MultiTypeBlockVector<MatrixBlockFaceToFace, MatrixBlockFaceToCC>;
198 using RowCellCenter =
typename Dune::MultiTypeBlockVector<MatrixBlockCCToFace, MatrixBlockCCToCC>;
208template<
class Problem>
212 using GG = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
213 using Element =
typename GG::GridView::template Codim<0>::Entity;
214 using SubControlVolumeFace =
typename GG::SubControlVolumeFace;
218 using BoundaryTypes = std::decay_t<decltype(std::declval<Problem>().boundaryTypes(std::declval<Element>(), std::declval<SubControlVolumeFace>()))>;
Calculates the element-wise residual for the staggered FV scheme.
The available discretization methods in Dumux.
Declares properties required for finite-volume models models.
Classes related to flux variables caching.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
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:149
Calculates the element-wise residual for the staggered FV scheme.
Definition: staggeredlocalresidual.hh:41
Class to specify the type of a boundary.
Definition: common/boundarytypes.hh:38
Definition: common/pdesolver.hh:37
The type of the base class of the local residual (specific to a discretization scheme)
Definition: common/properties.hh:65
Type of the global jacobian matrix.
Definition: common/properties.hh:67
Vector containing all primary variable vector of the grid.
Definition: common/properties.hh:69
Stores the boundary types of a single degree of freedom.
Definition: common/properties.hh:72
Stores the boundary types on an element.
Definition: common/properties.hh:98
The global vector of flux variable containers.
Definition: common/properties.hh:118
The grid variables object managing variable data on the grid (volvars/fluxvars cache)
Definition: common/properties.hh:122
The solution vector type for cell-centered dofs.
Definition: common/properties.hh:213
The solution vector type for face dofs.
Definition: common/properties.hh:215
Global vector containing face-related data.
Definition: common/properties.hh:217
The primary variables container type for cell-centered dofs.
Definition: common/properties.hh:219
The primary variables container type for face dofs.
Definition: common/properties.hh:221
A vector containing the solution for a face (similar to ElementSolution)
Definition: common/properties.hh:233
Switch on/off caching of face variables.
Definition: common/properties.hh:235
Definition: common/typetraits/problem.hh:35
Boundary types gathered on an element.
Definition: cellcentered/elementboundarytypes.hh:38
Definition: staggered.hh:62
std::tuple< FiniteVolumeModel > InheritsFrom
Definition: staggered.hh:62
Dune::FieldVector< GetPropType< TypeTag, Properties::Scalar >, getPropValue< TypeTag, Properties::NumEqCellCenter >()> type
Definition: staggered.hh:131
Dune::FieldVector< GetPropType< TypeTag, Properties::Scalar >, getPropValue< TypeTag, Properties::NumEqFace >()> type
Definition: staggered.hh:139
Dune::BlockVector< GetPropType< TypeTag, Properties::CellCenterPrimaryVariables > > type
Definition: staggered.hh:153
Dune::BlockVector< GetPropType< TypeTag, Properties::FacePrimaryVariables > > type
Definition: staggered.hh:158
Dune::MultiTypeBlockVector< FaceSolutionVector, CellCenterSolutionVector > type
Definition: staggered.hh:168
typename Dune::BCRSMatrix< MatrixLittleBlockCCToFace > MatrixBlockCCToFace
Definition: staggered.hh:191
typename Dune::MultiTypeBlockVector< MatrixBlockFaceToFace, MatrixBlockFaceToCC > RowFace
Definition: staggered.hh:197
typename Dune::BCRSMatrix< MatrixLittleBlockFaceToFace > MatrixBlockFaceToFace
Definition: staggered.hh:193
typename Dune::FieldMatrix< Scalar, numEqCellCenter, numEqFace > MatrixLittleBlockCCToFace
Definition: staggered.hh:184
typename Dune::MultiTypeBlockMatrix< RowFace, RowCellCenter > type
Definition: staggered.hh:201
typename Dune::BCRSMatrix< MatrixLittleBlockCCToCC > MatrixBlockCCToCC
Definition: staggered.hh:190
typename Dune::FieldMatrix< Scalar, numEqFace, numEqCellCenter > MatrixLittleBlockFaceToCC
Definition: staggered.hh:187
typename Dune::FieldMatrix< Scalar, numEqFace, numEqFace > MatrixLittleBlockFaceToFace
Definition: staggered.hh:186
typename Dune::MultiTypeBlockVector< MatrixBlockCCToFace, MatrixBlockCCToCC > RowCellCenter
Definition: staggered.hh:198
typename Dune::BCRSMatrix< MatrixLittleBlockFaceToCC > MatrixBlockFaceToCC
Definition: staggered.hh:194
typename Dune::FieldMatrix< Scalar, numEqCellCenter, numEqCellCenter > MatrixLittleBlockCCToCC
Definition: staggered.hh:183
GG GridGeometry
Definition: staggered.hh:216
std::decay_t< decltype(std::declval< Problem >().boundaryTypes(std::declval< Element >(), std::declval< SubControlVolumeFace >()))> BoundaryTypes
Definition: staggered.hh:218
The global face variables class for staggered models.
Definition: facesolution.hh:40
Face variables cache class for staggered models.
Definition: gridfacevariables.hh:59
Flux variables cache class for staggered models.
Definition: staggered/gridfluxvariablescache.hh:63
Class storing data associated to scvs and scvfs.
Definition: discretization/staggered/gridvariables.hh:195
Declares all properties used in Dumux.
Type traits for problem classes.
Boundary types gathered on an element.
Sub control volumes for cell-centered discretization schemes.