createDpdt.H
Go to the documentation of this file.
1IOobject dpdtHeader
2(
3 "dpdt",
4 runTime.timeName(),
5 mesh,
6 IOobject::NO_READ,
7 IOobject::NO_WRITE
8);
9
10if (mesh.dynamic())
11{
12 Info<< "Creating field dpdt for moving meshes\n" << endl;
13
14 // Note
15 // - set to READ_IF_PRESENT and AUTO_WRITE to simplify dpdt correction
16 // by meshPhi
17
18 dpdtHeader.readOpt(IOobject::READ_IF_PRESENT);
19 dpdtHeader.writeOpt(IOobject::AUTO_WRITE);
20}
21else
22{
23 Info<< "Creating field dpdt\n" << endl;
24}
25
26volScalarField dpdt(dpdtHeader, fvc::ddt(p));
27
28if (!thermo.dpdt())
29{
30 dpdt == dimensionedScalar(dpdt.dimensions(), Zero);
31 dpdt.writeOpt(IOobject::NO_WRITE);
32}
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
volScalarField & p
IOobject dpdtHeader("dpdt", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
dynamicFvMesh & mesh
engineTime & runTime
volScalarField & dpdt