Skip to content
Snippets Groups Projects
Commit 1a4fceec authored by Andrew Heather's avatar Andrew Heather
Browse files

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
parent 1a83824c
Branches
Tags
No related merge requests found
......@@ -21,6 +21,7 @@
#include "findRefCell.H"
#include "IOMRFZoneList.H"
#include "constants.H"
#include "gravityMeshObject.H"
#include "columnFvMesh.H"
......
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);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment