mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
The reference height is now defined in the direction of -g, whether as previously it was defined in the direction cmptMag(g). This change makes the behaviour consistent when the case is transformed. For a "typical" case with g along one of the negative axes, this should make no difference. None of the tutorials are affected. Resolves bug report https://bugs.openfoam.org/view.php?id=2980
5 lines
203 B
C
5 lines
203 B
C
Info<< "Calculating field g.h\n" << endl;
|
|
dimensionedScalar ghRef(- mag(g)*hRef);
|
|
volScalarField gh("gh", (g & mesh.C()) - ghRef);
|
|
surfaceScalarField ghf("ghf", (g & mesh.Cf()) - ghRef);
|