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< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:487
const surfaceScalarField & ghf
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
dynamicFvMesh & mesh
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
const uniformDimensionedVectorField & 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
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField