3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | List of all members
Dumux::CCElementSolution< FVElementGeometry, PV > Class Template Reference

The element solution vector. More...

#include <dumux/discretization/cellcentered/elementsolution.hh>

Description

template<class FVElementGeometry, class PV>
class Dumux::CCElementSolution< FVElementGeometry, PV >

The element solution vector.

Public Types

using PrimaryVariables = PV
 export the primary variables type More...
 

Public Member Functions

 CCElementSolution ()=default
 default constructor More...
 
template<class SolutionVector >
 CCElementSolution (const Element &element, const SolutionVector &sol, const GridGeometry &gridGeometry)
 Constructor with element, solution vector and grid geometry. More...
 
template<class ElementVolumeVariables >
 CCElementSolution (const Element &element, const ElementVolumeVariables &elemVolVars, const FVElementGeometry &fvGeometry)
 Constructor with element, element volume variables and fv element geometry. More...
 
 CCElementSolution (PrimaryVariables &&priVars)
 Constructor with a primary variable object. More...
 
 CCElementSolution (const PrimaryVariables &priVars)
 Constructor with a primary variable object. More...
 
template<class SolutionVector >
void update (const Element &element, const SolutionVector &sol, const GridGeometry &gridGeometry)
 extract the element solution from the solution vector using a mapper More...
 
constexpr std::size_t size () const
 return the size of the element solution More...
 
template<typename IndexType >
const PrimaryVariablesoperator[] (IndexType i) const
 bracket operator const access More...
 
template<typename IndexType >
PrimaryVariablesoperator[] (IndexType i)
 bracket operator access More...
 

Member Typedef Documentation

◆ PrimaryVariables

template<class FVElementGeometry , class PV >
using Dumux::CCElementSolution< FVElementGeometry, PV >::PrimaryVariables = PV

export the primary variables type

Constructor & Destructor Documentation

◆ CCElementSolution() [1/5]

template<class FVElementGeometry , class PV >
Dumux::CCElementSolution< FVElementGeometry, PV >::CCElementSolution ( )
default

default constructor

◆ CCElementSolution() [2/5]

template<class FVElementGeometry , class PV >
template<class SolutionVector >
Dumux::CCElementSolution< FVElementGeometry, PV >::CCElementSolution ( const Element &  element,
const SolutionVector &  sol,
const GridGeometry &  gridGeometry 
)
inline

Constructor with element, solution vector and grid geometry.

◆ CCElementSolution() [3/5]

template<class FVElementGeometry , class PV >
template<class ElementVolumeVariables >
Dumux::CCElementSolution< FVElementGeometry, PV >::CCElementSolution ( const Element &  element,
const ElementVolumeVariables &  elemVolVars,
const FVElementGeometry &  fvGeometry 
)
inline

Constructor with element, element volume variables and fv element geometry.

◆ CCElementSolution() [4/5]

template<class FVElementGeometry , class PV >
Dumux::CCElementSolution< FVElementGeometry, PV >::CCElementSolution ( PrimaryVariables &&  priVars)
inline

Constructor with a primary variable object.

◆ CCElementSolution() [5/5]

template<class FVElementGeometry , class PV >
Dumux::CCElementSolution< FVElementGeometry, PV >::CCElementSolution ( const PrimaryVariables priVars)
inline

Constructor with a primary variable object.

Member Function Documentation

◆ operator[]() [1/2]

template<class FVElementGeometry , class PV >
template<typename IndexType >
PrimaryVariables & Dumux::CCElementSolution< FVElementGeometry, PV >::operator[] ( IndexType  i)
inline

bracket operator access

◆ operator[]() [2/2]

template<class FVElementGeometry , class PV >
template<typename IndexType >
const PrimaryVariables & Dumux::CCElementSolution< FVElementGeometry, PV >::operator[] ( IndexType  i) const
inline

bracket operator const access

◆ size()

template<class FVElementGeometry , class PV >
constexpr std::size_t Dumux::CCElementSolution< FVElementGeometry, PV >::size ( ) const
inlineconstexpr

return the size of the element solution

◆ update()

template<class FVElementGeometry , class PV >
template<class SolutionVector >
void Dumux::CCElementSolution< FVElementGeometry, PV >::update ( const Element &  element,
const SolutionVector &  sol,
const GridGeometry &  gridGeometry 
)
inline

extract the element solution from the solution vector using a mapper


The documentation for this class was generated from the following file: