ENH: rhoPimple[DyM]Foam - updated treatment for dpdt

This commit is contained in:
Andrew Heather
2017-06-15 14:51:27 +01:00
parent 73460a2993
commit 2883311a23
2 changed files with 20 additions and 16 deletions

View File

@ -35,8 +35,7 @@ volVectorField U
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh,
true
mesh
);
#include "compressibleCreatePhi.H"
@ -57,20 +56,7 @@ autoPtr<compressible::turbulenceModel> turbulence
)
);
Info<< "Creating field dpdt\n" << endl;
volScalarField dpdt
(
IOobject
(
"dpdt",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
);
#include "createDpdt.H"
#include "createK.H"

View File

@ -0,0 +1,18 @@
Info<< "Creating field dpdt\n" << endl;
volScalarField dpdt
(
IOobject
(
"dpdt",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
fvc::ddt(p)
);
if (!thermo.dpdt())
{
dpdt == dimensionedScalar("0", dpdt.dimensions(), 0);
}