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

Volume variables for the isothermal single-phase k-omega 2-Eq model. More...

#include <dumux/freeflow/rans/twoeq/komega/volumevariables.hh>

Inheritance diagram for Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >:
Inheritance graph

Description

template<class Traits, class NSVolumeVariables>
class Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >

Volume variables for the isothermal single-phase k-omega 2-Eq model.

Public Types

using Indices = typename Traits::ModelTraits::Indices
 export the indices type More...
 

Public Member Functions

template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void update (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
 Update all quantities for a given control volume. More...
 
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void updateRANSProperties (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
 Update all turbulent quantities for a given control volume. More...
 
template<class Problem >
Scalar calculateEddyViscosity (const Problem &problem)
 Returns the dynamic eddy viscosity \(\mathrm{[Pa s]}\). More...
 
Scalar turbulentKineticEnergy () const
 Returns the turbulent kinetic energy \( m^2/s^2 \). More...
 
Scalar dissipation () const
 Returns an effective dissipation \( m^2/s^3 \). More...
 
Scalar storedTurbulentKineticEnergy () const
 Returns the turbulent kinetic energy \( m^2/s^2 \). More...
 
Scalar storedDissipation () const
 Returns an effective dissipation \( m^2/s^3 \). More...
 
DimVector storedTurbulentKineticEnergyGradient () const
 Returns the gradient of the turbulent kinetic energy \( m^2/s^2 \). More...
 
DimVector storedDissipationGradient () const
 Returns the gradient of the effective dissipation \( m^2/s^3 \). More...
 
Scalar stressTensorScalarProduct () const
 Returns the scalar product of the stress tensor. More...
 
const Scalar alpha () const
 Returns the \( \alpha \) value. More...
 
const Scalar sigmaK () const
 Returns the \( \sigma_k \) constant. More...
 
const Scalar sigmaOmega () const
 Returns the \( \sigma_{\omega} \) constant. More...
 
const Scalar betaK () const
 Returns the \( \beta_k \) constant. More...
 
const Scalar betaOmega () const
 Returns the \( \beta_\omega \) constant. More...
 
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void updateNavierStokesVolVars (const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
 Update all quantities for a given control volume. More...
 
unsigned int elementIdx () const
 Return the element Idx of the control volume. More...
 
DimVector velocity () const
 Return the velocity vector \(\mathrm{[m/s]}\) at the control volume center. More...
 
DimVector velocityMaximum () const
 Return the maximum velocity vector \(\mathrm{[m/s]}\) of the wall segment. More...
 
DimMatrix velocityGradients () const
 Return the velocity gradients \(\mathrm{[1/s]}\) at the control volume center. More...
 
Scalar wallDistance () const
 Return the wall distance \(\mathrm{[m]}\) of the control volume. More...
 
Scalar karmanConstant () const
 Return the Karman constant. More...
 
Scalar uStar () const
 Return the wall friction velocity \(\mathrm{[m/s]}\). More...
 
Scalar yPlus () const
 Return the dimensionless wall distance \(\mathrm{[-]}\). More...
 
Scalar uPlus () const
 Return the dimensionless velocity \(\mathrm{[-]}\). More...
 
Scalar dynamicEddyViscosity () const
 Return the dynamic eddy viscosity \(\mathrm{[Pa s]}\) of the flow within the control volume. More...
 
Scalar effectiveViscosity () const
 Return the effective dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More...
 
Scalar kinematicEddyViscosity () const
 Return the kinematic eddy viscosity \(\mathrm{[m^2/s]}\) of the flow within the control volume. More...
 
Scalar kinematicViscosity () const
 Return the kinematic viscosity \(\mathrm{[m^2/s]}\) of the fluid within the control volume. More...
 
template<class Problem >
void calculateEddyDiffusivity (const Problem &problem)
 Calculates the eddy diffusivity \(\mathrm{[m^2/s]}\) based on the kinematic eddy viscosity and the turbulent Schmidt number. More...
 
template<class Problem , bool eB = enableEnergyBalance, typename std::enable_if_t< eB, int > = 0>
void calculateEddyThermalConductivity (const Problem &problem)
 Calculates the eddy thermal conductivity \(\mathrm{[W/(m*K)]}\) based on the kinematic eddy viscosity and the turbulent Prandtl number. More...
 
template<class Problem , bool eB = enableEnergyBalance, typename std::enable_if_t<!eB, int > = 0>
void calculateEddyThermalConductivity (const Problem &problem)
 Eddy thermal conductivity is zero for isothermal model. More...
 
Scalar eddyDiffusivity () const
 Returns the eddy diffusivity \(\mathrm{[m^2/s]}\). More...
 
Scalar eddyThermalConductivity () const
 Returns the eddy thermal conductivity \(\mathrm{[W/(m*K)]}\). More...
 
Scalar effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const
 Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More...
 
template<bool eB = enableEnergyBalance, typename std::enable_if_t< eB, int > = 0>
Scalar effectiveThermalConductivity () const
 Returns the effective thermal conductivity \(\mathrm{[W/(m*K)]}\) of the fluid-flow in the sub-control volume. More...
 

Protected Member Functions

Scalar setDynamicEddyViscosity_ (Scalar value)
 Sets the dynamic eddy viscosity \(\mathrm{[Pa s]}\). More...
 

Protected Attributes

Scalar betaOmega_ = 0.0
 
Scalar dissipation_ = 0.0
 
Scalar turbulentKineticEnergy_ = 0.0
 
Scalar storedDissipation_ = 0.0
 
DimVector storedDissipationGradient_ = DimVector(0.0)
 
Scalar storedTurbulentKineticEnergy_ = 0.0
 
DimVector storedTurbulentKineticEnergyGradient_ = DimVector(0.0)
 
Scalar stressTensorScalarProduct_ = 0.0
 
DimVector velocity_
 
DimVector velocityMaximum_
 
DimMatrix velocityGradients_
 
std::size_t elementIdx_
 
std::size_t wallElementIdx_
 
Scalar wallDistance_
 
Scalar karmanConstant_
 
Scalar uStar_
 
Scalar yPlus_
 
Scalar uPlus_
 
Scalar dynamicEddyViscosity_ = 0.0
 
Scalar eddyDiffusivity_ = 0.0
 
Scalar eddyThermalConductivity_ = 0.0
 

Member Typedef Documentation

◆ Indices

template<class Traits , class NSVolumeVariables >
using Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::Indices = typename Traits::ModelTraits::Indices

export the indices type

Member Function Documentation

◆ alpha()

template<class Traits , class NSVolumeVariables >
const Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::alpha ( ) const
inline

Returns the \( \alpha \) value.

◆ betaK()

template<class Traits , class NSVolumeVariables >
const Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::betaK ( ) const
inline

Returns the \( \beta_k \) constant.

◆ betaOmega()

template<class Traits , class NSVolumeVariables >
const Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::betaOmega ( ) const
inline

Returns the \( \beta_\omega \) constant.

◆ calculateEddyDiffusivity()

template<class Traits , class NSVolumeVariables >
template<class Problem >
void Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::calculateEddyDiffusivity ( const Problem &  problem)
inlineinherited

Calculates the eddy diffusivity \(\mathrm{[m^2/s]}\) based on the kinematic eddy viscosity and the turbulent Schmidt number.

◆ calculateEddyThermalConductivity() [1/2]

template<class Traits , class NSVolumeVariables >
template<class Problem , bool eB = enableEnergyBalance, typename std::enable_if_t< eB, int > = 0>
void Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::calculateEddyThermalConductivity ( const Problem &  problem)
inlineinherited

Calculates the eddy thermal conductivity \(\mathrm{[W/(m*K)]}\) based on the kinematic eddy viscosity and the turbulent Prandtl number.

◆ calculateEddyThermalConductivity() [2/2]

template<class Traits , class NSVolumeVariables >
template<class Problem , bool eB = enableEnergyBalance, typename std::enable_if_t<!eB, int > = 0>
void Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::calculateEddyThermalConductivity ( const Problem &  problem)
inlineinherited

Eddy thermal conductivity is zero for isothermal model.

◆ calculateEddyViscosity()

template<class Traits , class NSVolumeVariables >
template<class Problem >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::calculateEddyViscosity ( const Problem &  problem)
inline

Returns the dynamic eddy viscosity \(\mathrm{[Pa s]}\).

◆ dissipation()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::dissipation ( ) const
inline

Returns an effective dissipation \( m^2/s^3 \).

◆ dynamicEddyViscosity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::dynamicEddyViscosity ( ) const
inlineinherited

Return the dynamic eddy viscosity \(\mathrm{[Pa s]}\) of the flow within the control volume.

◆ eddyDiffusivity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::eddyDiffusivity ( ) const
inlineinherited

Returns the eddy diffusivity \(\mathrm{[m^2/s]}\).

◆ eddyThermalConductivity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::eddyThermalConductivity ( ) const
inlineinherited

Returns the eddy thermal conductivity \(\mathrm{[W/(m*K)]}\).

◆ effectiveDiffusionCoefficient()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::effectiveDiffusionCoefficient ( int  phaseIdx,
int  compIIdx,
int  compJIdx 
) const
inlineinherited

Returns the binary diffusion coefficients for a phase in \([m^2/s]\).

◆ effectiveThermalConductivity()

template<class Traits , class NSVolumeVariables >
template<bool eB = enableEnergyBalance, typename std::enable_if_t< eB, int > = 0>
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::effectiveThermalConductivity ( ) const
inlineinherited

Returns the effective thermal conductivity \(\mathrm{[W/(m*K)]}\) of the fluid-flow in the sub-control volume.

◆ effectiveViscosity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::effectiveViscosity ( ) const
inlineinherited

Return the effective dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume.

◆ elementIdx()

template<class Traits , class NSVolumeVariables >
unsigned int Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::elementIdx ( ) const
inlineinherited

Return the element Idx of the control volume.

◆ karmanConstant()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::karmanConstant ( ) const
inlineinherited

Return the Karman constant.

◆ kinematicEddyViscosity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::kinematicEddyViscosity ( ) const
inlineinherited

Return the kinematic eddy viscosity \(\mathrm{[m^2/s]}\) of the flow within the control volume.

◆ kinematicViscosity()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::kinematicViscosity ( ) const
inlineinherited

Return the kinematic viscosity \(\mathrm{[m^2/s]}\) of the fluid within the control volume.

◆ setDynamicEddyViscosity_()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::setDynamicEddyViscosity_ ( Scalar  value)
inlineprotectedinherited

Sets the dynamic eddy viscosity \(\mathrm{[Pa s]}\).

◆ sigmaK()

template<class Traits , class NSVolumeVariables >
const Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::sigmaK ( ) const
inline

Returns the \( \sigma_k \) constant.

◆ sigmaOmega()

template<class Traits , class NSVolumeVariables >
const Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::sigmaOmega ( ) const
inline

Returns the \( \sigma_{\omega} \) constant.

◆ storedDissipation()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedDissipation ( ) const
inline

Returns an effective dissipation \( m^2/s^3 \).

◆ storedDissipationGradient()

template<class Traits , class NSVolumeVariables >
DimVector Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedDissipationGradient ( ) const
inline

Returns the gradient of the effective dissipation \( m^2/s^3 \).

◆ storedTurbulentKineticEnergy()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedTurbulentKineticEnergy ( ) const
inline

Returns the turbulent kinetic energy \( m^2/s^2 \).

◆ storedTurbulentKineticEnergyGradient()

template<class Traits , class NSVolumeVariables >
DimVector Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedTurbulentKineticEnergyGradient ( ) const
inline

Returns the gradient of the turbulent kinetic energy \( m^2/s^2 \).

◆ stressTensorScalarProduct()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::stressTensorScalarProduct ( ) const
inline

Returns the scalar product of the stress tensor.

◆ turbulentKineticEnergy()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::turbulentKineticEnergy ( ) const
inline

Returns the turbulent kinetic energy \( m^2/s^2 \).

◆ update()

template<class Traits , class NSVolumeVariables >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::update ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
)
inline

Update all quantities for a given control volume.

Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub-control volume

◆ updateNavierStokesVolVars()

template<class Traits , class NSVolumeVariables >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::updateNavierStokesVolVars ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
)
inlineinherited

Update all quantities for a given control volume.

Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub-control volume

◆ updateRANSProperties()

template<class Traits , class NSVolumeVariables >
template<class ElementSolution , class Problem , class Element , class SubControlVolume >
void Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::updateRANSProperties ( const ElementSolution &  elemSol,
const Problem &  problem,
const Element &  element,
const SubControlVolume &  scv 
)
inline

Update all turbulent quantities for a given control volume.

Wall and roughness related quantities are stored. Eddy viscosity is set.

Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub-control volume

◆ uPlus()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::uPlus ( ) const
inlineinherited

Return the dimensionless velocity \(\mathrm{[-]}\).

◆ uStar()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::uStar ( ) const
inlineinherited

Return the wall friction velocity \(\mathrm{[m/s]}\).

◆ velocity()

template<class Traits , class NSVolumeVariables >
DimVector Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocity ( ) const
inlineinherited

Return the velocity vector \(\mathrm{[m/s]}\) at the control volume center.

◆ velocityGradients()

template<class Traits , class NSVolumeVariables >
DimMatrix Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocityGradients ( ) const
inlineinherited

Return the velocity gradients \(\mathrm{[1/s]}\) at the control volume center.

◆ velocityMaximum()

template<class Traits , class NSVolumeVariables >
DimVector Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocityMaximum ( ) const
inlineinherited

Return the maximum velocity vector \(\mathrm{[m/s]}\) of the wall segment.

◆ wallDistance()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::wallDistance ( ) const
inlineinherited

Return the wall distance \(\mathrm{[m]}\) of the control volume.

◆ yPlus()

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::yPlus ( ) const
inlineinherited

Return the dimensionless wall distance \(\mathrm{[-]}\).

Member Data Documentation

◆ betaOmega_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::betaOmega_ = 0.0
protected

◆ dissipation_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::dissipation_ = 0.0
protected

◆ dynamicEddyViscosity_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::dynamicEddyViscosity_ = 0.0
protectedinherited

◆ eddyDiffusivity_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::eddyDiffusivity_ = 0.0
protectedinherited

◆ eddyThermalConductivity_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::eddyThermalConductivity_ = 0.0
protectedinherited

◆ elementIdx_

template<class Traits , class NSVolumeVariables >
std::size_t Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::elementIdx_
protectedinherited

◆ karmanConstant_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::karmanConstant_
protectedinherited

◆ storedDissipation_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedDissipation_ = 0.0
protected

◆ storedDissipationGradient_

template<class Traits , class NSVolumeVariables >
DimVector Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedDissipationGradient_ = DimVector(0.0)
protected

◆ storedTurbulentKineticEnergy_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedTurbulentKineticEnergy_ = 0.0
protected

◆ storedTurbulentKineticEnergyGradient_

template<class Traits , class NSVolumeVariables >
DimVector Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::storedTurbulentKineticEnergyGradient_ = DimVector(0.0)
protected

◆ stressTensorScalarProduct_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::stressTensorScalarProduct_ = 0.0
protected

◆ turbulentKineticEnergy_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::KOmegaVolumeVariables< Traits, NSVolumeVariables >::turbulentKineticEnergy_ = 0.0
protected

◆ uPlus_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::uPlus_
protectedinherited

◆ uStar_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::uStar_
protectedinherited

◆ velocity_

template<class Traits , class NSVolumeVariables >
DimVector Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocity_
protectedinherited

◆ velocityGradients_

template<class Traits , class NSVolumeVariables >
DimMatrix Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocityGradients_
protectedinherited

◆ velocityMaximum_

template<class Traits , class NSVolumeVariables >
DimVector Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::velocityMaximum_
protectedinherited

◆ wallDistance_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::wallDistance_
protectedinherited

◆ wallElementIdx_

template<class Traits , class NSVolumeVariables >
std::size_t Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::wallElementIdx_
protectedinherited

◆ yPlus_

template<class Traits , class NSVolumeVariables >
Scalar Dumux::RANSVolumeVariables< Traits, NSVolumeVariables >::yPlus_
protectedinherited

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