version 3.10.0
Loading...
Searching...
No Matches
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>

Inheritance diagram for Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >:

Description

template<class P, class FVC, class FVCF, class TheTraits>
class Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >
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
using FluxVariablesCache = typename Traits::FluxVariablesCache
 export the flux variable cache type
using LocalView = typename Traits::template LocalView<ThisType, cachingEnabled>
 export the type of the local view

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

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

◆ 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>

◆ Traits

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

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>
bool Dumux::CCTpfaGridFluxVariablesCache< P, FVC, FVCF, true, TheTraits >::cachingEnabled = true
staticconstexpr

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