-
Notifications
You must be signed in to change notification settings - Fork 0
/
e79_var_and_consts.go
56 lines (44 loc) · 1.19 KB
/
e79_var_and_consts.go
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
54
55
56
package eeslism
import "os"
const (
ALO = 23.0
// Uncomment these lines if you want to use these constants
// MAXBDP = 100
// MAXOBS = 100
// MAXTREE = 10 // Maximum number of trees
// MAXPOLY = 50
UNIT = "SI"
PI = 3.141592654
)
var (
Sgm = 5.67e-8
Ca = 1005.0
Cv = 1846.0
Roa = 1.29
Cw = 4186.0
Row = 1000.0
Ro = 2501000.0
G = 9.8
DTM = 0.0 // Assign the value of dTM here
Cff_kWh = 0.0 // Assign the value of cff_kWh here
VAVCountMAX = 0 // Assign the value of VAV_Count_MAX here
Fbmlist = "" // 壁材料リストファイル名 ref: wbmlist.md
DEBUG = false
dayprn = false
DAYweek = [8]string{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Hol"}
Ferr = os.Stderr // Assuming you want to write errors to standard error
//DISPLAY_DELAY = 0 // Assign the value of DISPLAY_DELAY here
SETprint = false // SET(体感温度)を出力する場合は true
)
// 月の末日かどうかをチェックする
func IsEndDay(Mon, Day, Dayend, SimDayend int) bool {
Nde := []int{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
nday := SimDayend
if nday > 365 {
nday -= 365
}
if Day == Nde[Mon-1] || Dayend == nday {
return true
}
return false
}