createFields.H
Go to the documentation of this file.
1 Info<< "Reading field p\n" << endl;
3 (
4  IOobject
5  (
6  "p",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE
11  ),
12  mesh
13 );
14 
15 Info<< "Reading field Urel\n" << endl;
17 (
18  IOobject
19  (
20  "Urel",
21  runTime.timeName(),
22  mesh,
23  IOobject::MUST_READ,
24  IOobject::AUTO_WRITE
25  ),
26  mesh
27 );
28 
29 Info<< "Reading/calculating face flux field phi\n" << endl;
31 (
32  IOobject
33  (
34  "phi",
35  runTime.timeName(),
36  mesh,
37  IOobject::READ_IF_PRESENT,
38  IOobject::AUTO_WRITE
39  ),
41 );
42 
43 label pRefCell = 0;
44 scalar pRefValue = 0.0;
46 mesh.setFluxRequired(p.name());
47 
48 Info<< "Creating SRF model\n" << endl;
49 autoPtr<SRF::SRFModel> SRF(SRF::SRFModel::New(Urel));
50 
51 // Construct the absolute velocity
53 (
54  IOobject
55  (
56  "U",
57  runTime.timeName(),
58  mesh,
59  IOobject::NO_READ,
60  IOobject::AUTO_WRITE
61  ),
62  Urel + SRF->U()
63 );
64 
65 singlePhaseTransportModel laminarTransport(U, phi);
66 
67 autoPtr<incompressible::turbulenceModel> turbulence
68 (
70 );
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
surfaceScalarField & phi
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: linear.H:107
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
volVectorField U(IOobject("U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector("zero", dimVelocity, Zero))
Urel
Definition: pEqn.H:56
volScalarField & p
Definition: createFields.H:23
const dictionary & simple
Info<< "Reading field p\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Urel\n"<< endl;volVectorField Urel(IOobject("Urel", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading/calculating face flux field phi\n"<< endl;surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), linearInterpolate(Urel)&mesh.Sf());label pRefCell=0;scalar pRefValue=0.0;setRefCell(p, pimple.dict(), pRefCell, pRefValue);mesh.setFluxRequired(p.name());Info<< "Creating SRF model\n"<< endl;autoPtr< SRF::SRFModel > SRF(SRF::SRFModel::New(Urel))
label pRefCell
Definition: createFields.H:106
messageStream Info
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
singlePhaseTransportModel laminarTransport(U, phi)
scalar pRefValue
Definition: createFields.H:107