Design Manager
Full documentation of the GHEManager class
Source code in ghedesigner/manager.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 |
|
find_design(throw=True)
Calls design methods to execute sizing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 |
|
prepare_results(project_name, note, author, iteration_name)
Prepares the output results.
Source code in ghedesigner/manager.py
668 669 670 671 672 673 674 675 676 677 678 679 680 |
|
set_borehole(height, buried_depth, diameter)
Sets the borehole instance
Parameters:
Name | Type | Description | Default |
---|---|---|---|
height
|
float
|
height, or active length, of the borehole, in m. |
required |
buried_depth
|
float
|
depth of top of borehole below the ground surface, in m. |
required |
diameter
|
float
|
diameter of the borehole, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
304 305 306 307 308 309 310 311 312 313 314 315 316 |
|
set_coaxial_pipe(inner_pipe_d_in, inner_pipe_d_out, outer_pipe_d_in, outer_pipe_d_out, roughness, conductivity_inner, conductivity_outer, rho_cp)
Sets the pipe instance for a coaxial pipe.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inner_pipe_d_in
|
float
|
inner pipe inner diameter, in m. |
required |
inner_pipe_d_out
|
float
|
inner pipe outer diameter, in m. |
required |
outer_pipe_d_in
|
float
|
outer pipe inner diameter, in m. |
required |
outer_pipe_d_out
|
float
|
outer pipe outer diameter, in m. |
required |
roughness
|
float
|
pipe surface roughness, in m. |
required |
conductivity_inner
|
float
|
thermal conductivity of inner pipe, in W/m-K. |
required |
conductivity_outer
|
float
|
thermal conductivity of outer pipe, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
|
set_design(flow_rate, flow_type_str, throw=True)
Set the design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flow_rate
|
float
|
design flow rate, in lps. |
required |
flow_type_str
|
str
|
flow type string input. |
required |
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
|
set_design_geometry_type(design_geometry_str, throw=True)
Sets the design type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
design_geometry_str
|
str
|
design geometry input string. |
required |
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
set_double_u_tube_pipe_parallel(inner_diameter, outer_diameter, shank_spacing, roughness, conductivity, rho_cp)
Sets the pipe instance for a double u-tube pipe in a parallel configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inner_diameter
|
float
|
inner pipe diameter, in m. |
required |
outer_diameter
|
float
|
outer pipe diameter, in m. |
required |
shank_spacing
|
float
|
shank spacing between the u-tube legs, in m, as measured edge-to-edge. |
required |
roughness
|
float
|
pipe surface roughness, in m. |
required |
conductivity
|
float
|
thermal conductivity, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
|
set_double_u_tube_pipe_series(inner_diameter, outer_diameter, shank_spacing, roughness, conductivity, rho_cp)
Sets the pipe instance for a double u-tube pipe in a series configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inner_diameter
|
float
|
inner pipe diameter, in m. |
required |
outer_diameter
|
float
|
outer pipe diameter, in m. |
required |
shank_spacing
|
float
|
shank spacing between the u-tube legs, in m, as measured edge-to-edge. |
required |
roughness
|
float
|
pipe surface roughness, in m. |
required |
conductivity
|
float
|
thermal conductivity, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
|
set_fluid(fluid_name='Water', concentration_percent=0.0, temperature=20.0, throw=True)
Sets the fluid instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fluid_name
|
str
|
fluid name input string. |
'Water'
|
concentration_percent
|
float
|
concentration percent of antifreeze mixture. |
0.0
|
temperature
|
float
|
design fluid temperature, in C. |
20.0
|
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
set_geometry_constraints_bi_rectangle(length, width, b_min, b_max_x, b_max_y)
Sets the geometry constraints for the bi-rectangle design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length
|
float
|
side length of the sizing domain, in m. |
required |
width
|
float
|
side width of the sizing domain, in m. |
required |
b_min
|
float
|
minimum borehole-to-borehole spacing, in m. |
required |
b_max_x
|
float
|
maximum borehole-to-borehole spacing in the x-direction, in m. |
required |
b_max_y
|
float
|
maximum borehole-to-borehole spacing in the y-direction, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
|
set_geometry_constraints_bi_rectangle_constrained(b_min, b_max_x, b_max_y, property_boundary, no_go_boundaries)
Sets the geometry constraints for the bi-rectangle constrained design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
b_min
|
float
|
minimum borehole-to-borehole spacing, in m. |
required |
b_max_x
|
float
|
maximum borehole-to-borehole spacing in the x-direction, in m. |
required |
b_max_y
|
float
|
maximum borehole-to-borehole spacing in the y-direction, in m. |
required |
property_boundary
|
list
|
property boundary points, in m. |
required |
no_go_boundaries
|
list
|
boundary points for no-go zones, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
|
set_geometry_constraints_bi_zoned_rectangle(length, width, b_min, b_max_x, b_max_y)
Sets the geometry constraints for the bi-zoned rectangle design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length
|
float
|
side length of the sizing domain, in m. |
required |
width
|
float
|
side width of the sizing domain, in m. |
required |
b_min
|
float
|
minimum borehole-to-borehole spacing, in m. |
required |
b_max_x
|
float
|
maximum borehole-to-borehole spacing in the x-direction, in m. |
required |
b_max_y
|
float
|
maximum borehole-to-borehole spacing in the y-direction, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
|
set_geometry_constraints_near_square(b, length)
Sets the geometry constraints for the near-square design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
b
|
float
|
borehole-to-borehole spacing, in m. |
required |
length
|
float
|
side length of the sizing domain, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
359 360 361 362 363 364 365 366 367 368 369 |
|
set_geometry_constraints_rectangle(length, width, b_min, b_max)
Sets the geometry constraints for the rectangle design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length
|
float
|
side length of the sizing domain, in m. |
required |
width
|
float
|
side width of the sizing domain, in m. |
required |
b_min
|
float
|
minimum borehole-to-borehole spacing, in m. |
required |
b_max
|
float
|
maximum borehole-to-borehole spacing, in m. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
|
set_geometry_constraints_rowwise(perimeter_spacing_ratio, max_spacing, min_spacing, spacing_step, max_rotation, min_rotation, rotate_step, property_boundary, no_go_boundaries)
Sets the geometry constraints for the row-wise design method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
perimeter_spacing_ratio
|
float | None
|
the ratio between the minimum spacing between boreholes placed along the property and no-go zones and the standard borehole-to-borehole spacing used for internal boreholes. |
required |
max_spacing
|
float
|
the largest minimum spacing that will be used to generate a RowWise field. |
required |
min_spacing
|
float
|
the smallest minimum spacing that will be used to generate a RowWise field. |
required |
spacing_step
|
float
|
the distance in spacing from the design found in the first part of first search to exhaustively check in the second part. |
required |
max_rotation
|
float
|
the maximum rotation of the rows of each field relative to horizontal that will be used in the search. |
required |
min_rotation
|
float
|
the minimum rotation of the rows of each field relative to horizontal that will be used in the search. |
required |
rotate_step
|
float
|
step size for field rotation search. |
required |
property_boundary
|
list
|
property boundary points. |
required |
no_go_boundaries
|
list
|
boundary points for no-go zones. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
|
set_ground_loads_from_hourly_list(hourly_ground_loads)
Sets the ground loads based on a list input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hourly_ground_loads
|
list[float]
|
annual, hourly ground loads, in W. positive values indicate heat extraction, negative values indicate heat rejection. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
346 347 348 349 350 351 352 353 354 355 356 357 |
|
set_grout(conductivity, rho_cp)
Sets the grout instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conductivity
|
float
|
thermal conductivity, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
154 155 156 157 158 159 160 161 162 163 164 |
|
set_pipe_type(bh_pipe_str, throw=True)
Sets the borehole pipe type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bh_pipe_str
|
str
|
pipe type input string. |
required |
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
set_simulation_parameters(num_months, max_eft, min_eft, max_height, min_height, max_boreholes=None, continue_if_design_unmet=False)
Sets the simulation parameters
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_months
|
int
|
number of months in simulation. |
required |
max_eft
|
float
|
maximum heat pump entering fluid temperature, in C. |
required |
min_eft
|
float
|
minimum heat pump entering fluid temperature, in C. |
required |
max_height
|
float
|
maximum height of borehole, in m. |
required |
min_height
|
float
|
minimum height of borehole, in m. |
required |
max_boreholes
|
int | None
|
maximum boreholes in search algorithms. |
None
|
continue_if_design_unmet
|
bool
|
continues to process if design unmet. |
False
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
|
set_single_u_tube_pipe(inner_diameter, outer_diameter, shank_spacing, roughness, conductivity, rho_cp)
Sets the pipe instance for a single u-tube pipe.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inner_diameter
|
float
|
inner pipe diameter, in m. |
required |
outer_diameter
|
float
|
outer pipe diameter, in m. |
required |
shank_spacing
|
float
|
shank spacing between the u-tube legs, in m, as measured edge-to-edge. |
required |
roughness
|
float
|
pipe surface roughness, in m. |
required |
conductivity
|
float
|
thermal conductivity, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
set_soil(conductivity, rho_cp, undisturbed_temp)
Sets the soil instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conductivity
|
float
|
thermal conductivity, in W/m-K. |
required |
rho_cp
|
float
|
volumetric heat capacity, in J/m^3-K. |
required |
undisturbed_temp
|
float
|
undisturbed soil temperature, in C. |
required |
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
166 167 168 169 170 171 172 173 174 175 176 177 |
|
write_input_file(output_file_path, throw=True)
Writes an input file based on current simulation configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_file_path
|
Path
|
output directory to write input file. |
required |
throw
|
bool
|
By default, function will raise an exception on error, override to false to not raise exception |
True
|
Returns:
Type | Description |
---|---|
int
|
Zero if successful, nonzero if failure |
Source code in ghedesigner/manager.py
691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 |
|
write_output_files(output_directory, output_file_suffix='')
Writes the output files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_directory
|
Path
|
output directory for output files. |
required |
output_file_suffix
|
str
|
adds a string suffix to the output files. |
''
|
Source code in ghedesigner/manager.py
682 683 684 685 686 687 688 689 |
|