-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildingPlanType2.java
More file actions
57 lines (36 loc) · 1.13 KB
/
BuildingPlanType2.java
File metadata and controls
57 lines (36 loc) · 1.13 KB
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
57
class BuildingPlanType2 {
/*@ specification BuildingPlanType2 {
double tIndoor;
double buildingLength;
double buildingWidth;
double buildingHeight;
double windowHeight;
double windowWidth;
double flatRoofUValue;
double wallUValue;
double windowUValue;
double floorUValue;
double airVolume;
airVolume= buildingLength* buildingHeight* buildingWidth;
double airDensity;
double c;
double temperature;
alias airProperties = (temperature, c, airDensity);
double airM;
airM=(airVolume)*airDensity;
double windowArea;
windowArea= windowWidth* windowHeight;
double wallArea;
wallArea=(buildingLength*buildingHeight-windowArea)+(buildingLength*buildingHeight)+2*(buildingWidth*buildingHeight);
double qWindow;
qWindow=windowUValue*windowArea*(tIndoor-temperature);
double qWalls;
qWalls=wallUValue*wallArea*(tIndoor-temperature);
double qRoof;
qRoof=flatRoofUValue*(buildingLength*buildingWidth)*(tIndoor-temperature);
double qFloor;
qFloor=floorUValue*(buildingLength*buildingWidth)*(tIndoor-temperature);
double dQdT;
dQdT=(-1.0)*(qWindow+qWalls+qRoof+qFloor);
}@*/
}