-
Notifications
You must be signed in to change notification settings - Fork 84
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
Issue422b borefield reverse and sha #1018
Issue422b borefield reverse and sha #1018
Conversation
@mwetter I could not reproduce the error with I had a look at the error generated by
happens only when calling the c-code I'll push a working version of the code. Notice that my bug fix only solves the problem related to the sha. We can now simulate the model with
@massimo: could you have a look at the latter. If you cannot solve it, it might just mean that we can only simulate a limited number of boreholes. It would be good to know how many :) |
|
@damienpicard : I refactored the function that computes the sha code as it still lead to buffer overflow in one my examples that has 121 boreholes. I committed the change through dd83751 |
@mwetter We tested this out and it works for us. If the number of boreholes becomes too large it runs into the following error:
The Integer buffer size is specified in |
|
You could maybe also implement the overflowing implementations using dedicated C-functions instead of using Modelica code.. But that's a bit overkill imo. |
This example illustrates how to configure rectangular borefields, and it illustrates two bugs that need to be fixed.
Before merging it, set in
Examples.RectangularBorefields
borFie(allowFlowReversal = false)
. Then, the temperature of the borefield goes down instead of up, and the simuation stops after about 4 seconds as the medium gets belong freezing.xBorFie = 100
. This will lead an error during compilation because the string used to compute the sha code is too long.Could you please correct these bugs and configure the model for these settings before merging it.