ENH: Updated general construction of gravity field for applications. See #1094

Note that the field is now registered on time as opposed to the mesh
This commit is contained in:
Andrew Heather 2018-11-14 21:06:09 +00:00
parent 1a83824c14
commit 1a4fceec20
2 changed files with 3 additions and 12 deletions

View File

@ -21,6 +21,7 @@
#include "findRefCell.H"
#include "IOMRFZoneList.H"
#include "constants.H"
#include "gravityMeshObject.H"
#include "columnFvMesh.H"

View File

@ -1,12 +1,2 @@
Info<< "\nReading g" << endl;
uniformDimensionedVectorField g
(
IOobject
(
"g",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
Info<< "\nReading g" << endl;
const meshObjects::gravity& g = meshObjects::gravity::New(runTime);