Open j-c-cook opened 1 year ago
Current example usage:
import pygfunction as gt
borefield = gt.boreholes.rectangle_field(5, 5, 5, 5, 100, 5, 0.075)
borefield = gt.boreholes.Borefield(borefield)
n = borefield.nBoreholes
H = borefield.H
borehole = gt.boreholes.Borehole(50, 5, 0.075, 70, 70)
borefield.append(borehole)
H = borefield.H
print(H)
borefield.H[0] = 15 # Effects every instance of H (in borefield.H as well)
@MassimoCimmino I've modified your
Borefield
class to utilize property methods that return numpy views of a single private instance of_boreholes
.