All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
readScNumbers.H
Go to the documentation of this file.
1 List<scalar> ScNumbers (composition.species().size(), 1.0);
2 
3 if (thermo.found("ScNumbers"))
4 {
5  List<Tuple2<word,scalar> > ScNumbersTuples;
6  thermo.lookup("ScNumbers") >> ScNumbersTuples;
7 
8  forAll(ScNumbersTuples, iTuple)
9  {
10  word cmptName = ScNumbersTuples[iTuple].first();
11  scalar cmptSc = ScNumbersTuples[iTuple].second();
12  if (composition.species().found(cmptName))
13  {
14  label cmptId = composition.species()[cmptName];
15  ScNumbers[cmptId] = cmptSc;
16  }
17  }
18 
19 }
20 
basicSpecieMixture & composition
Definition: createFields.H:28
List< scalar > ScNumbers(composition.species().size(), 1.0)
forAll(Y, i)
Definition: QGDYEqn.H:36
rhoQGDThermo & thermo
Definition: createFields.H:47