|
| 1 | +""" |
| 2 | +This file contains the code for the effective borehole thermal resistance graph and pressure drop graph for the |
| 3 | +Kilfrost GEO and Kilfrost GEO Plus products. |
| 4 | +""" |
| 5 | + |
| 6 | +from GHEtool import * |
| 7 | + |
| 8 | +import matplotlib.pyplot as plt |
| 9 | +import numpy as np |
| 10 | + |
| 11 | +single = SingleUTube(1.5, 0.013, 0.016, 0.4, 0.035) |
| 12 | +double = DoubleUTube(1.5, 0.013, 0.016, 0.4, 0.035) |
| 13 | + |
| 14 | +meg = TemperatureDependentFluidData('MEG', 26, mass_percentage=False).create_constant(0) |
| 15 | +mpg = TemperatureDependentFluidData('MPG', 30, mass_percentage=False).create_constant(0) |
| 16 | +kilfrostgeo = TemperatureDependentFluidData('Kilfrost GEO', 30, mass_percentage=False).create_constant(0) |
| 17 | +kilfrostgeoplus = TemperatureDependentFluidData('Kilfrost GEO', 33, mass_percentage=False).create_constant(0) |
| 18 | + |
| 19 | +flow_range = np.arange(0.1, 1.5, 0.01) |
| 20 | + |
| 21 | +for jdx, pipe in enumerate((single, double)): |
| 22 | + dp_meg = np.zeros(len(flow_range)) |
| 23 | + dp_mpg = np.zeros(len(flow_range)) |
| 24 | + dp_kilfrost = np.zeros(len(flow_range)) |
| 25 | + dp_kilfrostplus = np.zeros(len(flow_range)) |
| 26 | + rb_meg = np.zeros(len(flow_range)) |
| 27 | + rb_mpg = np.zeros(len(flow_range)) |
| 28 | + rb_kilfrost = np.zeros(len(flow_range)) |
| 29 | + rb_kilfrostplus = np.zeros(len(flow_range)) |
| 30 | + |
| 31 | + for idx, flow in enumerate(flow_range): |
| 32 | + borehole_meg = Borehole(meg, pipe, ConstantFlowRate(vfr=flow)) |
| 33 | + borehole_mpg = Borehole(mpg, pipe, ConstantFlowRate(vfr=flow)) |
| 34 | + borehole_kilfrost = Borehole(kilfrostgeo, pipe, ConstantFlowRate(vfr=flow)) |
| 35 | + borehole_kilfrostplus = Borehole(kilfrostgeoplus, pipe, ConstantFlowRate(vfr=flow)) |
| 36 | + |
| 37 | + dp_meg[idx] = borehole_meg.pipe_data.pressure_drop(borehole_meg.fluid_data, borehole_meg.flow_data, 150) |
| 38 | + dp_mpg[idx] = borehole_mpg.pipe_data.pressure_drop(borehole_mpg.fluid_data, borehole_mpg.flow_data, 150) |
| 39 | + dp_kilfrost[idx] = borehole_kilfrost.pipe_data.pressure_drop(borehole_kilfrost.fluid_data, |
| 40 | + borehole_kilfrost.flow_data, 150) |
| 41 | + dp_kilfrostplus[idx] = borehole_kilfrostplus.pipe_data.pressure_drop(borehole_kilfrostplus.fluid_data, |
| 42 | + borehole_kilfrostplus.flow_data, 150) |
| 43 | + |
| 44 | + rb_meg[idx] = borehole_meg.calculate_Rb(150, 1, 0.075, 2) |
| 45 | + rb_mpg[idx] = borehole_mpg.calculate_Rb(150, 1, 0.075, 2) |
| 46 | + rb_kilfrost[idx] = borehole_kilfrost.calculate_Rb(150, 1, 0.075, 2) |
| 47 | + rb_kilfrostplus[idx] = borehole_kilfrostplus.calculate_Rb(150, 1, 0.075, 2) |
| 48 | + |
| 49 | + plt.figure() |
| 50 | + plt.plot(flow_range, dp_meg, label="MEG 26 v/v%") |
| 51 | + plt.plot(flow_range, dp_mpg, label="MPG 30 v/v%") |
| 52 | + plt.plot(flow_range, dp_kilfrost, label="Kilfrost GEO 30 v/v%") |
| 53 | + plt.plot(flow_range, dp_kilfrostplus, label="Kilfrost GEO Plus 33 v/v%") |
| 54 | + |
| 55 | + plt.title(f'Pressure drop for a borehole of 150m deep with a {("single", "double")[jdx]} DN32') |
| 56 | + plt.ylabel('Pressure drop [kPa]') |
| 57 | + plt.xlabel('Volume flow [l/s]') |
| 58 | + plt.legend() |
| 59 | + plt.figure() |
| 60 | + |
| 61 | + plt.plot(flow_range, rb_meg, label="MEG 26 v/v%") |
| 62 | + plt.plot(flow_range, rb_mpg, label="MPG 30 v/v%") |
| 63 | + plt.plot(flow_range, rb_kilfrost, label="Kilfrost GEO 30 v/v%") |
| 64 | + plt.plot(flow_range, rb_kilfrostplus, label="Kilfrost GEO Plus 33 v/v%") |
| 65 | + |
| 66 | + plt.title(f'Borehole thermal resistance for a borehole of 150m deep with a {("single", "double")[jdx]} DN32') |
| 67 | + plt.ylabel('Effective borehole thermal resistance [mK/W]') |
| 68 | + plt.xlabel('Volume flow [l/s]') |
| 69 | + plt.legend() |
| 70 | + plt.show() |
0 commit comments