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);
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
const surfaceScalarField & ghf
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
const dimensionedVector & g
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & gh
messageStream Info
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField