Definition of a bore field using pre-defined configurationsΒΆ

This example demonstrates the use of the borehole module to define the positions of the boreholes within a bore field using pre-define bore field configurations.

The following script generates rectangular, box-shaped, U-shaped and L-shaped bore fields in a 4 x 3 configuration as well as a circular field of 8 boreholes. Each field is then plotted on a separate figure.

The script is located in: pygfunction/examples/regular_bore_field.py

 1# -*- coding: utf-8 -*-
 2""" Example of definition of a bore field using pre-defined configurations.
 3
 4"""
 5import matplotlib.pyplot as plt
 6
 7import pygfunction as gt
 8
 9
10def main():
11    # -------------------------------------------------------------------------
12    # Parameters
13    # -------------------------------------------------------------------------
14
15    # Borehole dimensions
16    D = 4.0             # Borehole buried depth (m)
17    H = 150.0           # Borehole length (m)
18    r_b = 0.075         # Borehole radius (m)
19    B = 7.5             # Borehole spacing (m)
20    N_1 = 4             # Number of boreholes in the x-direction (columns)
21    N_2 = 3             # Number of boreholes in the y-direction (rows)
22
23    # Circular field
24    N_b = 8     # Number of boreholes
25    R = 5.0     # Distance of the boreholes from the center of the field (m)
26
27    # -------------------------------------------------------------------------
28    # Borehole fields
29    # -------------------------------------------------------------------------
30
31    # Rectangular field of 4 x 3 boreholes
32    rectangle_field = gt.borefield.Borefield.rectangle_field(
33        N_1, N_2, B, B, H, D, r_b)
34
35    # Rectangular field triangular field of 4 x 3 borehole rows
36    staggered_rectangle_field = gt.borefield.Borefield.staggered_rectangle_field(
37        N_1, N_2, B, B, H, D, r_b, False)
38
39    # Dense field triangular field of 4 x 3 borehole rows
40    dense_rectangle_field = gt.borefield.Borefield.dense_rectangle_field(
41        N_1, N_2, B, H, D, r_b, False)
42
43    # Box-shaped field of 4 x 3 boreholes
44    box_shaped_field = gt.borefield.Borefield.box_shaped_field(
45        N_1, N_2, B, B, H, D, r_b)
46
47    # U-shaped field of 4 x 3 boreholes
48    U_shaped_field = gt.borefield.Borefield.U_shaped_field(
49        N_1, N_2, B, B, H, D, r_b)
50
51    # L-shaped field of 4 x 3 boreholes
52    L_shaped_field = gt.borefield.Borefield.L_shaped_field(
53        N_1, N_2, B, B, H, D, r_b)
54
55    # Circular field of 8 boreholes
56    circle_field = gt.borefield.Borefield.circle_field(
57        N_b, R, H, D, r_b)
58
59    # -------------------------------------------------------------------------
60    # Draw bore fields
61    # -------------------------------------------------------------------------
62    for borefield in [
63            rectangle_field, staggered_rectangle_field, dense_rectangle_field,
64            box_shaped_field, U_shaped_field, L_shaped_field, circle_field]:
65        borefield.visualize_field()
66        plt.show()
67
68    return
69
70
71# Main function
72if __name__ == '__main__':
73    main()