-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreadSettings.H
53 lines (41 loc) · 1.38 KB
/
readSettings.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Info<<"Reading angles, boundary albedos and settings - MOCsettings\n"<<endl;
IOdictionary MOCsettings
(
IOobject
(
"MOCsettings",
runTime.system(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
//Read line spacing
scalar ts (readScalar(MOCsettings.lookup("spacing")));
//Read azimuthal angles
int naz (readInt(MOCsettings.lookup("naz")));
//Read polar angles
const int npo(readInt(MOCsettings.lookup("npo")));
//Read left boundary albedo
const scalar alphaL(readScalar(MOCsettings.lookup("alphaL")));
//Read right boundary albedo
const scalar alphaR(readScalar(MOCsettings.lookup("alphaR")));
//Read top boundary albedo
const scalar alphaT(readScalar(MOCsettings.lookup("alphaT")));
//Read bottom boundary albedo
const scalar alphaB(readScalar(MOCsettings.lookup("alphaB")));
//Read error tolerance
const scalar tol(readScalar(MOCsettings.lookup("tol")));
//Read whether to use linear source
const bool linearSource=MOCsettings.lookupOrDefault("linearSource",0);
//Read whether to integrate zone fluxes
const bool zoneIntegral=MOCsettings.lookupOrDefault("zoneIntegral",0);
//Read order of anisotropy
/*
int anisotropy(readInt(MOCsettings.lookupOrDefault("anisotropy",0)))
if((anisotropy<0) || (anisotropy>5))
{
Info<<"Order of anisotropy must be between 0 and 5 - reset to 0"<<endl;
anisotropy=0;
}
*/