-
Notifications
You must be signed in to change notification settings - Fork 21
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
Common interface for all g-function boundary conditions #33
Comments
Since a need for this feature was brought up in #56. There are a few issues that could be addressed here to make the g-function call future-proof. Boundary conditions - Different boundary conditions require different inputs (e.g. The uniform inlet fluid temperature method requires a list of pipes in addition to the list of boreholes). The common interface could be inspired by scipy.optimize.minimize which also has the need for method-dependent inputs. |
As far as future proofing goes; it should be possible to query a function for its inputs. Since everything in Python is an object, the inputs to a function could be successively looped over and pulled from the common interface class (probably by use of P.S. Your "common interface could be inspired by..." link is broken on my end. |
I like your first draft of the common interface. I would suggest that
This interface could easily deal with the different boundary conditions, using the flexible boreholes list or network object as the first parameter. For fluid temperature boundary conditions, I would argue that the A nice feature here would be to add a |
@j-c-cook Is your interface still on any of your branches? |
Yes, I have tried to straighten things out here. The commits associated with reverting the file mod changes (#55 (comment)) was not completely straightforward, so that could cause confusion. I have created a pull request to your master. The only differences between your master and my issue_33 branch (pull request #63) is my initial recommendation for a common g-function interface. I didn't see an issue33 branch of your own for me to pull request to. |
@j-c-cook I created the missing The work plan would be as follows :
|
As for future-proofing for eventual new calculation methods, this can be addressed when they are developed and we have a better idea of what is required. |
With the multiplication of borehole boundary conditions, a centralize function would simplify the use of pygfunction.
The text was updated successfully, but these errors were encountered: