mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Buoyant solvers: Add special handling for ghRef in the case g = (0 0 0)
This commit is contained in:
@ -69,11 +69,7 @@
|
||||
|
||||
#include "readGravitationalAcceleration.H"
|
||||
#include "readhRef.H"
|
||||
|
||||
Info<< "Calculating field g.h\n" << endl;
|
||||
dimensionedScalar ghRef(g & (cmptMag(g.value())/mag(g.value()))*hRef);
|
||||
volScalarField gh("gh", (g & mesh.C()) - ghRef);
|
||||
surfaceScalarField ghf("ghf", (g & mesh.Cf()) - ghRef);
|
||||
#include "gh.H"
|
||||
|
||||
|
||||
volScalarField p
|
||||
|
||||
Reference in New Issue
Block a user