home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / ROOMCTRL.VSM < prev    next >
Text File  |  1994-02-22  |  9KB  |  364 lines

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1993 Visual Solutions
  3. PV=1.500
  4. PS=0
  5. PE=2
  6. PP=0.01
  7. PI=172
  8. PX=0.01
  9. PN=1e-006
  10. Pn=-10,6,16,"Times New Roman"
  11. Pc=99
  12. PD=800x600
  13. Pf=0x0
  14. Pr="stub"
  15. Ps=1563,0,0,1088,0,0
  16. Pd=22
  17. PM=1,1,1,1
  18. N.1="const"(55)*15x27
  19. N.2="const"(85)*15x29
  20. N.3="wireLabel"*10x27
  21. n="Tin"
  22. N.4="wireLabel"*9x29
  23. n="Tair"
  24. N.5="wireLabel"*16x42
  25. n="Air Flow (LB/hr)"
  26. N.6="plot"*68x7*61x20
  27. pt="Room Temperature"
  28. ps="Random Population"
  29. px="Time (hr)"
  30. py="Deg, F"
  31. pax=0
  32. pf=H
  33. pc=512
  34. pm=10
  35. N.7="variable"*41x27
  36. n=":Tout"
  37. N.8="variable"*41x30
  38. n=":Qout"
  39. N.9="variable"*55x8
  40. n=":Tout"
  41. N.10="plot"*67x34*62x30
  42. pt="Heat Flow"
  43. px="Time (hr)"
  44. py="BTU/hr"
  45. pax=0
  46. pf=H
  47. pf=F
  48. pb=10000,-10000
  49. pbx=2,0
  50. pbY=0,0
  51. pbX=0,0
  52. pc=512
  53. pm=10
  54. pb.0=0,-20000
  55. pL.0="Net Heat Flow in Room"
  56. pb.1=0,0
  57. pL.1="Heat Flow In from People"
  58. pb.2=40000,-10000
  59. pb.3=0,-2000
  60. N.11="variable"*50x44
  61. n=":Qout"
  62. N.12="*"*5x38<R>
  63. N.13="wireLabel"*48x0<M>
  64. n="Single Room Model, 500 f^2"
  65. N.14="Compound"*26x27#3,2<C>
  66. n="Room_1"
  67. Ms=1563,0,0,1088,0,0
  68. N.15="variable"*63x38<M>
  69. n=":S"
  70. N.16="variable"*63x42<M>
  71. n=":C"
  72. N.17="variable"*38x55<M>
  73. n=":R"
  74. N.18="const"(0.24)*47x38<M>
  75. N.19="const"(266)*48x43<M>
  76. N.20="wireLabel"*75x38<M>
  77. n="Specific heat of air (BTU / (lb - degF)"
  78. N.21="wireLabel"*21x46<M>
  79. n="Mass of room air (LBs)"
  80. N.22="wireLabel"*51x55<M>
  81. n="Thermal resistance of walls (hr - deg F) "
  82. N.23="wireLabel"*50x36<M>
  83. n="*** Parameters ***"
  84. N.24="variable"*2x8<M>
  85. n=":Tin"
  86. N.25="variable"*8x31<M>
  87. n=":Tair"
  88. N.26="variable"*2x53<M>
  89. n=":w"
  90. N.27="wireLabel"*0x1<M>
  91. n="Inlet air temp, deg F"
  92. N.28="wireLabel"*0x27<M>
  93. n="Outside air, deg F"
  94. N.29="wireLabel"*0x46<M>
  95. n="Airflow, Lb/Hr"
  96. N.30="summingJunction"*68x16#3,1<M>
  97. N.31="variable"*42x16<M>
  98. n=":w"
  99. N.32="variable"*42x18<M>
  100. n=":S"
  101. N.33="variable"*20x19<M>
  102. n=":Tin"
  103. N.34="*"*52x16#3,1<M>
  104. N.35="summingJunction"*40x3<M>
  105. N.36="variable"*27x5<M>
  106. n=":Tair"
  107. N.37="/"*65x8<M>
  108. N.38="variable"*55x10<M>
  109. n=":R"
  110. N.39="/"*93x18<M>
  111. N.40="variable"*75x25<M>
  112. n=":C"
  113. N.41="variable"*75x9<M>
  114. n=":Qe"
  115. N.42="integrator"(80,2)*102x19<M>
  116. N.43="variable"*113x15<M>
  117. n=":Troom"
  118. N.44="*"*50x26<M>
  119. N.45="variable"*85x12<M>
  120. n=":Qnet"
  121. N.46="variable"*110x48<M>
  122. n=":Qnet"
  123. N.47="summingJunction"*32x19<M>
  124. N.48="variable"*31x48<R>
  125. n=":Tout"
  126. N.49="summingJunction"*17x29<M>
  127. N.50="<"*79x30<M>
  128. N.51="const"(0)*72x32<M>
  129. N.52="Compound"*30x30#1,1<MC>
  130. n="C:\\VISSIM\\CONTROLS\\hyster.bmp"
  131. Ms=772,0,0,502,0,0
  132. N.53="summingJunction"*12x16<M>
  133. N.54="wireLabel"*30x5<M>
  134. n="Hysteresis function"
  135. N.55="gain"(1.5)*37x21<M>
  136. N.56="integrator"(0,0)*65x17<M>
  137. N.57="const"(70)*33x50<R>
  138. N.58="wireLabel"*0x51<M>
  139. n="Setpoint Temp"
  140. N.59="wireLabel"*41x1<M>
  141. n="Wall Thermostat (On/Off Control)"
  142. N.60="/"*50x17<M>
  143. N.61="variable"*21x21<M>
  144. n="$timeStep"
  145. N.62="comment"*0x0*53x10
  146. C="This block diagram simulates an HVAC model of single room cooling with on/off thermostat. This nonlinear model has hysteresis in the controller and accounts for heat production from people in room.
  147. "
  148. N.63="Compound"*2x14<C>
  149. n="PRESS RIGHT MOUSE BUTTON FOR MORE INFO"
  150. Ms=1556,0,0,1062,0,0
  151. N.64="comment"*2x0*104x64<M>
  152. C="Simplified Room Model Description
  153.  
  154. Basic Information:
  155.      A typical house (1500 sf) requires 3 tons of cooling
  156.          1 ton of cooling = 12000 BTU/hr
  157.          Density of air = .076 lb/f^3
  158.         400 f^3/min = 1 ton of cooling
  159.         
  160.     For 1 ton of cooling, 60*.076*400 = 1824 Lb/Hr is required
  161.  
  162.     Specific heat of air = .24 BTU/(lb - deg F)
  163.     All units in Lb/hr, deg F
  164.     Q = heat flow in units of BTU/hr = delta-T*S*w
  165.  
  166.     Typically (for cooling), 
  167.         Tin = 55 deg F
  168.         Tair = 85 deg F or higher
  169.         Troom = Tout = 68 to 75 deg F
  170.  
  171. The model computes the temperature in a room into which cooled air is flowing.  People in the room are used as heat input disturbances.  A diagram of the simplified room is shown below:
  172.                                               _____________________________
  173.                                              !                                                                !  Tair (Outside temperature)
  174.                                    ____!                                                                 !   
  175.   Air In, Tin     ------>_____                  Room, Troom                     !
  176.                                              !                                                                !
  177.                                              !                                                                !
  178.                                              !                                                                !____
  179.                                              !                                                                 ____ ----->  Air Out, Tout
  180.                                              !                      People                               !
  181.                                              !____________________________ !
  182.  
  183. Assumptions:
  184. 1.  No heat storage in the room walls
  185. 2.  Room air is completely mixed.
  186.  
  187. Parameters:
  188. Qp = rate of heat flow from people
  189. Qout = rate of heat flow carried out by air leaving room
  190. Qin = rate of heat flow carried in by air entering room
  191. Qe = rate of heat flow through room walls
  192.  
  193. Troom = Room temperature
  194. Tin = temperature of air entering room
  195. Tout = temperature of air leaving room
  196. Tair = temperature of air surrounding room
  197.  
  198. C = thermal capacitance of air in room
  199. R = thermal resistance of walls
  200. w = air flow out of room
  201. S = specific heat of air
  202.  
  203. Equations:
  204. Equilibrium equation for rate of heat flow:
  205.     Qp + Qout - Qin + Qe = 0 
  206. where:
  207.     Qp = C *Troom
  208.     Qout = w*S*Troom
  209.     Qin = w*S*Tin
  210.     Qe = (Troom - Tair) / R
  211.  
  212. Substitution yeilds:
  213.     C*d(Troom)/dt + w*S*Troom - w*S*Tin + (Troom - Tair)/R = 0"
  214. N.65="Compound"*14x48#2,1<CR>
  215. n="Thermostat"
  216. Ms=1556,0,0,1062,0,0
  217. N.66="*"*56x41<M>
  218. N.67="variable"*25x3<M>
  219. n=":Troom"
  220. N.68="variable"*38x60<M>
  221. n=":P#"
  222. N.69="const"(400)*71x58<M>
  223. N.70="variable"*37x26<M>
  224. n=":P#"
  225. N.71="slider"(1850,10000,0)*16x37<R>
  226. N.72="deadband"(2)*28x17<M>
  227. N.73="wirePositioner"*7x12<MR>
  228. N.74="*"*52x6<M>
  229. N.75="variable"*41x8<M>
  230. n=":A"
  231. N.76="variable"*38x50<M>
  232. n=":A"
  233. N.77="const"(1000)*21x50<M>
  234. N.78="wireLabel"*51x51<M>
  235. n="Wall Area"
  236. N.79="variable"*82x58<M>
  237. n=":Pq"
  238. N.80="wireLabel"*90x61<M>
  239. n="BTU output per person at rest"
  240. N.81="variable"*37x28<M>
  241. n=":Pq"
  242. N.82="gain"(2)*85x25<M>
  243. N.83="slider"(6.4,19,1)*12x53<M>
  244. N.84="wireLabel"*53x61<M>
  245. n="Number of people in room"
  246. N.85="wireLabel"*1x12<M>
  247. n="Current Room Temp"
  248. N.86="variable"*47x41<M>
  249. n=":S"
  250. N.87="wireLabel"*75x42<M>
  251. n="Thermal capacity of room (BTU/deg F) "
  252. N.88="limitedIntegrator"(0,1)*21x8<M>
  253. N.89="const"(10)*5x10<M>
  254. N.90="const"(0)*5x12<M>
  255. N.91="gain"(20)*11x8<M>
  256. N.92="gaussian"(0,5)*5x8<M>
  257. N.93="Compound"*7x60#0,1<MC>
  258. n="Random population"
  259. Ms=1581,0,0,1093,0,0
  260. N.94="plot"*0x21*63x14<M>
  261. pt="Random Population"
  262. px="Time (hr)"
  263. pax=0
  264. pf=F
  265. pb=10,0
  266. pbx=2,0
  267. pbY=0,0
  268. pbX=0,0
  269. pc=512
  270. pm=10
  271. pb.0=20,0
  272. pb.1=0,0
  273. pb.2=0,0
  274. pb.3=0,0
  275. N.95="variable"*60x31<M>
  276. n="Qp"
  277. N.96="variable"*50x55
  278. n="Qp"
  279. N.97="wireLabel"*30x1<M>
  280. n="Random Population Model"
  281. N.98="display"(0)*46x59
  282. N.99="variable"*18x21<M>
  283. n=":Troom"
  284. I.6.i1=9.o1
  285. I.7.i1=14.o1
  286. I.8.i1=14.o2
  287. I.10.i2=11.o1
  288. I.10.i4=96.o1
  289. I.12.i1=71.o1
  290. I.12.i2=65.o1
  291. G.14=13,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,66,67,68,69,70,74,75,76,77,78,79,80,81,82,83,84,86,87,93,95,99,
  292. I.14.o1=43.o1
  293. I.14.o2=46.o1
  294. I.14.i1=1.o1
  295. I.14.i2=2.o1
  296. I.14.i3=12.o1
  297. I.15.i1=18.o1
  298. I.16.i1=66.o1
  299. I.17.i1=83.o1
  300. I.24.i1=14.i1
  301. I.25.i1=14.i2
  302. I.26.i1=14.i3
  303. I.30.i1=37.o1
  304. I.30.i2=34.o1
  305. I.30.i3=44.o1
  306. I.34.i1=31.o1
  307. I.34.i2=32.o1
  308. I.34.i3=47.o1
  309. f35.1.i=-
  310. I.35.i1=67.o1
  311. I.35.i2=36.o1
  312. I.37.i1=74.o1
  313. I.37.i2=38.o1
  314. I.39.i1=30.o1
  315. I.39.i2=82.o1
  316. I.41.i1=37.o1
  317. I.42.i1=39.o1
  318. I.43.i1=42.o1
  319. I.44.i1=70.o1
  320. I.44.i2=81.o1
  321. I.45.i1=30.o1
  322. I.47.i1=33.o1
  323. f47.2.i=-
  324. I.47.i2=99.o1
  325. f49.1.i=-
  326. I.49.i1=65.i1
  327. I.49.i2=65.i2
  328. I.50.i1=52.o1
  329. I.50.i2=51.o1
  330. G.52=53,54,55,56,60,61,72,73,
  331. I.52.o1=56.o1
  332. I.52.i1=49.o1
  333. f53.1.i=-
  334. I.53.i1=73.o1
  335. I.53.i2=52.i1
  336. I.55.i1=61.o1
  337. I.56.i1=60.o1
  338. I.60.i1=72.o1
  339. I.60.i2=55.o1
  340. G.63=64,
  341. G.65=49,50,51,52,58,59,85,
  342. I.65.o1=50.o1
  343. I.65.i1=48.o1
  344. I.65.i2=57.o1
  345. I.66.i1=86.o1
  346. I.66.i2=19.o1
  347. I.68.i1=93.o1
  348. I.72.i1=53.o1
  349. I.73.i1=56.o1
  350. I.74.i1=35.o1
  351. I.74.i2=75.o1
  352. I.76.i1=77.o1
  353. I.79.i1=69.o1
  354. I.82.i1=40.o1
  355. I.88.i1=91.o1
  356. I.88.i2=89.o1
  357. I.88.i3=90.o1
  358. I.91.i1=92.o1
  359. G.93=88,89,90,91,92,94,97,
  360. I.93.o1=88.o1
  361. I.94.i1=88.o1
  362. I.95.i1=44.o1
  363. I.98.i1=96.o1
  364.