gh.H
Go to the documentation of this file.
1  Info<< "Calculating field g.h\n" << endl;
3  (
4  mag(g.value()) > SMALL
5  ? g & (cmptMag(g.value())/mag(g.value()))*hRef
6  : dimensionedScalar("ghRef", g.dimensions()*dimLength, 0)
7  );
8  volScalarField gh("gh", (g & mesh.C()) - ghRef);
9  surfaceScalarField ghf("ghf", (g & mesh.Cf()) - ghRef);
dimensioned< scalar > mag(const dimensioned< Type > &)
messageStream Info
dynamicFvMesh & mesh
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedVector & g
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const surfaceScalarField & ghf
const volScalarField & gh