waves: Removed unused pressure method and simplified handling of gravity

This commit is contained in:
Will Bainbridge
2021-09-01 10:55:51 +01:00
parent 1c48685b09
commit 96508b8406
14 changed files with 92 additions and 251 deletions

View File

@ -53,36 +53,4 @@ libs
"libwaves.so"
);
functions
{
readG
{
libs ("libutilityFunctionObjects.so");
type coded;
name readG;
enabled yes;
executeControl none;
codeRead
#{
if (!mesh().template foundObject<uniformDimensionedVectorField>("g"))
{
Info<< "\nReading g" << endl;
uniformDimensionedVectorField* g =
new uniformDimensionedVectorField
(
IOobject
(
"g",
mesh().time().constant(),
mesh(),
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
g->store();
}
#};
}
};
// ************************************************************************* //