createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<fluidThermo> pThermo
4 (
5  fluidThermo::New(mesh)
6 );
7 fluidThermo& thermo = pThermo();
8 thermo.validate(args.executable(), "h", "e");
9 
11 
13 (
14  IOobject
15  (
16  "rho",
17  runTime.name(),
18  mesh,
19  IOobject::READ_IF_PRESENT,
20  IOobject::AUTO_WRITE
21  ),
22  thermo.renameRho()
23 );
24 
25 Info<< "Reading field U\n" << endl;
27 (
28  IOobject
29  (
30  "U",
31  runTime.name(),
32  mesh,
33  IOobject::MUST_READ,
34  IOobject::AUTO_WRITE
35  ),
36  mesh
37 );
38 
39 #include "compressibleCreatePhi.H"
40 
41 pressureReference pressureReference
42 (
43  p,
44  simple.dict(),
45  thermo.incompressible()
46 );
47 
48 mesh.schemes().setFluxRequired(p.name());
49 
50 Info<< "Creating turbulence model\n" << endl;
51 autoPtr<compressible::momentumTransportModel> turbulence
52 (
54  (
55  rho,
56  U,
57  phi,
58  thermo
59  )
60 );
61 
62 Info<< "Creating thermophysical transport model\n" << endl;
63 autoPtr<fluidThermoThermophysicalTransportModel> thermophysicalTransport
64 (
66 );
67 
69 
70 #include "createMRF.H"
71 #include "createFvModels.H"
72 #include "createFvConstraints.H"
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
Creates and initialises the face-flux field phi.
simpleControl simple(mesh)
volScalarField & p
Definition: createFields.H:23
Info<< "Creating thermophysical transport model\n"<< endl;turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity< RASThermophysicalTransportModel< ThermophysicalTransportModel< compressibleMomentumTransportModel, fluidThermo > >> thermophysicalTransport(turbulence(), thermo, true)
dimensionedScalar initialMass
Definition: createFields.H:68
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
dimensioned< Type > domainIntegrate(const VolField< Type > &vf)
VolField< vector > volVectorField
Definition: volFieldsFwd.H:65
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:257
messageStream Info
VolField< scalar > volScalarField
Definition: volFieldsFwd.H:64
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Foam::argList args(argc, argv)
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
volScalarField rho(IOobject("rho", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.renameRho())
volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
fluidMulticomponentThermo & thermo
Definition: createFields.H:31
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< fluidMulticomponentThermo > pThermo(fluidMulticomponentThermo::New(mesh))