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  thermo.validate(args.executable(), "h", "e");
9 
11  (
12  IOobject
13  (
14  "rho",
15  runTime.timeName(),
16  mesh,
17  IOobject::NO_READ,
18  IOobject::AUTO_WRITE
19  ),
20  thermo.rho()
21  );
22 
23  volScalarField& p = thermo.p();
24  const volScalarField& psi = thermo.psi();
25  const volScalarField& T = thermo.T();
26 
27 
28  Info<< "\nReading field U\n" << endl;
30  (
31  IOobject
32  (
33  "U",
34  runTime.timeName(),
35  mesh,
36  IOobject::MUST_READ,
37  IOobject::AUTO_WRITE
38  ),
39  mesh
40  );
41 
42  #include "compressibleCreatePhi.H"
43 
44 
45  Info<< "Creating turbulence model\n" << endl;
46  autoPtr<compressible::turbulenceModel> turbulence
47  (
49  (
50  rho,
51  U,
52  phi,
53  thermo
54  )
55  );
56 
57  Info<< "Creating field dpdt\n" << endl;
59  (
60  IOobject
61  (
62  "dpdt",
63  runTime.timeName(),
64  mesh
65  ),
66  mesh,
67  dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
68  );
69 
70  Info<< "Creating field kinetic energy K\n" << endl;
71  volScalarField K("K", 0.5*magSqr(U));
volScalarField & dpdt
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
CGAL::Exact_predicates_exact_constructions_kernel K
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Creates and initialises the face-flux field phi.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
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)
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
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))
const word & executable() const
Name of executable without the path.
Definition: argListI.H:30
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Foam::argList args(argc, argv)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.