-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce segment responses held in memory #85
Comments
Can you take a look at the new implementation in #33 ? I discovered while working on this that the
pygfunction/pygfunction/gfunction.py Lines 1436 to 1443 in 8b5bc09
pygfunction/pygfunction/gfunction.py Line 844 in 8b5bc09
The matrix pygfunction/pygfunction/gfunction.py Lines 867 to 873 in 8b5bc09
|
Really nice discovery about Issue #33 was initially proposed as a An acceptance of pull request #84 will merge this into I'll run I think this issue should be linked to pull request #84 and close upon acceptance. |
If this is to be tied to #84, we can consider adding a Is there a need for this feature? |
I think an optional argument for the precision would be a good feature. The lowest precision with acceptable accuracy could be default. An input will allow for the consequences of accuracy to be more easily tested. |
There is an argument to make to keep the default There is also |
I agree that it makes sense for the default optional |
numpy data types are the subject of NEP40. This may have future repercussions on the |
The segment response matrix h_ij is of size
nq x nq x nt
, wherenq
is the number of sources in the field, andnt
is the number of time steps.Two variants of the segment response matrix h_dt and dh_ij are computed. The factor increment matrix
dh_ij
is used in calculating the borehole wall temperatures based on all previous responses, equation 18 from Cimmino (2018). Theh_dt
matrix sets up the linear interpolation for the current thermal response factor matrix h_ij_dt, and can be seen in equation 18 in Cimmino (2018).With the current methodology here, the segment response matrix
h_ij
is necessary for computing bothh_dt
anddh_ij
. Therefore, it is not directly possible to get around having to hold3 (nq x nq x nt)
segment response factors in memory. With each of the segment responses being double precision (at 16 bytes).Would it be possible to directly compute h_ij_dt and dh_ij[:, :, t] from
h_ij
without computingdh_ij
andh_dt
without losing speed performance?Massimo Cimmino (2018) Fast calculation of the g-functions of geothermal borehole fields using similarities in the evaluation of the finite line source solution, Journal of Building Performance Simulation, 11:6, 655-668.
The text was updated successfully, but these errors were encountered: