-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetNeutroConst.H
40 lines (30 loc) · 892 Bytes
/
setNeutroConst.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Info<<nl<<"Setting zone properties" << endl;
forAll(flux, energyI)
{
forAll(entries, zoneI)
{
label zone = zoneI;
const word& name = entries[zoneI].keyword();
label zoneId = mesh.cellZones().findZoneID(name);
if(zoneId == -1)
{
Info << "Mesh zone: " << name << " does not exists" << endl;
}
forAll(mesh.cellZones()[zoneId], cellIlocal)
{
label cellIglobal = mesh.cellZones()[zoneId][cellIlocal];
zone = zoneI;
chi[energyI][cellIglobal] = chiList[zone][energyI];
nuSigmaEff[energyI][cellIglobal] = nuSigmaEffList[zone][energyI];
sigmaT[energyI][cellIglobal] = sigmaTList[zone][energyI];
sigmaA[energyI][cellIglobal] = sigmaAList[zone][energyI];
forAll(sigmaS[energyI],energyJ)
{
forAll(sigmaS[energyI][energyJ], l)
{
sigmaS[energyI][energyJ][l][cellIglobal] = sigmaFromToList[l][zone][energyJ][energyI];
}
}
}
}
}