1 // Initializing the scalarFields
4 scalar cellValue(scalar(cellIndex) / 100000);
5 sfA[cellIndex] = 10 + cellValue;
6 sfB[cellIndex] = 20 + cellValue;
7 sfC[cellIndex] = 30 + cellValue;
10 // Initializing the volScalarFields
12 forAll(vsfA.internalField(), cellIndex)
14 scalar cellValue(scalar(globalI) / 100000);
15 vsfA.internalField()[cellIndex] = 40 + cellValue;
16 vsfB.internalField()[cellIndex] = 50 + cellValue;
17 vsfC.internalField()[cellIndex] = 60 + cellValue;
20 forAll(vsfA.boundaryField(), geoIndex)
22 forAll(vsfA.boundaryField()[geoIndex], cellIndex)
24 scalar cellValue(scalar(globalI) / 100000);
25 vsfA.boundaryField()[geoIndex][cellIndex] = 40 + cellValue;
26 vsfB.boundaryField()[geoIndex][cellIndex] = 50 + cellValue;
27 vsfC.boundaryField()[geoIndex][cellIndex] = 60 + cellValue;
32 // Initializing the vectorFields
33 forAll(vfA, cellIndex)
35 scalar cellValue(scalar(cellIndex) / 100000);
36 vfA[cellIndex] = vector
42 vfB[cellIndex] = vector
48 vfC[cellIndex] = vector
56 // Initializing the volVectorFields
58 forAll(vvfA.internalField(), cellIndex)
60 scalar cellValue(scalar(globalI) / 100000);
61 vvfA.internalField()[cellIndex] = vector
67 vvfB.internalField()[cellIndex] = vector
73 vvfC.internalField()[cellIndex] = vector
81 forAll(vvfA.boundaryField(), geoIndex)
83 forAll(vvfA.boundaryField()[geoIndex], cellIndex)
85 scalar cellValue(scalar(globalI) / 100000);
86 vvfA.boundaryField()[geoIndex][cellIndex] = vector
92 vvfB.boundaryField()[geoIndex][cellIndex] = vector
98 vvfC.boundaryField()[geoIndex][cellIndex] = vector
108 // Initializing the tensorFields
109 forAll(tfA, cellIndex)
111 scalar cellValue(scalar(cellIndex) / 100000);
112 scalar tA(cellValue + 100000);
113 scalar tB(cellValue + 200000);
114 scalar tC(cellValue + 300000);
115 tfA[cellIndex] = tensor
121 tfB[cellIndex] = tensor
127 tfC[cellIndex] = tensor
135 // Initializing the volTectorFields
137 forAll(vtfA.internalField(), cellIndex)
139 scalar cellValue(scalar(globalI) / 100000);
140 scalar tA(cellValue + 400000);
141 scalar tB(cellValue + 500000);
142 scalar tC(cellValue + 600000);
143 vtfA.internalField()[cellIndex] = tensor
149 vtfB.internalField()[cellIndex] = tensor
155 vtfC.internalField()[cellIndex] = tensor
163 forAll(vtfA.boundaryField(), geoIndex)
165 forAll(vtfA.boundaryField()[geoIndex], cellIndex)
167 scalar cellValue(scalar(globalI) / 100000);
168 scalar tA(cellValue + 400000);
169 scalar tB(cellValue + 500000);
170 scalar tC(cellValue + 600000);
171 vtfA.boundaryField()[geoIndex][cellIndex] = tensor
177 vtfB.boundaryField()[geoIndex][cellIndex] = tensor
183 vtfC.boundaryField()[geoIndex][cellIndex] = tensor