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());
14 List<scalar> initialMassFluid(fluidRegions.size());
15 List<label> pRefCellFluid(fluidRegions.size(),0);
16 List<scalar> pRefValueFluid(fluidRegions.size(),0.0);
18 PtrList<dimensionedScalar> rhoMax(fluidRegions.size());
19 PtrList<dimensionedScalar> rhoMin(fluidRegions.size());
21 // Populate fluid field pointer lists
22 forAll(fluidRegions, i)
24 Info<< "*** Reading fluid mesh thermophysical properties for region "
25 << fluidRegions[i].name() << nl << endl;
27 Info<< " Adding to thermoFluid\n" << endl;
32 basicRhoThermo::New(fluidRegions[i]).ptr()
35 Info<< " Adding to rhoFluid\n" << endl;
53 Info<< " Adding to KFluid\n" << endl;
67 thermoFluid[i].Cp()*thermoFluid[i].alpha()
71 Info<< " Adding to UFluid\n" << endl;
89 Info<< " Adding to phiFluid\n" << endl;
93 new surfaceScalarField
100 IOobject::READ_IF_PRESENT,
103 linearInterpolate(rhoFluid[i]*UFluid[i])
104 & fluidRegions[i].Sf()
108 Info<< " Adding to gFluid\n" << endl;
112 new uniformDimensionedVectorField
125 Info<< " Adding to turbulence\n" << endl;
129 compressible::turbulenceModel::New
138 Info<< " Adding to ghFluid\n" << endl;
142 new volScalarField("gh", gFluid[i] & fluidRegions[i].C())
145 Info<< " Adding to ghfFluid\n" << endl;
149 new surfaceScalarField("ghf", gFluid[i] & fluidRegions[i].Cf())
169 // Force p_rgh to be consistent with p
170 p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
175 radiation::radiationModel::New(thermoFluid[i].T())
178 initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
184 fluidRegions[i].solutionDict().subDict("SIMPLE"),
192 new dimensionedScalar
194 fluidRegions[i].solutionDict().subDict("SIMPLE").lookup
204 new dimensionedScalar
206 fluidRegions[i].solutionDict().subDict("SIMPLE").lookup