Loading...
Searching...
No Matches
createFields.H
Go to the documentation of this file.
1#include "readGravitationalAcceleration.H"
2
3Info<< "Reading field p\n" << endl;
5(
6 IOobject
7 (
8 "p",
9 runTime.timeName(),
10 mesh,
11 IOobject::MUST_READ,
12 IOobject::AUTO_WRITE
13 ),
14 mesh
15);
16
17Info<< "\nReading field U\n" << endl;
19(
20 IOobject
21 (
22 "U",
23 runTime.timeName(),
24 mesh,
25 IOobject::MUST_READ,
26 IOobject::AUTO_WRITE
27 ),
28 mesh
29);
30
31#include "createPhi.H"
32
33singlePhaseTransportModel laminarTransport(U, phi);
34
35dimensionedScalar rhoInfValue
36(
37 "rhoInf",
38 dimDensity,
40);
41
42const dimensionedScalar invRhoInf
43(
44 dimless/dimDensity, scalar(1)/rhoInfValue.value()
45);
46
47volScalarField rhoInf
48(
49 IOobject
50 (
51 "rho",
52 runTime.timeName(),
53 mesh,
54 IOobject::NO_READ,
55 IOobject::NO_WRITE
56 ),
57 mesh,
58 rhoInfValue
59);
60
62(
63 IOobject
64 (
65 "muc",
66 runTime.timeName(),
67 mesh,
68 IOobject::NO_READ,
69 IOobject::NO_WRITE
70 ),
71 rhoInf*laminarTransport.nu()
72);
73
74Info<< "Creating turbulence model\n" << endl;
75autoPtr<incompressible::turbulenceModel> turbulence
76(
77 incompressible::turbulenceModel::New(U, phi, laminarTransport)
78);
79
80label pRefCell = 0;
81scalar pRefValue = 0.0;
83mesh.setFluxRequired(p.name());
84
85#include "createMRF.H"
86#include "createClouds.H"
87#include "createSurfaceFilmModel.H"
88#include "createFvOptions.H"
89
90
const scalar pRefValue
const label pRefCell
pimpleControl & pimple
U
Definition pEqn.H:72
volScalarField & p
dynamicFvMesh & mesh
engineTime & runTime
compressible::turbulenceModel & turbulence
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition Ostream.H:519
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
singlePhaseTransportModel laminarTransport(U, phi)
setRefCell(p, pimple.dict(), pRefCell, pRefValue)