30Info <<
"Reading thermophysical properties\n" << endl;
32IOdictionary transportProperties
36 "transportProperties",
39 IOobject::MUST_READ_IF_MODIFIED,
45_nu = autoPtr<dimensionedScalar>
51 transportProperties.lookup(
"nu")
54dimensionedScalar& nu = _nu();
57_nut = autoPtr<volScalarField>
72volScalarField& nut = _nut();
74_UliftBC = autoPtr<volScalarField>
89volScalarField& UliftBC = _UliftBC();
92_Pr = autoPtr<dimensionedScalar>
98 transportProperties.lookup(
"Pr")
101dimensionedScalar& Pr = _Pr();
104_Prt = autoPtr<dimensionedScalar>
106 new dimensionedScalar
110 transportProperties.lookup(
"Prt")
113dimensionedScalar& Prt = _Prt();
116_beta = autoPtr<dimensionedScalar>
118 new dimensionedScalar
121 dimless / dimTemperature,
122 transportProperties.lookup(
"beta")
125dimensionedScalar& beta = _beta();
128_TRef = autoPtr<dimensionedScalar>
130 new dimensionedScalar
134 transportProperties.lookup(
"TRef")
137dimensionedScalar& TRef = _TRef();
140Info <<
"\nReading g" << endl;
141_g = autoPtr<dimensionedVector>
143 new dimensionedVector
146 dimensionSet(0, 1, -2, 0, 0),
150dimensionedVector& g = _g();
152Info <<
"\nReading hRef" << endl;
153_hRef = autoPtr<dimensionedScalar>
155 new dimensionedScalar
162dimensionedScalar& hRef = _hRef();
164Info <<
"Calculating field ghRef\n" << endl;
165_ghRef = autoPtr<dimensionedScalar>
167 new dimensionedScalar
170 dimAcceleration* dimLength,
174dimensionedScalar& ghRef = _ghRef();
176Info <<
"Reading field gh\n" << endl;
177_gh = autoPtr<volScalarField>
187 (g& mesh.C()) - ghRef
190volScalarField& gh = _gh();
192Info <<
"Reading field ghf\n" << endl;
193_ghf = autoPtr<surfaceScalarField>
195 new surfaceScalarField
203 (g& mesh.Cf()) - ghRef)
205surfaceScalarField& ghf = _ghf();
208Info <<
"Reading field T\n" << endl;
209_T = autoPtr<volScalarField>
224volScalarField& T = _T();
226Info <<
"Reading field p_rgh\n" << endl;
227_p_rgh = autoPtr<volScalarField>
242volScalarField& p_rgh = _p_rgh();
244Info <<
"Reading field U\n" << endl;
245_U = autoPtr<volVectorField>
260volVectorField& U = _U();
263#include "createPhi.H"
265_laminarTransport = autoPtr<singlePhaseTransportModel>
267 new singlePhaseTransportModel( U, phi )
269singlePhaseTransportModel& laminarTransport = _laminarTransport();
271Info <<
"Creating turbulence model\n" << endl;
272turbulence = autoPtr<incompressible::turbulenceModel>
274 incompressible::turbulenceModel::New(U, phi, laminarTransport)
278_rhok = autoPtr<volScalarField>
288 1.0 - beta * (T - TRef)
291volScalarField& rhok = _rhok();
294Info <<
"Reading field alphat\n" << endl;
295_alphat = autoPtr<volScalarField>
310volScalarField& alphat = _alphat();
312Info <<
"Reading field p\n" << endl;
313_p = autoPtr<volScalarField>
328volScalarField& p = _p();
334pimpleControl& pimple = _pimple();
345if (p_rgh.needReference())
347 p += dimensionedScalar
351 pRefValue - getRefCellValue(p, pRefCell)
355mesh.setFluxRequired(p_rgh.name());
357_MRF = autoPtr<IOMRFZoneList>
359 new IOMRFZoneList(mesh)