3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
Dumux::EvalCflFluxDefault< TypeTag > Class Template Reference

Default implementation of cfl-fluxes to evaluate a CFL-Condition. More...

#include <dumux/porousmediumflow/2p/sequential/transport/cellcentered/evalcflfluxdefault.hh>

Inheritance diagram for Dumux::EvalCflFluxDefault< TypeTag >:
Inheritance graph

Description

template<class TypeTag>
class Dumux::EvalCflFluxDefault< TypeTag >

Default implementation of cfl-fluxes to evaluate a CFL-Condition.

Compares the maximum of inflow and outflow to the element volume weighted by relative permeability and viscosity ratios.

Template Parameters
TypeTagThe problem TypeTag

Public Member Functions

void addFlux (Scalar &lambdaW, Scalar &lambdaNw, Scalar &viscosityW, Scalar &viscosityNw, Scalar flux, const Element &element, int phaseIdx=-1)
 adds a flux to the cfl-criterion evaluation
void addFlux (Scalar &lambdaW, Scalar &lambdaNw, Scalar &viscosityW, Scalar &viscosityNw, Scalar flux, const Intersection &intersection, int phaseIdx=-1)
 adds a flux to the cfl-criterion evaluation
Scalar getCflFluxFunction (const Element &element)
 Returns the CFL flux-function.
Scalar getDt (const Element &element)
 Returns the CFL time-step.
void reset ()
 resets the accumulated CFL-fluxes to zero
 EvalCflFluxDefault (Problem &problem)
 Constructs an EvalCflFluxDefault object.
void initialize ()
 For initialization.

Constructor & Destructor Documentation

◆ EvalCflFluxDefault()

template<class TypeTag>
Dumux::EvalCflFluxDefault< TypeTag >::EvalCflFluxDefault ( Problem & problem)
inline

Constructs an EvalCflFluxDefault object.

Parameters
problemA problem type object

Member Function Documentation

◆ addFlux() [1/2]

template<class TypeTag>
void Dumux::EvalCflFluxDefault< TypeTag >::addFlux ( Scalar & lambdaW,
Scalar & lambdaNw,
Scalar & viscosityW,
Scalar & viscosityNw,
Scalar flux,
const Element & element,
int phaseIdx = -1 )
inline

adds a flux to the cfl-criterion evaluation

Parameters
lambdaWwetting phase mobility
lambdaNwnon-wetting phase mobility
viscosityWwetting phase viscosity
viscosityNwnon-wetting phase viscosity
fluxflux to add
elementelement corresponding to the flux
phaseIdxindex of the phase (wetting, non-wetting)

◆ addFlux() [2/2]

template<class TypeTag>
void Dumux::EvalCflFluxDefault< TypeTag >::addFlux ( Scalar & lambdaW,
Scalar & lambdaNw,
Scalar & viscosityW,
Scalar & viscosityNw,
Scalar flux,
const Intersection & intersection,
int phaseIdx = -1 )
inline

adds a flux to the cfl-criterion evaluation

Parameters
lambdaWwetting phase mobility
lambdaNwnon-wetting phase mobility
viscosityWwetting phase viscosity
viscosityNwnon-wetting phase viscosity
fluxflux to add
intersectionintersection corresponding to the flux
phaseIdxindex of the phase (wetting, non-wetting)

◆ getCflFluxFunction()

template<class TypeTag>
EvalCflFluxDefault< TypeTag >::Scalar Dumux::EvalCflFluxDefault< TypeTag >::getCflFluxFunction ( const Element & element)

Returns the CFL flux-function.

Parameters
elementelement on which the CFL-criterion is evaluated
Returns
fluxFunction for the calculation of the CFL time-step ( \( 1/F_i \))

◆ getDt()

template<class TypeTag>
Scalar Dumux::EvalCflFluxDefault< TypeTag >::getDt ( const Element & element)
inline

Returns the CFL time-step.

Parameters
elementelement on which the CFL-criterion is evaluated
Returns
CFL time-step

◆ initialize()

template<class TypeTag>
void Dumux::EvalCflFlux< TypeTag >::initialize ( )
inlineinherited

For initialization.

◆ reset()

template<class TypeTag>
void Dumux::EvalCflFluxDefault< TypeTag >::reset ( )
inline

resets the accumulated CFL-fluxes to zero


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