3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
elementsolution.hh File Reference

The local element solution class for staggered methods. More...

#include <type_traits>
#include <dune/istl/bvector.hh>
#include <dumux/discretization/method.hh>

Go to the source code of this file.

Description

The local element solution class for staggered methods.

Namespaces

namespace  Dumux
 make the local view function available whenever we use the grid geometry

Typedefs

template<class PrimaryVariables>
using Dumux::StaggeredElementSolution = Dune::BlockVector<PrimaryVariables>

Functions

template<class PrimaryVariables, class CellCenterPrimaryVariables>
PrimaryVariables Dumux::makePriVarsFromCellCenterPriVars (const CellCenterPrimaryVariables &cellCenterPriVars)
 Helper function to create a PrimaryVariables object from CellCenterPrimaryVariables.
template<class FVElementGeometry, class PrimaryVariables>
auto Dumux::elementSolution (PrimaryVariables &&priVars) -> std::enable_if_t< FVElementGeometry::GridGeometry::discMethod==DiscretizationMethod::staggered, StaggeredElementSolution< PrimaryVariables > >
 Make an element solution for staggered schemes.
template<class PrimaryVariables, class CellCenterPrimaryVariables>
StaggeredElementSolution< PrimaryVariables > Dumux::makeElementSolutionFromCellCenterPrivars (const CellCenterPrimaryVariables &cellCenterPriVars)
 Helper function to create an elementSolution from cell center primary variables.