1 // Initialise fluid field pointer lists
2 PtrList<basicRhoThermo> thermoFluid(fluidRegions.size());
3 PtrList<volScalarField> rhoFluid(fluidRegions.size());
4 PtrList<volScalarField> KFluid(fluidRegions.size());
5 PtrList<volVectorField> UFluid(fluidRegions.size());
6 PtrList<surfaceScalarField> phiFluid(fluidRegions.size());
7 PtrList<uniformDimensionedVectorField> gFluid(fluidRegions.size());
8 PtrList<compressible::turbulenceModel> turbulence(fluidRegions.size());
9 PtrList<volScalarField> p_rghFluid(fluidRegions.size());
10 PtrList<volScalarField> ghFluid(fluidRegions.size());
11 PtrList<surfaceScalarField> ghfFluid(fluidRegions.size());
12 PtrList<radiation::radiationModel> radiation(fluidRegions.size());
13 PtrList<volScalarField> DpDtFluid(fluidRegions.size());
15 List<scalar> initialMassFluid(fluidRegions.size());
17 // Populate fluid field pointer lists
18 forAll(fluidRegions, i)
20 Info<< "*** Reading fluid mesh thermophysical properties for region "
21 << fluidRegions[i].name() << nl << endl;
23 Info<< " Adding to thermoFluid\n" << endl;
27 basicRhoThermo::New(fluidRegions[i]).ptr()
30 Info<< " Adding to rhoFluid\n" << endl;
48 Info<< " Adding to KFluid\n" << endl;
62 thermoFluid[i].Cp()*thermoFluid[i].alpha()
66 Info<< " Adding to UFluid\n" << endl;
84 Info<< " Adding to phiFluid\n" << endl;
88 new surfaceScalarField
95 IOobject::READ_IF_PRESENT,
98 linearInterpolate(rhoFluid[i]*UFluid[i])
99 & fluidRegions[i].Sf()
103 Info<< " Adding to gFluid\n" << endl;
107 new uniformDimensionedVectorField
120 Info<< " Adding to turbulence\n" << endl;
124 autoPtr<compressible::turbulenceModel>
126 compressible::turbulenceModel::New
136 Info<< " Adding to ghFluid\n" << endl;
140 new volScalarField("gh", gFluid[i] & fluidRegions[i].C())
143 Info<< " Adding to ghfFluid\n" << endl;
147 new surfaceScalarField("ghf", gFluid[i] & fluidRegions[i].Cf())
167 // Force p_rgh to be consistent with p
168 p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
173 radiation::radiationModel::New(thermoFluid[i].T())
176 initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
178 Info<< " Adding to DpDtFluid\n" << endl;
190 phiFluid[i]/fvc::interpolate(rhoFluid[i])