Import data

 1"""
 2This document is an example on how to import hourly load profiles into GHEtool.
 3It uses the hourly_profile.csv data.
 4"""
 5import pygfunction as gt
 6
 7# import all the relevant functions
 8from GHEtool import *
 9
10# initiate ground data
11data = GroundConstantTemperature(3, 10, 2.4*10**6)
12borefield_gt = gt.boreholes.rectangle_field(10, 12, 6, 6, 110, 1, 0.075)
13
14# initiate borefield
15borefield = Borefield()
16
17# set ground data in borefield
18borefield.set_ground_parameters(data)
19
20# set Rb
21borefield.Rb = 0.12
22
23# set borefield
24borefield.set_borefield(borefield_gt)
25
26# load the hourly profile
27load = HourlyGeothermalLoad()
28load.load_hourly_profile("hourly_profile.csv", header=True, separator=";")
29borefield.load = load
30
31# size the borefield and plot the resulting temperature evolution
32depth = borefield.size(100, L2_sizing=True)
33print(depth)
34borefield.print_temperature_profile()