initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / combustion / coldEngineFoam / createFields.H
blobed7c012d53724516d7c55eabde7f3bef8f722f5e
1     Info<< "Reading thermophysical properties\n" << endl;
3     autoPtr<basicThermo> thermo
4     (
5         basicThermo::New(mesh)
6     );
8     volScalarField rho
9     (
10         IOobject
11         (
12             "rho",
13             runTime.timeName(),
14             mesh,
15             IOobject::NO_READ,
16             IOobject::AUTO_WRITE
17         ),
18         thermo->rho()
19     );
21     volScalarField& p = thermo->p();
22     const volScalarField& psi = thermo->psi();
23     volScalarField& h = thermo->h();
24     const volScalarField& T = thermo->T();
27     Info<< "\nReading field U\n" << endl;
28     volVectorField U
29     (
30         IOobject
31         (
32             "U",
33             runTime.timeName(),
34             mesh,
35             IOobject::MUST_READ,
36             IOobject::AUTO_WRITE
37         ),
38         mesh
39     );
41 #   include "compressibleCreatePhi.H"
44     Info<< "Creating turbulence model\n" << endl;
45     autoPtr<compressible::RASModel> turbulence
46     (
47         compressible::RASModel::New
48         (
49             rho,
50             U,
51             phi,
52             thermo()
53         )
54     );
56     Info<< "Creating field DpDt\n" << endl;
57     volScalarField DpDt =
58         fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);