All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
createFields.H
Go to the documentation of this file.
1 #include "createRDeltaT.H"
2 
3 Info<< "Reading thermophysical properties\n" << endl;
4 
5 autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
6 fluidThermo& thermo = pThermo();
7 thermo.validate(args.executable(), "h", "e");
8 
9 volScalarField& p = thermo.p();
10 
12 (
13  IOobject
14  (
15  "rho",
16  runTime.timeName(),
17  mesh,
18  IOobject::NO_READ,
19  IOobject::NO_WRITE
20  ),
21  thermo.rho()
22 );
23 
24 Info<< "Reading field U\n" << endl;
26 (
27  IOobject
28  (
29  "U",
30  runTime.timeName(),
31  mesh,
32  IOobject::MUST_READ,
33  IOobject::AUTO_WRITE
34  ),
35  mesh
36 );
37 
38 #include "compressibleCreatePhi.H"
39 
40 Info<< "Creating turbulence model\n" << endl;
41 autoPtr<compressible::momentumTransportModel> turbulence
42 (
44  (
45  rho,
46  U,
47  phi,
48  thermo
49  )
50 );
51 
52 Info<< "Creating thermophysical transport model\n" << endl;
53 autoPtr<fluidThermophysicalTransportModel> thermophysicalTransport
54 (
56 );
57 
58 
59 #include "readGravitationalAcceleration.H"
60 #include "readhRef.H"
61 #include "gh.H"
62 #include "readpRef.H"
63 
64 
65 Info<< "Reading field p_rgh\n" << endl;
67 (
68  IOobject
69  (
70  "p_rgh",
71  runTime.timeName(),
72  mesh,
73  IOobject::MUST_READ,
74  IOobject::AUTO_WRITE
75  ),
76  mesh
77 );
78 
80 (
81  p,
82  p_rgh,
83  pimple.dict(),
84  thermo.incompressible()
85 );
86 
87 mesh.schemes().setFluxRequired(p_rgh.name());
88 
90 (
91  p_rgh,
92  p,
93  rho,
94  U,
95  gh,
96  ghf,
97  pRef,
98  thermo,
99  pimple.dict()
100 );
101 
102 Info<< "Creating field dpdt\n" << endl;
104 (
105  IOobject
106  (
107  "dpdt",
108  runTime.timeName(),
109  mesh
110  ),
111  mesh,
112  dimensionedScalar(p.dimensions()/dimTime, 0)
113 );
114 
115 Info<< "Creating field kinetic energy K\n" << endl;
116 volScalarField K("K", 0.5*magSqr(U));
117 
119 
120 #include "createMRF.H"
121 #include "createFvModels.H"
122 #include "createFvConstraints.H"
123 #include "checkRadiationModel.H"
volScalarField & p_rgh
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
pimpleNoLoopControl & pimple
Info<< "Reading thermophysical properties\"<< endl;autoPtr< fluidReactionThermo > pThermo(fluidReactionThermo::New(mesh))
pressureReference pressureReference(mixture.p(), p_rgh, pimple.dict(), false)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:59
fvMesh & mesh
CGAL::Exact_predicates_exact_constructions_kernel K
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:58
volScalarField & dpdt
rho
Definition: createFields.H:81
const dimensionSet dimTime
phi
Definition: correctPhi.H:3
void hydrostaticInitialisation(volScalarField &p_rgh, volScalarField &p, volScalarField &rho, const volVectorField &U, const volScalarField &gh, const surfaceScalarField &ghf, const uniformDimensionedScalarField &pRef, fluidThermo &thermo, const dictionary &dict)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
const surfaceScalarField & ghf
Info<< "Creating thermophysical transport model\"<< endl;autoPtr< fluidReactionThermophysicalTransportModel > thermophysicalTransport(fluidReactionThermophysicalTransportModel::New(turbulence(), thermo))
scalar pRef
Definition: createFields.H:6
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & gh
messageStream Info
Foam::argList args(argc, argv)
Creates and initialises the face-flux field phi.