# -*- coding: utf-8 -*-
""" Example of definition of a bore field using custom borehole positions.

"""
from __future__ import absolute_import, division, print_function

import pygfunction as gt


def main():
    a = 1


if __name__ == '__main__':
    main()

@@ -210,13 +210,988 @@
     
-a = 1
+# Borehole dimensions%0A    H = 400  # Borehole length (m)%0A    D = 5  # burial depth (m)%0A    r_b = 0.0875  # Borehole radius (m)%0A%0A    # Pipe dimensions%0A    rp_out = 0.0133  # Pipe outer radius (m)%0A    rp_in = 0.0108  # Pipe inner radius (m)%0A    D_s = 0.029445  # Shank spacing (m)%0A%0A    # Single U-tube %5B(x_in, y_in), (x_out, y_out)%5D%0A    pos_single = %5B(-D_s, 0.), (D_s, 0.)%5D%0A%0A    # define a borehole%0A    borehole = gt.boreholes.Borehole(H, D, r_b, x=0., y=0.)%0A%0A    # variables necessary for defining u-tube, but not needed to visualize borehole%0A    k_s = 1%0A    k_g = 1%0A    R_f_ser = 1%0A    R_p = 1%0A%0A    SingleUTube = gt.pipes.SingleUTube(pos_single, rp_in, rp_out,%0A                                       borehole, k_s, k_g, R_f_ser + R_p)%0A%0A    # check the geometry to make sure it is physically possible%0A    SingleUTube._check_geometry()%0A%0A    # create a borehole top view%0A    fig = SingleUTube.visualize_pipes()%0A%0A    # save the figure as a pdf%0A    fig.savefig('borehole-top-view.pdf')
 %0A%0A%0Ai

add the borehole top view plots