mabuseif commited on
Commit
756fb68
·
verified ·
1 Parent(s): e9e5696

Update app/m_c_data.py

Browse files
Files changed (1) hide show
  1. app/m_c_data.py +33 -14
app/m_c_data.py CHANGED
@@ -135,20 +135,39 @@ SAMPLE_FENESTRATIONS = {
135
  },
136
  **{
137
  name: {
138
- Stuart, 0.15, 608.0, 1630.0, 0.045, 2.5, 0.50, 15.0, 0.925, 200.0]),
139
- ("Insulated Wood 50mm", "Sub-Structural", [0.10, 500.0, 1400.0, 0.050, 1.8, 0.45, 18.0, 0.925, 250.0]),
140
- ("Hollow Core Wood 40mm", "Sub-Structural", [0.15, 400.0, 1630.0, 0.040, 3.5, 0.50, 12.0, 0.925, 150.0]),
141
- ("Steel Uninsulated 45mm", "Sub-Structural", [45.28, 7824.0, 500.0, 0.045, 5.0, 0.70, 20.0, 0.075, 180.0]),
142
- ("Steel Insulated 50mm", "Sub-Structural", [0.10, 2000.0, 1000.0, 0.050, 2.0, 0.65, 25.0, 0.925, 220.0]),
143
- ("Aluminum Uninsulated 45mm", "Sub-Structural", [160.0, 2700.0, 900.0, 0.045, 6.0, 0.75, 22.0, 0.075, 200.0]),
144
- ("Aluminum Insulated 50mm", "Sub-Structural", [0.15, 1800.0, 1100.0, 0.050, 2.5, 0.70, 28.0, 0.925, 240.0]),
145
- ("Glass Single 6mm", "Structural", [0.53, 1280.0, 840.0, 0.006, 5.7, 0.78, 28.0, 0.90, 100.0]),
146
- ("Glass Double 6mm/13mm Air", "Structural", [0.40, 1280.0, 840.0, 0.025, 2.7, 0.70, 40.0, 0.90, 150.0]),
147
- ("Fiberglass Insulated 50mm", "Insulation", [0.03, 43.0, 1210.0, 0.050, 1.5, 0.60, 20.0, 0.925, 230.0]),
148
- ("PVC Insulated 50mm", "Insulation", [0.05, 1400.0, 1000.0, 0.050, 1.7, 0.55, 18.0, 0.925, 210.0]),
149
- ("Wood with Glass Insert", "Sub-Structural", [0.15, 608.0, 1630.0, 0.045, 3.0, 0.65, 16.0, 0.925, 190.0])
150
- ]
151
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
 
153
  # Sample Constructions Data
154
  SAMPLE_CONSTRUCTIONS = {
 
135
  },
136
  **{
137
  name: {
138
+ "type": "door",
139
+ "category": category,
140
+ "thermal_properties": {
141
+ "conductivity": data[0],
142
+ "density": data[1],
143
+ "specific_heat": data[2]
144
+ },
145
+ "default_thickness": data[3],
146
+ "performance": {"u_value": data[4]},
147
+ "absorptivity": data[5],
148
+ "embodied_carbon": data[6],
149
+ "emissivity": data[7] if len(data) > 7 else DEFAULT_DOOR_PROPERTIES["emissivity"],
150
+ "cost": {
151
+ "material": data[8] if len(data) > 8 else 100.0,
152
+ "labor": (data[8] * 0.3) if len(data) > 8 else 30.0,
153
+ "replacement_years": 30 if "Insulated" in name else 25
154
+ },
155
+ "description": f"{name} for door applications"
156
+ } for name, category, data in [
157
+ ("Solid Wood 45mm", "Sub-Structural", [0.15, 608.0, 1630.0, 0.045, 2.5, 0.50, 15.0, 0.925, 200.0]),
158
+ ("Insulated Wood 50mm", "Sub-Structural", [0.10, 500.0, 1400.0, 0.050, 1.8, 0.45, 18.0, 0.925, 250.0]),
159
+ ("Hollow Core Wood 40mm", "Sub-Structural", [0.15, 400.0, 1630.0, 0.040, 3.5, 0.50, 12.0, 0.925, 150.0]),
160
+ ("Steel Uninsulated 45mm", "Sub-Structural", [45.28, 7824.0, 500.0, 0.045, 5.0, 0.70, 20.0, 0.075, 180.0]),
161
+ ("Steel Insulated 50mm", "Sub-Structural", [0.10, 2000.0, 1000.0, 0.050, 2.0, 0.65, 25.0, 0.925, 220.0]),
162
+ ("Aluminum Uninsulated 45mm", "Sub-Structural", [160.0, 2700.0, 900.0, 0.045, 6.0, 0.75, 22.0, 0.075, 200.0]),
163
+ ("Aluminum Insulated 50mm", "Sub-Structural", [0.15, 1800.0, 1100.0, 0.050, 2.5, 0.70, 28.0, 0.925, 240.0]),
164
+ ("Glass Single 6mm", "Structural", [0.53, 1280.0, 840.0, 0.006, 5.7, 0.78, 28.0, 0.90, 100.0]),
165
+ ("Glass Double 6mm/13mm Air", "Structural", [0.40, 1280.0, 840.0, 0.025, 2.7, 0.70, 40.0, 0.90, 150.0]),
166
+ ("Fiberglass Insulated 50mm", "Insulation", [0.03, 43.0, 1210.0, 0.050, 1.5, 0.60, 20.0, 0.925, 230.0]),
167
+ ("PVC Insulated 50mm", "Insulation", [0.05, 1400.0, 1000.0, 0.050, 1.7, 0.55, 18.0, 0.925, 210.0]),
168
+ ("Wood with Glass Insert", "Sub-Structural", [0.15, 608.0, 1630.0, 0.045, 3.0, 0.65, 16.0, 0.925, 190.0])
169
+ ]
170
+ }
171
 
172
  # Sample Constructions Data
173
  SAMPLE_CONSTRUCTIONS = {