3.6-git
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::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>

Description

template<class P, class FVC, class Traits>
class Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >

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

 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)
 
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 More...
 

Member Typedef Documentation

◆ FluxVariablesCache

template<class P , class FVC , class Traits >
using Dumux::CVFEGridFluxVariablesCache< P, FVC, true, Traits >::FluxVariablesCache = typename Traits::FluxVariablesCache

export the flux variable cache type

◆ LocalView

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

export the type of the local view

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

Member Data Documentation

◆ cachingEnabled

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

make it possible to query if caching is enabled


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