Skip to content

Adjust the data exchange functions in OGS-TESPy pipeline network interface for BHEHeatTransport process

Shuang Chen requested to merge ShuangChen88/ogs:BHE_PNW into master

This PR aims to adjust the data exchange functions during the OGS-TESPy coupling calculation for BHE array pipeline network. In the previous code, the hydraulic results and thermal results within the network are separately calculated by TESPy and transferred to OGS for use. However, both the steady states hydraulic and thermal results within the entire network are obtained by TESPy within once calculation. It means in the previous code the double running of TESPy code for calculating the hydraulic and thermal results is duplicated. Therefore in this PR, the previous hydraulic and thermal functions are integrated into one function for data exchanging.

Main change descriptions in this PR are listed as following:

  1. The TESPy hydraulic and thermal solver functions are integrated into one tespy solver function in the BHEHeatTransport process.
  2. The python interface script structure in the BHE array benchmark is accordingly adjusted. The results of the benchmark has been checked.

Merge request reports