CourantNo.H File Reference

Calculates and outputs the maximum Courant Number. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const scalar CoNum
 
const scalar meanCoNum
 
const scalar waveCoNum
 

Detailed Description

Calculates and outputs the maximum Courant Number.

Original source file CourantNo.H

Definition in file CourantNo.H.

Variable Documentation

◆ CoNum

const scalar CoNum
Initial value:
=
0.5*gMax(sumPhi/mesh.V().primitiveField())*runTime.deltaTValue()
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Type gMax(const FieldField< Field, Type > &f)

Definition at line 36 of file CourantNo.H.

◆ meanCoNum

const scalar meanCoNum
Initial value:
=
0.5
*(gSum(sumPhi)/gSum(mesh.V().primitiveField()))
*runTime.deltaTValue()
Type gSum(const FieldField< Field, Type > &f)

Definition at line 39 of file CourantNo.H.

◆ waveCoNum

const scalar waveCoNum
Initial value:
= 0.25*gMax
(
(
)().primitiveField()/mesh.V().primitiveField()
)*sqrt(magg).value()*runTime.deltaTValue()
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
const dimensionedScalar h
Planck constant.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolInternalField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)

Definition at line 45 of file CourantNo.H.