version 3.10.0
Loading...
Searching...
No Matches
elementsolution.hh File Reference

The local element solution class for staggered methods.

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

Go to the source code of this file.

Namespaces

namespace  Dumux

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==DiscretizationMethods::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.