createFields.H
Go to the documentation of this file.
1  Info<< "Reading thermophysical properties\n" << endl;
2 
3  autoPtr<rhoThermo> pThermo(rhoThermo::New(mesh));
4  rhoThermo& thermo = pThermo();
5  thermo.validate(args.executable(), "h", "e");
6 
8  (
9  IOobject
10  (
11  "rho",
12  runTime.timeName(),
13  mesh,
14  IOobject::NO_READ,
15  IOobject::NO_WRITE
16  ),
17  thermo.rho()
18  );
19 
20  volScalarField& p = thermo.p();
21 
22  Info<< "Reading 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  #include "setAlphaEff.H"
39 
40  Info<< "Creating field dpdt\n" << endl;
42  (
43  IOobject
44  (
45  "dpdt",
46  runTime.timeName(),
47  mesh
48  ),
49  mesh,
50  dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
51  );
52 
53  Info<< "Creating field kinetic energy K\n" << endl;
54  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())
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
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
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.