Commit 2883311a authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 73460a29
......@@ -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"
......
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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment