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:
parent
1a83824c14
commit
1a4fceec20
@ -21,6 +21,7 @@
|
||||
#include "findRefCell.H"
|
||||
#include "IOMRFZoneList.H"
|
||||
#include "constants.H"
|
||||
#include "gravityMeshObject.H"
|
||||
|
||||
#include "columnFvMesh.H"
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user