github.com/archlabjp/eeslism-go@v0.0.0-20231109122333-4bb7bfcdf292/eeslism/e79_var_and_consts.go (about) 1 package eeslism 2 3 import "os" 4 5 const ( 6 ALO = 23.0 7 8 // Uncomment these lines if you want to use these constants 9 // MAXBDP = 100 10 // MAXOBS = 100 11 // MAXTREE = 10 // Maximum number of trees 12 // MAXPOLY = 50 13 14 UNIT = "SI" 15 PI = 3.141592654 16 ) 17 18 var ( 19 Sgm = 5.67e-8 20 Ca = 1005.0 21 Cv = 1846.0 22 Roa = 1.29 23 Cw = 4186.0 24 25 Row = 1000.0 26 Ro = 2501000.0 27 28 G = 9.8 29 DTM = 0.0 // Assign the value of dTM here 30 Cff_kWh = 0.0 // Assign the value of cff_kWh here 31 VAVCountMAX = 0 // Assign the value of VAV_Count_MAX here 32 33 Fbmlist = "" // 壁材料リストファイル名 ref: wbmlist.md 34 35 DEBUG = false 36 dayprn = false 37 DAYweek = [8]string{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Hol"} 38 39 Ferr = os.Stderr // Assuming you want to write errors to standard error 40 //DISPLAY_DELAY = 0 // Assign the value of DISPLAY_DELAY here 41 SETprint = false // SET(体感温度)を出力する場合は true 42 ) 43 44 // 月の末日かどうかをチェックする 45 func IsEndDay(Mon, Day, Dayend, SimDayend int) bool { 46 Nde := []int{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} 47 nday := SimDayend 48 if nday > 365 { 49 nday -= 365 50 } 51 if Day == Nde[Mon-1] || Dayend == nday { 52 return true 53 } 54 55 return false 56 }