Forward compatibility: flex
[foam-extend-3.2.git] / applications / solvers / compressible / sonicDyMFoam / createFields.H
bloba17764ce4f3f089e62d58a8aa092cd318f823507
1     Info<< "Reading thermophysical properties\n" << endl;
3     autoPtr<basicPsiThermo> pThermo
4     (
5         basicPsiThermo::New(mesh)
6     );
7     basicPsiThermo& thermo = pThermo();
9     volScalarField& T = const_cast<volScalarField&>(thermo.T());
10     volScalarField& p = thermo.p();
11     volScalarField& e = thermo.e();
13     volScalarField psis("psi", thermo.psi()/thermo.Cp()*thermo.Cv());
14     psis.oldTime();
16     volScalarField rho
17     (
18         IOobject
19         (
20             "rho",
21             runTime.timeName(),
22             mesh
23         ),
24         thermo.rho()
25     );
27     Info<< "Reading 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"
43     Info<< "Creating turbulence model\n" << endl;
44     autoPtr<compressible::turbulenceModel> turbulence
45     (
46         compressible::turbulenceModel::New
47         (
48             rho,
49             U,
50             phi,
51             thermo
52         )
53     );