|
| 1 | +""" |
| 2 | +This files contains the code to create graphs for the borehole thermal resistance and pressure drop for a single and |
| 3 | +double DN32 turbocollector from Muovitech for different fluids (MPG 25 v/v%, MEG 25 v/v% and Water). The results are |
| 4 | +compared with the traditional single and double smooth pipe of DN32. |
| 5 | +
|
| 6 | +The correlations for both the convective heat transfer coefficient and the friction factor, which are used internally |
| 7 | +to calculate respectively the effective borehole thermal resistance and the pressure drop, were created by Niklas Hidman, |
| 8 | +Division of Fluid Dynamics, Department of Mechanical and Maritime Sciences, Chalmers University of Technology, Gothenburg, Sweden. |
| 9 | +The study can be found here: https://www.muovitech.com/studies/Thermohydraulic_performance_evaluation_250519.pdf |
| 10 | +""" |
| 11 | +import matplotlib.pyplot as plt |
| 12 | +import numpy as np |
| 13 | + |
| 14 | +from GHEtool import * |
| 15 | + |
| 16 | + |
| 17 | +def create_graphs(): |
| 18 | + single_turbo_collector = Turbocollector(1.5, 0.013, 0.016, 0.035, 1) |
| 19 | + single_smooth = SingleUTube(1.5, 0.013, 0.016, 0.4, 0.035) |
| 20 | + double_turbo_collector = Turbocollector(1.5, 0.013, 0.016, 0.035, 2) |
| 21 | + double_smooth = DoubleUTube(1.5, 0.013, 0.016, 0.4, 0.035) |
| 22 | + |
| 23 | + mpg = TemperatureDependentFluidData('MPG', 25, mass_percentage=False) |
| 24 | + meg = TemperatureDependentFluidData('MEG', 25, mass_percentage=False) |
| 25 | + water = TemperatureDependentFluidData('Water', 100, mass_percentage=False) |
| 26 | + |
| 27 | + flow_rates = np.arange(0.1, 0.8, 0.01) |
| 28 | + |
| 29 | + for fluid in (mpg, meg, water): |
| 30 | + list_rb_single_turbo, list_rb_single_smooth, list_rb_double_turbo, list_rb_double_smooth = [], [], [], [] |
| 31 | + list_dp_single_turbo, list_dp_single_smooth, list_dp_double_turbo, list_dp_double_smooth = [], [], [], [] |
| 32 | + |
| 33 | + for val in flow_rates: |
| 34 | + flow = ConstantFlowRate(vfr=val) |
| 35 | + |
| 36 | + borehole_single_turbo = Borehole(fluid, single_turbo_collector, flow) |
| 37 | + borehole_single_smooth = Borehole(fluid, single_smooth, flow) |
| 38 | + borehole_double_turbo = Borehole(fluid, double_turbo_collector, flow) |
| 39 | + borehole_double_smooth = Borehole(fluid, double_smooth, flow) |
| 40 | + |
| 41 | + list_rb_single_turbo.append(borehole_single_turbo.calculate_Rb(100, 0.7, 0.07, 2, temperature=5)) |
| 42 | + list_rb_single_smooth.append(borehole_single_smooth.calculate_Rb(100, 0.7, 0.07, 2, temperature=5)) |
| 43 | + list_rb_double_turbo.append(borehole_double_turbo.calculate_Rb(100, 0.7, 0.07, 2, temperature=5)) |
| 44 | + list_rb_double_smooth.append(borehole_double_smooth.calculate_Rb(100, 0.7, 0.07, 2, temperature=5)) |
| 45 | + |
| 46 | + list_dp_single_turbo.append(single_turbo_collector.pressure_drop(fluid, flow, 100 - 0.7, temperature=5)) |
| 47 | + list_dp_single_smooth.append(single_smooth.pressure_drop(fluid, flow, 100 - 0.7, temperature=5)) |
| 48 | + list_dp_double_turbo.append(double_turbo_collector.pressure_drop(fluid, flow, 100 - 0.7, temperature=5)) |
| 49 | + list_dp_double_smooth.append(double_smooth.pressure_drop(fluid, flow, 100 - 0.7, temperature=5)) |
| 50 | + |
| 51 | + plt.figure() |
| 52 | + plt.plot(flow_rates, list_rb_single_turbo, label="Single turbo") |
| 53 | + plt.plot(flow_rates, list_rb_single_smooth, label="Single smooth") |
| 54 | + plt.plot(flow_rates, list_rb_double_turbo, label="Double turbo") |
| 55 | + plt.plot(flow_rates, list_rb_double_smooth, label="Double smooth") |
| 56 | + |
| 57 | + plt.title(f'Borehole thermal resistance for {fluid._name}') |
| 58 | + plt.ylabel('Effective borehole thermal resistance [W/(mK)]') |
| 59 | + plt.xlabel('Flow rate [l/s]') |
| 60 | + plt.legend() |
| 61 | + plt.figure() |
| 62 | + |
| 63 | + plt.plot(flow_rates, list_dp_single_turbo, label="Single turbo") |
| 64 | + plt.plot(flow_rates, list_dp_single_smooth, label="Single smooth") |
| 65 | + plt.plot(flow_rates, list_dp_double_turbo, label="Double turbo") |
| 66 | + plt.plot(flow_rates, list_dp_double_smooth, label="Double smooth") |
| 67 | + |
| 68 | + plt.title(f'Pressure drop for {fluid._name}') |
| 69 | + plt.ylabel('Pressure drop [kPa]') |
| 70 | + plt.xlabel('Flow rate [l/s]') |
| 71 | + plt.legend() |
| 72 | + plt.show() |
| 73 | + |
| 74 | + |
| 75 | +if __name__ == "__main__": # pragma: no-cover |
| 76 | + create_graphs() |
0 commit comments