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 );
scalar pRefValue
Definition: createFields.H:113
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
surfaceScalarField & phi
Definition: createFields.H:13
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
singlePhaseTransportModel laminarTransport(U, phi)
Urel
Definition: pEqn.H:53
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
messageStream Info
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
dynamicFvMesh & mesh
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
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))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
volScalarField & p
Definition: createFields.H:51
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: linear.H:107
const dictionary & simple
label pRefCell
Definition: createFields.H:112