3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits > Class Template Reference

Flux variable caches on a gridview with grid caching enabled. More...

#include <dumux/discretization/cellcentered/tpfa/gridfluxvariablescache.hh>

Description

template<class P, class FVC, class FVCF, class TheTraits>
class Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >

Flux variable caches on a gridview with grid caching enabled.

Note
The flux caches of the gridview are stored which is memory intensive but faster

Public Types

using Traits = TheTraits
 the flux variables cache traits More...
 
using FluxVariablesCache = typename Traits::FluxVariablesCache
 export the flux variable cache type More...
 
using LocalView = typename Traits::template LocalView< ThisType, cachingEnabled >
 export the type of the local view More...
 

Public Member Functions

 CCTpfaGridFluxVariablesCache (const Problem &problem)
 
template<class GridGeometry , class GridVolumeVariables , class SolutionVector >
void update (const GridGeometry &gridGeometry, const GridVolumeVariables &gridVolVars, const SolutionVector &sol, bool forceUpdate=false)
 
template<class FVElementGeometry , class ElementVolumeVariables >
void updateElement (const typename FVElementGeometry::GridGeometry::GridView::template Codim< 0 >::Entity &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars)
 
template<class SubControlVolumeFace >
const FluxVariablesCacheoperator[] (const SubControlVolumeFace &scvf) const
 
template<class SubControlVolumeFace >
FluxVariablesCacheoperator[] (const SubControlVolumeFace &scvf)
 
const Problem & problem () const
 

Static Public Attributes

static constexpr bool cachingEnabled = true
 make it possible to query if caching is enabled More...
 

Member Typedef Documentation

◆ FluxVariablesCache

template<class P , class FVC , class FVCF , class TheTraits >
using Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::FluxVariablesCache = typename Traits::FluxVariablesCache

export the flux variable cache type

◆ LocalView

template<class P , class FVC , class FVCF , class TheTraits >
using Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::LocalView = typename Traits::template LocalView<ThisType, cachingEnabled>

export the type of the local view

◆ Traits

template<class P , class FVC , class FVCF , class TheTraits >
using Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::Traits = TheTraits

the flux variables cache traits

Constructor & Destructor Documentation

◆ CCTpfaGridFluxVariablesCache()

template<class P , class FVC , class FVCF , class TheTraits >
Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::CCTpfaGridFluxVariablesCache ( const Problem &  problem)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<class P , class FVC , class FVCF , class TheTraits >
template<class SubControlVolumeFace >
FluxVariablesCache & Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::operator[] ( const SubControlVolumeFace &  scvf)
inline

◆ operator[]() [2/2]

template<class P , class FVC , class FVCF , class TheTraits >
template<class SubControlVolumeFace >
const FluxVariablesCache & Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::operator[] ( const SubControlVolumeFace &  scvf) const
inline

◆ problem()

template<class P , class FVC , class FVCF , class TheTraits >
const Problem & Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::problem ( ) const
inline

◆ update()

template<class P , class FVC , class FVCF , class TheTraits >
template<class GridGeometry , class GridVolumeVariables , class SolutionVector >
void Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::update ( const GridGeometry &  gridGeometry,
const GridVolumeVariables &  gridVolVars,
const SolutionVector &  sol,
bool  forceUpdate = false 
)
inline

◆ updateElement()

template<class P , class FVC , class FVCF , class TheTraits >
template<class FVElementGeometry , class ElementVolumeVariables >
void Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::updateElement ( const typename FVElementGeometry::GridGeometry::GridView::template Codim< 0 >::Entity &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars 
)
inline

Member Data Documentation

◆ cachingEnabled

template<class P , class FVC , class FVCF , class TheTraits >
constexpr bool Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::cachingEnabled = true
staticconstexpr

make it possible to query if caching is enabled


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