version 3.10.0
Loading...
Searching...
No Matches
Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits > Class Template Reference

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

#include <dumux/discretization/cvfe/gridfluxvariablescache.hh>

Inheritance diagram for Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >:

Description

template<class P, class FVC, class Traits>
class Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >
Note
The flux caches of the gridview are stored which is memory intensive but faster

Public Types

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

 CVFEGridFluxVariablesCache (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::Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars)
const Problem & problem () const
const FluxVariablesCachecache (std::size_t eIdx, std::size_t scvfIdx) const
FluxVariablesCachecache (std::size_t eIdx, std::size_t scvfIdx)

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 Traits>
using Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::FluxVariablesCache = typename Traits::FluxVariablesCache

◆ LocalView

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

Constructor & Destructor Documentation

◆ CVFEGridFluxVariablesCache()

template<class P, class FVC, class Traits>
Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::CVFEGridFluxVariablesCache ( const Problem & problem)
inline

Member Function Documentation

◆ cache() [1/2]

template<class P, class FVC, class Traits>
FluxVariablesCache & Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::cache ( std::size_t eIdx,
std::size_t scvfIdx )
inline

◆ cache() [2/2]

template<class P, class FVC, class Traits>
const FluxVariablesCache & Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::cache ( std::size_t eIdx,
std::size_t scvfIdx ) const
inline

◆ problem()

template<class P, class FVC, class Traits>
const Problem & Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::problem ( ) const
inline

◆ update()

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

◆ updateElement()

template<class P, class FVC, class Traits>
template<class FVElementGeometry, class ElementVolumeVariables>
void Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::updateElement ( const typename FVElementGeometry::Element & element,
const FVElementGeometry & fvGeometry,
const ElementVolumeVariables & elemVolVars )
inline

Member Data Documentation

◆ cachingEnabled

template<class P, class FVC, class Traits>
bool Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::cachingEnabled = true
staticconstexpr

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