mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -21,6 +21,7 @@
|
|||||||
#include "findRefCell.H"
|
#include "findRefCell.H"
|
||||||
#include "IOMRFZoneList.H"
|
#include "IOMRFZoneList.H"
|
||||||
#include "constants.H"
|
#include "constants.H"
|
||||||
|
#include "gravityMeshObject.H"
|
||||||
|
|
||||||
#include "columnFvMesh.H"
|
#include "columnFvMesh.H"
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,2 @@
|
|||||||
Info<< "\nReading g" << endl;
|
Info<< "\nReading g" << endl;
|
||||||
uniformDimensionedVectorField g
|
const meshObjects::gravity& g = meshObjects::gravity::New(runTime);
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"g",
|
|
||||||
runTime.constant(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user