1 // Fields for data gathering
3 List< scalarField > allSpeciesN_RU
5 molecules.potential().nIds(),
6 scalarField (mesh.nCells(), 0.0)
9 List< scalarField > allSpeciesM_RU
11 molecules.potential().nIds(),
12 scalarField (mesh.nCells(), 0.0)
15 List< vectorField > allSpeciesVelocitySum_RU
17 molecules.potential().nIds(),
18 vectorField (mesh.nCells(), vector::zero)
21 List< scalarField > allSpeciesVelocityMagSquaredSum_RU
23 molecules.potential().nIds(),
24 scalarField (mesh.nCells(), 0.0)
27 // Geometric Fields for IO
29 Info << nl << "Creating fields." << endl;
31 /*---------------------------------------------------------------------------*\
33 \*---------------------------------------------------------------------------*/
35 PtrList<volScalarField> allSpeciesRhoN
37 molecules.potential().nIds()
40 forAll(allSpeciesRhoN, rN)
42 Info<< " Creating number density field for "
43 << molecules.potential().idList()[rN] << endl;
52 "rhoN_" + molecules.potential().idList()[rN],
63 allSpeciesRhoN[rN].internalField() = scalarField (mesh.nCells(), 0.0);
64 allSpeciesRhoN[rN].correctBoundaryConditions();
67 Info << " Creating total number density field" << endl;
69 volScalarField totalRhoN
83 totalRhoN.internalField() = scalarField (mesh.nCells(), 0.0);
84 totalRhoN.correctBoundaryConditions();
86 /*---------------------------------------------------------------------------*\
88 \*---------------------------------------------------------------------------*/
90 PtrList<volScalarField> allSpeciesRhoM
92 molecules.potential().nIds()
95 forAll(allSpeciesRhoM, rM)
97 Info<< " Creating mass density field for "
98 << molecules.potential().idList()[rM] << endl;
107 "rhoM_" + molecules.potential().idList()[rM],
118 allSpeciesRhoM[rM].internalField() = scalarField (mesh.nCells(), 0.0);
119 allSpeciesRhoM[rM].correctBoundaryConditions();
122 Info << " Creating total mass density field" << endl;
124 volScalarField totalRhoM
138 totalRhoM.internalField() = scalarField (mesh.nCells(), 0.0);
139 totalRhoM.correctBoundaryConditions();
141 /*---------------------------------------------------------------------------*\
143 \*---------------------------------------------------------------------------*/
145 PtrList<volVectorField> allSpeciesVelocity
147 molecules.potential().nIds()
150 forAll(allSpeciesVelocity, v)
152 Info<< " Creating velocity field for "
153 << molecules.potential().idList()[v] << endl;
155 allSpeciesVelocity.set
162 "velocity_" + molecules.potential().idList()[v],
173 allSpeciesVelocity[v].internalField() =
174 vectorField (mesh.nCells(), vector::zero);
175 allSpeciesVelocity[v].correctBoundaryConditions();
178 Info << " Creating total velocity field" << endl;
180 // volVectorField totalVelocity
185 // runTime.timeName(),
187 // IOobject::NO_READ,
188 // IOobject::AUTO_WRITE
194 // totalVelocity.internalField() = vectorField (mesh.nCells(), vector::zero);
195 // totalVelocity.correctBoundaryConditions();
198 volVectorField totalVelocity
212 dimensionedVector("zero", dimVelocity, vector::zero)
215 /*---------------------------------------------------------------------------*\
217 \*---------------------------------------------------------------------------*/
219 PtrList<volScalarField> allSpeciesTemperature
221 molecules.potential().nIds()
224 forAll(allSpeciesTemperature, t)
226 Info<< " Creating temperature field for "
227 << molecules.potential().idList()[t] << endl;
229 allSpeciesTemperature.set
236 "temperature_" + molecules.potential().idList()[t],
247 allSpeciesTemperature[t].internalField() = scalarField (mesh.nCells(), 0.0);
248 allSpeciesTemperature[t].correctBoundaryConditions();
251 Info << " Creating total temperature field" << endl;
253 volScalarField totalTemperature
267 totalTemperature.internalField() = scalarField (mesh.nCells(), 0.0);
268 totalTemperature.correctBoundaryConditions();
270 /*---------------------------------------------------------------------------*\
272 \*---------------------------------------------------------------------------*/
275 PtrList<volScalarField> allSpeciesMeanKE
277 molecules.potential().nIds()
280 forAll(allSpeciesMeanKE, mKE)
282 Info<< " Creating mean kinetic energy field for "
283 << molecules.potential().idList()[mKE] << endl;
292 "meanKE_" + molecules.potential().idList()[mKE],
299 dimensionSet(1, 2, -2, 0, 0, 0, 0),
303 allSpeciesMeanKE[mKE].internalField() = scalarField (mesh.nCells(), 0.0);
304 allSpeciesMeanKE[mKE].correctBoundaryConditions();
307 Info << " Creating total mean kinetic energy field" << endl;
309 volScalarField totalMeanKE
320 dimensionSet(1, 2, -2, 0, 0, 0, 0),
323 totalMeanKE.internalField() = scalarField (mesh.nCells(), 0.0);
324 totalMeanKE.correctBoundaryConditions();