3.5-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::CCMpfaGridFluxVariablesCache< TheTraits, true > Class Template Reference

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

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

Description

template<class TheTraits>
class Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >

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
 export the Traits More...
 
using PrimaryInteractionVolume = typename Traits::PrimaryInteractionVolume
 export the interaction volume types More...
 
using SecondaryInteractionVolume = typename Traits::SecondaryInteractionVolume
 
using PrimaryIvDataHandle = typename Traits::PrimaryIvDataHandle
 export the data handle types used More...
 
using SecondaryIvDataHandle = typename Traits::SecondaryIvDataHandle
 
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

 CCMpfaGridFluxVariablesCache (const Problem &problem)
 The constructor. More...
 
template<class GridGeometry , class GridVolumeVariables , class SolutionVector >
void update (const GridGeometry &gridGeometry, const GridVolumeVariables &gridVolVars, const SolutionVector &sol, bool forceUpdate=false)
 When global caching is enabled, precompute transmissibilities for all scv faces. More...
 
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
 access operators in the case of caching More...
 
template<class SubControlVolumeFace >
FluxVariablesCacheoperator[] (const SubControlVolumeFace &scvf)
 access operators in the case of caching More...
 
template<class SubControlVolumeFace >
const PrimaryInteractionVolumeprimaryInteractionVolume (const SubControlVolumeFace &scvf) const
 access to the interaction volume an scvf is embedded in More...
 
template<class SubControlVolumeFace >
const PrimaryIvDataHandleprimaryDataHandle (const SubControlVolumeFace &scvf) const
 access to the data handle of an interaction volume an scvf is embedded in More...
 
template<class SubControlVolumeFace >
const SecondaryInteractionVolumesecondaryInteractionVolume (const SubControlVolumeFace &scvf) const
 access to the interaction volume an scvf is embedded in More...
 
template<class SubControlVolumeFace >
const SecondaryIvDataHandlesecondaryDataHandle (const SubControlVolumeFace &scvf) const
 access to the data handle of an interaction volume an scvf is embedded in More...
 
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 TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::FluxVariablesCache = typename Traits::FluxVariablesCache

export the flux variable cache type

◆ LocalView

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::LocalView = typename Traits::template LocalView<ThisType, cachingEnabled>

export the type of the local view

◆ PrimaryInteractionVolume

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::PrimaryInteractionVolume = typename Traits::PrimaryInteractionVolume

export the interaction volume types

◆ PrimaryIvDataHandle

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::PrimaryIvDataHandle = typename Traits::PrimaryIvDataHandle

export the data handle types used

◆ SecondaryInteractionVolume

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::SecondaryInteractionVolume = typename Traits::SecondaryInteractionVolume

◆ SecondaryIvDataHandle

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::SecondaryIvDataHandle = typename Traits::SecondaryIvDataHandle

◆ Traits

template<class TheTraits >
using Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::Traits = TheTraits

export the Traits

Constructor & Destructor Documentation

◆ CCMpfaGridFluxVariablesCache()

template<class TheTraits >
Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::CCMpfaGridFluxVariablesCache ( const Problem &  problem)
inline

The constructor.

Member Function Documentation

◆ operator[]() [1/2]

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

access operators in the case of caching

◆ operator[]() [2/2]

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

access operators in the case of caching

◆ primaryDataHandle()

template<class TheTraits >
template<class SubControlVolumeFace >
const PrimaryIvDataHandle & Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::primaryDataHandle ( const SubControlVolumeFace &  scvf) const
inline

access to the data handle of an interaction volume an scvf is embedded in

◆ primaryInteractionVolume()

template<class TheTraits >
template<class SubControlVolumeFace >
const PrimaryInteractionVolume & Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::primaryInteractionVolume ( const SubControlVolumeFace &  scvf) const
inline

access to the interaction volume an scvf is embedded in

◆ problem()

template<class TheTraits >
const Problem & Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::problem ( ) const
inline

◆ secondaryDataHandle()

template<class TheTraits >
template<class SubControlVolumeFace >
const SecondaryIvDataHandle & Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::secondaryDataHandle ( const SubControlVolumeFace &  scvf) const
inline

access to the data handle of an interaction volume an scvf is embedded in

◆ secondaryInteractionVolume()

template<class TheTraits >
template<class SubControlVolumeFace >
const SecondaryInteractionVolume & Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::secondaryInteractionVolume ( const SubControlVolumeFace &  scvf) const
inline

access to the interaction volume an scvf is embedded in

◆ update()

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

When global caching is enabled, precompute transmissibilities for all scv faces.

◆ updateElement()

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

Member Data Documentation

◆ cachingEnabled

template<class TheTraits >
constexpr bool Dumux::CCMpfaGridFluxVariablesCache< TheTraits, true >::cachingEnabled = true
staticconstexpr

make it possible to query if caching is enabled


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