template<class CoarseGridGeometry, class FineGridGeometry, class Scalar, class FluidSystem, class Indices, class SolutionVector, class SpatialParamsFine>
class Dumux::TwoPVEFineLevelView< CoarseGridGeometry, FineGridGeometry, Scalar, FluidSystem, Indices, SolutionVector, SpatialParamsFine >
Provides the mapping between coarse-level columns and fine-level elements, the history of each column, and the reconstruction of the fine-level solution from the coarse-level solution.
- Template Parameters
-
| CoarseGridGeometry | the horizontal, lower-dimensional grid geometry |
| FineGridGeometry | the full-dimensional reconstruction grid geometry |
| Scalar | the scalar type |
| FluidSystem | the immiscible two-phase fluid system |
| Indices | the primary variable indices of the model |
| SolutionVector | the type of the coarse-level and the fine-level solution vectors |
| SpatialParamsFine | the fine-level spatial parameters, providing permeabilityAtElement(fineElement), porosityAtElement(fineElement), gravity(finePosition) and gridGeometry() |
|
| | TwoPVEFineLevelView (std::shared_ptr< const FineGridGeometry > gridGeometry, std::shared_ptr< const CoarseGridGeometry > gridGeometryCoarse, std::shared_ptr< const SpatialParamsFine > spatialParamsFine) |
| | Builds the mapping between the levels and checks that the grids fulfill the requirements of the model.
|
| Scalar | fineCellHeight () const |
| | Returns the height of a fine-level cell (for uniform grid).
|
| const SpatialParamsFine & | spatialParams () const |
| | Getter function for fine-level spatial parameters.
|
| std::shared_ptr< const SpatialParamsFine > | spatialParamsPtr () const |
| | Getter function for pointer to fine-level spatial parameters.
|
| const ColumnMapping & | columnMap () const |
| | Getter function for mapping between coarse and fine level.
|
| const FineGridGeometry & | gridGeometry () const |
| | Getter function for fine-level grid geometry.
|
| const CoarseGridGeometry & | gridGeometryCoarse () const |
| | Getter function for coarse-level grid geometry.
|
| const SolutionVector & | solution () const |
| | Getter function for fine-level solution vector.
|
| SolutionVector & | solution () |
| | Getter function for fine-level solution vector.
|
| const QuantityReconstructor & | quantityReconstructor () const |
| | Getter function for pointer to quantity reconstructor member.
|
| const auto & | fields () const |
| | Getter function for fine-level solution fields.
|
| template<class PrimaryVariables, class SpatialParamsCoarse> |
| ColumnState | makeColumnState (const Element &coarseElement, const PrimaryVariables &coarsePriVars, const SpatialParamsCoarse &coarseSpatialParams) const |
| | Computes and returns all quantities that define the state of a coarse-level column.
|
| template<class ProblemCoarse> |
| void | updateSol (const ProblemCoarse &coarseProblem, const SolutionVector &coarseSolution) |
| | Updates fine-level solution and solution fields given the coarse-level solution.
|
template<class CoarseGridGeometry, class FineGridGeometry, class Scalar, class FluidSystem, class Indices, class SolutionVector, class SpatialParamsFine>
template<class PrimaryVariables, class SpatialParamsCoarse>
| ColumnState Dumux::TwoPVEFineLevelView< CoarseGridGeometry, FineGridGeometry, Scalar, FluidSystem, Indices, SolutionVector, SpatialParamsFine >::makeColumnState |
( |
const Element & | coarseElement, |
|
|
const PrimaryVariables & | coarsePriVars, |
|
|
const SpatialParamsCoarse & | coarseSpatialParams ) const |
|
inline |
- Parameters
-
| coarseElement | coarse-level element |
| coarsePriVars | coarse-level primary variables |
| coarseSpatialParams | coarse-level spatial parameters |
template<class CoarseGridGeometry, class FineGridGeometry, class Scalar, class FluidSystem, class Indices, class SolutionVector, class SpatialParamsFine>
template<class ProblemCoarse>
| void Dumux::TwoPVEFineLevelView< CoarseGridGeometry, FineGridGeometry, Scalar, FluidSystem, Indices, SolutionVector, SpatialParamsFine >::updateSol |
( |
const ProblemCoarse & | coarseProblem, |
|
|
const SolutionVector & | coarseSolution ) |
|
inline |
Also updates the history of each column, on which the coarse-level volume variables depend. Cached coarse-level volume variables have to be updated afterwards.
- Parameters
-
| coarseProblem | coarse-level problem |
| coarseSolution | coarse-level solution vector |