Update README.md
Browse files
README.md
CHANGED
|
@@ -97,6 +97,7 @@ generation_config.eos_token_id = tokenizer.eos_token_id
|
|
| 97 |
|
| 98 |
# Please provide your input here — a description of the desired building
|
| 99 |
# For more details, please refer to the paper: https://doi.org/10.1016/j.autcon.2025.106223
|
|
|
|
| 100 |
input=f"""
|
| 101 |
Simulate a U-shaped building that is 99.73 meters high, with a gable roof.
|
| 102 |
The horizontal segment is 732.31 meters long and 17.54 meters wide.
|
|
@@ -115,12 +116,35 @@ Occupancy starts at 7:00 and ends at 18:00. The occupancy rate is 1. The unoccup
|
|
| 115 |
The heating setpoint is 21.54 Celsius in occupancy period and 15.86 Celsius in unoccupancy period.
|
| 116 |
The cooling setpoint is 22.6 Celsius in occupancy period and 26.72 Celsius in unoccupancy period.
|
| 117 |
"""
|
|
|
|
| 118 |
input_ids = tokenizer(input, return_tensors="pt", truncation=False)
|
| 119 |
generated_ids = model.generate(input_ids = input_ids.input_ids,
|
| 120 |
attention_mask = input_ids.attention_mask,
|
| 121 |
generation_config = generation_config)
|
| 122 |
generated_output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
# Output the building energy model in IDF file
|
| 125 |
with open(file_path, 'r', encoding='utf-8') as file:
|
| 126 |
nextpart = file.read()
|
|
|
|
| 97 |
|
| 98 |
# Please provide your input here — a description of the desired building
|
| 99 |
# For more details, please refer to the paper: https://doi.org/10.1016/j.autcon.2025.106223
|
| 100 |
+
|
| 101 |
input=f"""
|
| 102 |
Simulate a U-shaped building that is 99.73 meters high, with a gable roof.
|
| 103 |
The horizontal segment is 732.31 meters long and 17.54 meters wide.
|
|
|
|
| 116 |
The heating setpoint is 21.54 Celsius in occupancy period and 15.86 Celsius in unoccupancy period.
|
| 117 |
The cooling setpoint is 22.6 Celsius in occupancy period and 26.72 Celsius in unoccupancy period.
|
| 118 |
"""
|
| 119 |
+
|
| 120 |
input_ids = tokenizer(input, return_tensors="pt", truncation=False)
|
| 121 |
generated_ids = model.generate(input_ids = input_ids.input_ids,
|
| 122 |
attention_mask = input_ids.attention_mask,
|
| 123 |
generation_config = generation_config)
|
| 124 |
generated_output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
| 125 |
|
| 126 |
+
# Default thermal zones setting
|
| 127 |
+
zone_1 = """ZoneHVAC:EquipmentConnections,Thermal Zone 1,Thermal Zone 1 Equipment,Thermal Zone 1 Ideal Loads Supply Inlet,,Thermal Zone 1 Zone Air Node,Thermal Zone 1 Return Outlet;
|
| 128 |
+
ZoneHVAC:EquipmentList,Thermal Zone 1 Equipment,SequentialLoad,ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 1 Ideal Loads Air System,1,1,,;
|
| 129 |
+
ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 1 Ideal Loads Air System,,Thermal Zone 1 Ideal Loads Supply Inlet,,,50,13,0.0156,0.0077,NoLimit,,,NoLimit,,,,,ConstantSensibleHeatRatio,0.7,None,,,None,NoEconomizer,None,0.7,0.65;"""
|
| 130 |
+
zone_2 = """ZoneHVAC:EquipmentConnections,Thermal Zone 2,Thermal Zone 2 Equipment,Thermal Zone 2 Ideal Loads Supply Inlet,,Thermal Zone 2 Zone Air Node,Thermal Zone 2 Return Outlet;
|
| 131 |
+
ZoneHVAC:EquipmentList,Thermal Zone 2 Equipment,SequentialLoad,ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 2 Ideal Loads Air System,1,1,,;
|
| 132 |
+
ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 2 Ideal Loads Air System,,Thermal Zone 2 Ideal Loads Supply Inlet,,,50,13,0.0156,0.0077,NoLimit,,,NoLimit,,,,,ConstantSensibleHeatRatio,0.7,None,,,None,NoEconomizer,None,0.7,0.65;"""
|
| 133 |
+
zone_3 = """ZoneHVAC:EquipmentConnections,Thermal Zone 3,Thermal Zone 3 Equipment,Thermal Zone 3 Ideal Loads Supply Inlet,,Thermal Zone 3 Zone Air Node,Thermal Zone 3 Return Outlet;
|
| 134 |
+
ZoneHVAC:EquipmentList,Thermal Zone 3 Equipment,SequentialLoad,ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 3 Ideal Loads Air System,1,1,,;
|
| 135 |
+
ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 3 Ideal Loads Air System,,Thermal Zone 3 Ideal Loads Supply Inlet,,,50,13,0.0156,0.0077,NoLimit,,,NoLimit,,,,,ConstantSensibleHeatRatio,0.7,None,,,None,NoEconomizer,None,0.7,0.65;"""
|
| 136 |
+
zone_4 = """ZoneHVAC:EquipmentConnections,Thermal Zone 4,Thermal Zone 4 Equipment,Thermal Zone 4 Ideal Loads Supply Inlet,,Thermal Zone 4 Zone Air Node,Thermal Zone 4 Return Outlet;
|
| 137 |
+
ZoneHVAC:EquipmentList,Thermal Zone 4 Equipment,SequentialLoad,ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 4 Ideal Loads Air System,1,1,,;
|
| 138 |
+
ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 4 Ideal Loads Air System,,Thermal Zone 4 Ideal Loads Supply Inlet,,,50,13,0.0156,0.0077,NoLimit,,,NoLimit,,,,,ConstantSensibleHeatRatio,0.7,None,,,None,NoEconomizer,None,0.7,0.65;"""
|
| 139 |
+
zone_5 = """ZoneHVAC:EquipmentConnections,Thermal Zone 5,Thermal Zone 5 Equipment,Thermal Zone 5 Ideal Loads Supply Inlet,,Thermal Zone 5 Zone Air Node,Thermal Zone 5 Return Outlet;
|
| 140 |
+
ZoneHVAC:EquipmentList,Thermal Zone 5 Equipment,SequentialLoad,ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 5 Ideal Loads Air System,1,1,,;
|
| 141 |
+
ZoneHVAC:IdealLoadsAirSystem,Thermal Zone 5 Ideal Loads Air System,,Thermal Zone 5 Ideal Loads Supply Inlet,,,50,13,0.0156,0.0077,NoLimit,,,NoLimit,,,,,ConstantSensibleHeatRatio,0.7,None,,,None,NoEconomizer,None,0.7,0.65;"""
|
| 142 |
+
|
| 143 |
+
generated_output = generated_output.replace("Ideal Load System Setting for Thermal Zone 1;", zone_1)
|
| 144 |
+
generated_output = generated_output.replace("Ideal Load System Setting for Thermal Zone 2;", zone_2)
|
| 145 |
+
generated_output = generated_output.replace("Ideal Load System Setting for Thermal Zone 3;", zone_3)
|
| 146 |
+
generated_output = generated_output.replace("Ideal Load System Setting for Thermal Zone 4;", zone_4)
|
| 147 |
+
generated_output = generated_output.replace("Ideal Load System Setting for Thermal Zone 5;", zone_5)
|
| 148 |
# Output the building energy model in IDF file
|
| 149 |
with open(file_path, 'r', encoding='utf-8') as file:
|
| 150 |
nextpart = file.read()
|