3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Protected Attributes | List of all members
Dumux::NonEquilibriumGridVariables< TypeTag > Class Template Reference

This class stores the velocities which are used to compute Reynolds numbers for the source terms of non-equilibrium models. More...

#include <dumux/porousmediumflow/nonequilibrium/gridvariables.hh>

Inheritance diagram for Dumux::NonEquilibriumGridVariables< TypeTag >:

Description

template<class TypeTag>
class Dumux::NonEquilibriumGridVariables< TypeTag >

This class stores the velocities which are used to compute Reynolds numbers for the source terms of non-equilibrium models.

Public Types

using GridGeometry = GetPropType< TypeTag, Properties::GridGeometry >
 export type of the finite volume grid geometry More...
 
using GridVolumeVariables = GetPropType< TypeTag, Properties::GridVolumeVariables >
 export type of the finite volume grid geometry More...
 
using VolumeVariables = typename GridVolumeVariables::VolumeVariables
 export type of the volume variables More...
 
using PrimaryVariables = typename VolumeVariables::PrimaryVariables
 export primary variable type More...
 
using Scalar = std::decay_t< decltype(std::declval< PrimaryVariables >()[0])>
 export scalar type (TODO get it directly from the volvars) More...
 
using GridFluxVariablesCache = GetPropType< TypeTag, Properties::GridFluxVariablesCache >
 export type of the finite volume grid geometry More...
 

Public Member Functions

template<class Problem >
 NonEquilibriumGridVariables (std::shared_ptr< Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry)
 Constructor. More...
 
template<class SolutionVector >
void calcVelocityAverage (const SolutionVector &curSol)
 
const Scalar volumeDarcyMagVelocity (const unsigned int phaseIdx, const unsigned int dofIdxGlobal) const
 Access to the averaged (magnitude of) velocity for each vertex. More...
 
void init (const SolutionVector &curSol)
 initialize all variables (stationary case) More...
 
void update (const SolutionVector &curSol, bool forceFluxCacheUpdate=false)
 update all variables More...
 
void updateAfterGridAdaption (const SolutionVector &curSol)
 update all variables after grid adaption More...
 
void advanceTimeStep ()
 Sets the current state as the previous for next time step. More...
 
void resetTimeStep (const SolutionVector &solution)
 resets state to the one before time integration More...
 
const GridFluxVariablesCachegridFluxVarsCache () const
 return the flux variables cache More...
 
GridFluxVariablesCachegridFluxVarsCache ()
 return the flux variables cache More...
 
const GridVolumeVariablescurGridVolVars () const
 return the current volume variables More...
 
GridVolumeVariablescurGridVolVars ()
 return the current volume variables More...
 
const GridVolumeVariablesprevGridVolVars () const
 return the volume variables of the previous time step (for instationary problems) More...
 
GridVolumeVariablesprevGridVolVars ()
 return the volume variables of the previous time step (for instationary problems) More...
 
const GridGeometrygridGeometry () const
 return the finite volume grid geometry More...
 

Protected Attributes

std::shared_ptr< const GridGeometrygridGeometry_
 pointer to the constant grid geometry More...
 

Member Typedef Documentation

◆ GridFluxVariablesCache

export type of the finite volume grid geometry

◆ GridGeometry

export type of the finite volume grid geometry

◆ GridVolumeVariables

export type of the finite volume grid geometry

◆ PrimaryVariables

using Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::PrimaryVariables = typename VolumeVariables::PrimaryVariables
inherited

export primary variable type

◆ Scalar

using Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::Scalar = std::decay_t<decltype(std::declval<PrimaryVariables>()[0])>
inherited

export scalar type (TODO get it directly from the volvars)

◆ VolumeVariables

using Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::VolumeVariables = typename GridVolumeVariables::VolumeVariables
inherited

export type of the volume variables

Constructor & Destructor Documentation

◆ NonEquilibriumGridVariables()

template<class TypeTag >
template<class Problem >
Dumux::NonEquilibriumGridVariables< TypeTag >::NonEquilibriumGridVariables ( std::shared_ptr< Problem >  problem,
std::shared_ptr< const GridGeometry gridGeometry 
)
inline

Constructor.

Member Function Documentation

◆ advanceTimeStep()

Sets the current state as the previous for next time step.

Note
this has to be called at the end of each time step

◆ calcVelocityAverage()

template<class TypeTag >
template<class SolutionVector >
void Dumux::NonEquilibriumGridVariables< TypeTag >::calcVelocityAverage ( const SolutionVector &  curSol)
inline

◆ curGridVolVars() [1/2]

return the current volume variables

◆ curGridVolVars() [2/2]

return the current volume variables

◆ gridFluxVarsCache() [1/2]

return the flux variables cache

◆ gridFluxVarsCache() [2/2]

return the flux variables cache

◆ gridGeometry()

return the finite volume grid geometry

◆ init()

void Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::init ( const SolutionVector &  curSol)
inlineinherited

initialize all variables (stationary case)

◆ prevGridVolVars() [1/2]

return the volume variables of the previous time step (for instationary problems)

◆ prevGridVolVars() [2/2]

return the volume variables of the previous time step (for instationary problems)

◆ resetTimeStep()

void Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::resetTimeStep ( const SolutionVector &  solution)
inlineinherited

resets state to the one before time integration

◆ update()

void Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::update ( const SolutionVector &  curSol,
bool  forceFluxCacheUpdate = false 
)
inlineinherited

update all variables

◆ updateAfterGridAdaption()

void Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::updateAfterGridAdaption ( const SolutionVector &  curSol)
inlineinherited

update all variables after grid adaption

◆ volumeDarcyMagVelocity()

template<class TypeTag >
const Scalar Dumux::NonEquilibriumGridVariables< TypeTag >::volumeDarcyMagVelocity ( const unsigned int  phaseIdx,
const unsigned int  dofIdxGlobal 
) const
inline

Access to the averaged (magnitude of) velocity for each vertex.

Parameters
phaseIdxThe index of the fluid phase
dofIdxGlobalThe global index of the degree of freedom

Member Data Documentation

◆ gridGeometry_

std::shared_ptr<const GridGeometry> Dumux::FVGridVariables< GetPropType< TypeTag, Properties::GridGeometry > , GetPropType< TypeTag, Properties::GridVolumeVariables > , GetPropType< TypeTag, Properties::GridFluxVariablesCache > >::gridGeometry_
protectedinherited

pointer to the constant grid geometry


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