Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / solvers / lagrangian / uncoupledKinematicParcelFoam / createFields.H
blob5b5767ef3ebcad95d8ac5a49895f0788a91d3a81
1     Info<< "Reading thermophysical properties\n" << endl;
3     autoPtr<basicPsiThermo> pThermo
4     (
5         basicPsiThermo::New(mesh)
6     );
7     basicPsiThermo& thermo = pThermo();
9     volScalarField rho
10     (
11         IOobject
12         (
13             "rho",
14             runTime.timeName(),
15             mesh,
16             IOobject::NO_READ,
17             IOobject::AUTO_WRITE
18         ),
19         thermo.rho()
20     );
22     Info<< "\nReading field U\n" << endl;
23     volVectorField U
24     (
25         IOobject
26         (
27             "U",
28             runTime.timeName(),
29             mesh,
30             IOobject::MUST_READ,
31             IOobject::AUTO_WRITE
32         ),
33         mesh
34     );
36     #include "compressibleCreatePhi.H"
38     Info<< "Creating turbulence model\n" << endl;
39     autoPtr<compressible::turbulenceModel> turbulence
40     (
41         compressible::turbulenceModel::New
42         (
43             rho,
44             U,
45             phi,
46             thermo
47         )
48     );
50     const word kinematicCloudName
51     (
52         args.optionLookupOrDefault<word>("cloudName", "kinematicCloud")
53     );
55     Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
56     basicKinematicCloud kinematicCloud
57     (
58         kinematicCloudName,
59         rho,
60         U,
61         thermo.mu(),
62         g
63     );