@@ -210,8 +210,7 @@ def test_case_auditorium():
210210 hourly_load = HourlyGeothermalLoad ()
211211 hourly_load .simulation_period = 20
212212 hourly_load .load_hourly_profile (FOLDER .joinpath ("test\methods\hourly_data\\ auditorium.csv" ), header = True ,
213- separator = ";" ,
214- col_injection = 0 , col_extraction = 1 )
213+ separator = ";" , col_injection = 0 , col_extraction = 1 )
215214 borefield .load = hourly_load
216215 borefield .create_rectangular_borefield (5 , 4 , 6 , 6 , 110 , 4 , 0.075 )
217216
@@ -247,8 +246,7 @@ def test_case_swimming_pool():
247246 hourly_load .simulation_period = 20
248247
249248 hourly_load .load_hourly_profile (FOLDER .joinpath ("test\methods\hourly_data\\ swimming_pool.csv" ), header = True ,
250- separator = ";" ,
251- col_injection = 0 , col_extraction = 1 )
249+ separator = ";" , col_injection = 0 , col_extraction = 1 )
252250 borefield .load = hourly_load
253251 borefield .create_rectangular_borefield (15 , 20 , 6 , 6 , 110 , 4 , 0.075 )
254252 start = time .time ()
@@ -267,3 +265,38 @@ def test_case_swimming_pool():
267265 assert np .isclose (borefield .results .min_temperature , 3.0001877071926537 )
268266 assert np .isclose (borefield .results .max_temperature , 12.919492619924261 )
269267 print (f'Simulation time without speed up { time .time () - start } s' )
268+
269+
270+ def test_case_auditorium_active_passive ():
271+ borefield = Borefield ()
272+ borefield .create_rectangular_borefield (10 , 10 , 6 , 6 , 110 , 4 , 0.075 )
273+ borefield .ground_data = GroundFluxTemperature (3 , 10 )
274+ borefield .fluid_data = TemperatureDependentFluidData ('MPG' , 25 , mass_percentage = False )
275+ borefield .flow_data = ConstantFlowRate (vfr = 0.3 )
276+ borefield .pipe_data = DoubleUTube (1 , 0.015 , 0.02 , 0.4 , 0.05 )
277+ borefield .calculation_setup (use_constant_Rb = False )
278+ borefield .set_max_avg_fluid_temperature (25 )
279+ borefield .set_min_avg_fluid_temperature (3 )
280+ hourly_load = HourlyBuildingLoad ()
281+ hourly_load .simulation_period = 20
282+ hourly_load .load_hourly_profile (FOLDER .joinpath ("test\methods\hourly_data\\ auditorium.csv" ), header = True ,
283+ separator = ";" , col_cooling = 0 , col_heating = 1 )
284+ hourly_load .eer = EERCombined (20 , 5 , 17 )
285+ borefield .load = hourly_load
286+ borefield .create_rectangular_borefield (5 , 4 , 6 , 6 , 110 , 4 , 0.075 )
287+ start = time .time ()
288+
289+ borefield .size_L4 ()
290+ assert np .isclose (borefield .H , 51.676740693499106 )
291+ assert np .isclose (borefield .results .min_temperature , 3.0002733156958086 )
292+ assert np .isclose (borefield .results .max_temperature , 23.824518064283197 )
293+ print (f'Simulation time with speed up { time .time () - start } s' )
294+
295+ borefield .USE_SPEED_UP_IN_SIZING = False
296+ start = time .time ()
297+
298+ borefield .size_L4 ()
299+ assert np .isclose (borefield .H , 51.676740693499106 )
300+ assert np .isclose (borefield .results .min_temperature , 3.0002733156958086 )
301+ assert np .isclose (borefield .results .max_temperature , 23.824518064283197 )
302+ print (f'Simulation time without speed up { time .time () - start } s' )
0 commit comments