createFields.H
Go to the documentation of this file.
1  Info<< "Reading thermophysical properties\n" << endl;
2 
3  autoPtr<psiThermo> pThermo
4  (
6  );
7  psiThermo& thermo = pThermo();
8 
10  (
11  IOobject
12  (
13  "rho",
14  runTime.timeName(),
15  mesh,
16  IOobject::NO_READ,
17  IOobject::AUTO_WRITE
18  ),
19  thermo.rho()
20  );
21 
22  Info<< "\nReading field U\n" << endl;
24  (
25  IOobject
26  (
27  "U",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE
32  ),
33  mesh
34  );
35 
36  #include "compressibleCreatePhi.H"
37 
38  Info<< "Creating turbulence model\n" << endl;
39  autoPtr<compressible::turbulenceModel> turbulence
40  (
42  (
43  rho,
44  U,
45  phi,
46  thermo
47  )
48  );
49 
50  const word kinematicCloudName
51  (
52  args.optionLookupOrDefault<word>("cloudName", "kinematicCloud")
53  );
54 
55  Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
56  basicKinematicCloud kinematicCloud
57  (
59  rho,
60  U,
61  thermo.mu(),
62  g
63  );
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
surfaceScalarField & phi
Definition: createFields.H:13
Creates and initialises the face-flux field phi.
KinematicCloud< Cloud< basicKinematicParcel > > basicKinematicCloud
messageStream Info
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
dynamicFvMesh & mesh
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
word kinematicCloudName("kinematicCloud")
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
rho
Definition: createFields.H:79
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Foam::argList args(argc, argv)
const dimensionedVector & g
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
Definition: argListI.H:237