You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error in pipes.SingleUTube._continuity_condition_base() causes an error in functions that depend on it. The error, however, only causes errors for nSegments > 1 and segment_ratios that are not symmetric in relation with the borehole mid-length. This limits the impact of the error since there is no known advantage in using a non-symmetric discretization and it would have had to be generated manually by the unfortunate user.
An error in
pipes.SingleUTube._continuity_condition_base()
causes an error in functions that depend on it. The error, however, only causes errors fornSegments > 1
andsegment_ratios
that are not symmetric in relation with the borehole mid-length. This limits the impact of the error since there is no known advantage in using a non-symmetric discretization and it would have had to be generated manually by the unfortunate user.The erroneous code is located here:
pygfunction/pygfunction/pipes.py
Lines 1104 to 1109 in 25afb35
From Hellström (1991), the integrated functions
f_4
andf_5
should be evaluated at (H-z
).This explains why tests are failing in #283. The script shows the error for one of the failing tests.
With symmetric
segment_ratios
(segment_ratios = np.array([0.1, 0.05, 0.30, 0.10, 0.30, 0.05, 0.1])
andT_b = np.array([1., 2., 2., 3., 3., 1., 1.])
):The text was updated successfully, but these errors were encountered: