Go to the documentation of this file. 1 if (runTime.outputTime())
19 totalRhoN.internalField() = totalRhoN_sum;
38 totalRhoM.internalField() = totalRhoM_sum;
57 forAll(singleSpeciesVelocity, sSV)
61 singleSpeciesVelocity[sSV] =
65 totalMomentum_sum[sSV] +=
74 singleSpeciesVelocity[sSV] = vector::zero;
79 volVectorField::InternalField& itotalVelocity =
80 totalVelocity.internalField();
84 if (totalMass_sum[tV] > VSMALL)
86 itotalVelocity[tV] = totalMomentum_sum[tV]/totalMass_sum[tV];
90 itotalVelocity[tV] = vector::zero;
111 forAll(singleSpeciesTemp, sST)
115 singleSpeciesTemp[sST] =
130 totalTemperatureVTerms_sum[sST] +=
148 singleSpeciesTemp[sST] = 0.0;
153 volScalarField::InternalField& itotalTemperature =
154 totalTemperature.internalField();
156 forAll(itotalTemperature, tT)
158 if (totalN_sum[tT] > 0)
160 itotalTemperature[tT] =
161 totalTemperatureVTerms_sum[tT]
162 /(3.0 * moleculeCloud::kb * totalN_sum[tT]);
166 itotalTemperature[tT] = 0.0;
185 forAll(singleSpeciesMeanKE, sSMKE)
189 singleSpeciesMeanKE[sSMKE] =
197 totalKE_sum[sSMKE] +=
207 singleSpeciesMeanKE[sSMKE] = 0.0;
212 volScalarField::InternalField& itotalMeanKE = totalMeanKE.internalField();
214 forAll(itotalMeanKE, tMKE)
216 if (totalN_sum[tMKE] > 0)
224 itotalMeanKE[tMKE] = 0.0;
#define forAll(list, i)
Loop across all elements in list.
Info<< " Creating total temperature field"<< endl;volScalarField totalTemperature(IOobject("temperature_total", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimTemperature, "zeroGradient");totalTemperature.internalField()=scalarField(mesh.nCells(), 0.0);totalTemperature.correctBoundaryConditions();PtrList< volScalarField > allSpeciesMeanKE(molecules.potential().nIds())
volVectorField vectorField(fieldObject, mesh)
List< scalarField > allSpeciesN_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
List< vectorField > allSpeciesVelocitySum_RU(molecules.potential().nIds(), vectorField(mesh.nCells(), vector::zero))
List< scalarField > allSpeciesVelocityMagSquaredSum_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
conserve internalField()+
List< scalarField > allSpeciesM_RU(molecules.potential().nIds(), scalarField(mesh.nCells(), 0.0))
volScalarField scalarField(fieldObject, mesh)
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.internalField()=scalarField(mesh.nCells(), 0.0);totalRhoM.correctBoundaryConditions();PtrList< volVectorField > allSpeciesVelocity(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("zero", dimVelocity, vector::zero));PtrList< volScalarField > allSpeciesTemperature(molecules.potential().nIds())
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.internalField()=scalarField(mesh.nCells(), 0.0);totalRhoN.correctBoundaryConditions();PtrList< volScalarField > allSpeciesRhoM(molecules.potential().nIds())
Info<< nl<< "Creating fields."<< endl;PtrList< volScalarField > allSpeciesRhoN(molecules.potential().nIds())