version 3.9-dev
Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits > Class Template Reference

The grid flux variables cache for the two-phase PNM hodling the invasion state of the throats. More...

#include <dumux/porenetwork/2p/gridfluxvariablescache.hh>

Description

template<class P, class FVC, class Traits>
class Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< 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 More...
 
using LocalView = typename Traits::template LocalView< ThisType, cachingEnabled >
 export the type of the local view More...
 

Public Member Functions

 PNMTwoPGridFluxVariablesCache (const Problem &problem)
 
template<class GridGeometry , class GridVolumeVariables , class SolutionVector >
void update (const GridGeometry &gridGeometry, const GridVolumeVariables &gridVolVars, const SolutionVector &sol, bool forceUpdate=true)
 
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)
 
const InvasionState & invasionState () const
 
InvasionState & invasionState ()
 

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::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits >::FluxVariablesCache = typename Traits::FluxVariablesCache

◆ LocalView

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

Constructor & Destructor Documentation

◆ PNMTwoPGridFluxVariablesCache()

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

Member Function Documentation

◆ cache() [1/2]

template<class P , class FVC , class Traits >
FluxVariablesCache & Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< 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::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits >::cache ( std::size_t  eIdx,
std::size_t  scvfIdx 
) const
inline

◆ invasionState() [1/2]

template<class P , class FVC , class Traits >
InvasionState & Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits >::invasionState ( )
inline

◆ invasionState() [2/2]

template<class P , class FVC , class Traits >
const InvasionState & Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits >::invasionState ( ) const
inline

◆ problem()

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

◆ update()

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

◆ updateElement()

template<class P , class FVC , class Traits >
template<class FVElementGeometry , class ElementVolumeVariables >
void Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< 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 >
constexpr bool Dumux::PoreNetwork::PNMTwoPGridFluxVariablesCache< P, FVC, true, Traits >::cachingEnabled = true
staticconstexpr

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