ENH: Updated construction/retrieval of gravity field. See #1094

This commit is contained in:
Andrew Heather
2018-11-14 21:49:32 +00:00
parent 1a4fceec20
commit d1bc53b77e
28 changed files with 116 additions and 165 deletions

View File

@ -26,7 +26,7 @@ License
#include "waveModel.H"
#include "fvMesh.H"
#include "polyPatch.H"
#include "uniformDimensionedFields.H"
#include "gravityMeshObject.H"
#include "volFields.H"
#include "fvPatchFields.H"
@ -261,7 +261,7 @@ Foam::waveModel::waveModel
),
mesh_(mesh),
patch_(patch),
g_(mesh.lookupObject<uniformDimensionedVectorField>("g").value()),
g_(meshObjects::gravity::New(mesh.time()).value()),
UName_("U"),
alphaName_("alpha"),
Rgl_(tensor::I),