19 totalRhoN.primitiveFieldRef() = totalRhoN_sum;
38 totalRhoM.primitiveFieldRef() = totalRhoM_sum;
57 forAll(singleSpeciesVelocity, sSV)
61 singleSpeciesVelocity[sSV] =
65 totalMomentum_sum[sSV] +=
74 singleSpeciesVelocity[sSV] =
Zero;
79 volVectorField::Internal& itotalVelocity = totalVelocity;
83 if (totalMass_sum[tV] > vSmall)
85 itotalVelocity[tV] = totalMomentum_sum[tV]/totalMass_sum[tV];
89 itotalVelocity[tV] =
Zero;
110 forAll(singleSpeciesTemp, sST)
114 singleSpeciesTemp[sST] =
129 totalTemperatureVTerms_sum[sST] +=
147 singleSpeciesTemp[sST] = 0.0;
152 volScalarField::Internal& itotalTemperature =
155 forAll(itotalTemperature, tT)
157 if (totalN_sum[tT] > 0)
159 itotalTemperature[tT] =
160 totalTemperatureVTerms_sum[tT]
161 /(3.0 * moleculeCloud::kb * totalN_sum[tT]);
165 itotalTemperature[tT] = 0.0;
184 forAll(singleSpeciesMeanKE, sSMKE)
188 singleSpeciesMeanKE[sSMKE] =
196 totalKE_sum[sSMKE] +=
206 singleSpeciesMeanKE[sSMKE] = 0.0;
211 volScalarField::Internal& itotalMeanKE = totalMeanKE;
213 forAll(itotalMeanKE, tMKE)
215 if (totalN_sum[tMKE] > 0)
223 itotalMeanKE[tMKE] = 0.0;
#define forAll(list, i)
Loop across all elements in list.
Info<< " Creating total mass density field"<< endl;volScalarField totalRhoM(IOobject("rhoM_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimMass/dimVolume, "zeroGradient");totalRhoM.primitiveFieldRef()=0;totalRhoM.correctBoundaryConditions();PtrList< volVectorField > allSpeciesVelocity(molecules.potential().nIds())
List< scalarField > allSpeciesM_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
volVectorField vectorField(fieldObject, mesh)
List< scalarField > allSpeciesVelocityMagSquaredSum_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
List< vectorField > allSpeciesVelocitySum_RU(molecules.potential().nIds(), vectorField(mesh.nCells(), Zero))
Info<< " Creating total temperature field"<< endl;volScalarField totalTemperature(IOobject("temperature_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimTemperature, "zeroGradient");totalTemperature.primitiveFieldRef()=0;totalTemperature.correctBoundaryConditions();PtrList< volScalarField > allSpeciesMeanKE(molecules.potential().nIds())
Info<< " Creating total velocity field"<< endl;volVectorField totalVelocity(IOobject("velocity_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedVector(dimVelocity, Zero));PtrList< volScalarField > allSpeciesTemperature(molecules.potential().nIds())
List< scalarField > allSpeciesN_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
volScalarField scalarField(fieldObject, mesh)
Info<< " Creating total number density field"<< endl;volScalarField totalRhoN(IOobject("rhoN_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimless/dimVolume, "zeroGradient");totalRhoN.primitiveFieldRef()=0;totalRhoN.correctBoundaryConditions();PtrList< volScalarField > allSpeciesRhoM(molecules.potential().nIds())
Info<< nl<< "Creating fields."<< endl;PtrList< volScalarField > allSpeciesRhoN(molecules.potential().nIds())