Issue4483 temp var fluid prop borefield - #4672
Conversation
… the transition region
…eertens/modelica-buildings into issue4655_NusseltCorrelationUpdate
…men in vertical part of borefield
…e based on m flow)
… include new churchillfrictionfactorRe2 function, including validations models and mos scripts
…of PressureDropCircularPipe model
Note from @Vbraciszewski
Update@Vbraciszewski Thanks for testing and for the feedback. You are right: the separate What changed
New usageThe fluid is defined only in the medium declaration, for example: redeclare package Medium =
Buildings.Media.Antifreeze.PropyleneGlycolWater(
property_T=293.15,
X_a=0.40)The modeling options are set on the borefield instance: borFie(
use_DarcyPressureDrop=true,
use_TDepPressureDrop=true,
use_TDepRConv=true)
Supported mediaFor temperature-dependent pressure drop and convection resistance, the current implementation supports:
So it is not limited to propylene glycol anymore. It also supports ethylene glycol/water. All valid If In short: the three old |
|
@LoneMeertens - thanks for making the change!
I pulled the latest, and did not see booleans in UI under advanced tab or in the config record. Oddly, I see them in the PartialBorefield base class code layer but not the UI. I think it's due to a formatting issue in the annotation lines (see line 66). If you remove the line breaks, they should appear correctly. Snips of current models showing booleans missing: |
|
Hi @Vbraciszewski, I double-checked whether the changes were correctly merged into Could you let me know which is the latest commit you have pulled? That might help us figure out where the discrepancy is coming from.
|
|
Hi @LoneMeertens ,
To confirm, it's the latest available commit ID: e222898 from the MBL_Dev branch (https://github.com/LoneMeertens/modelica-buildings/tree/MBL_Dev)
The screen caps I provided are direct from that Commit, do you see the same issue in code layer regarding annotation?
Perhaps it is corrected in latest PR branch, could you merge latest PR branch with MBL DEV?
|
|
Hi Victor,
I currently don’t have access to my laptop. However, the screenshots I shared above were from the models in the commit you mentioned, and I also pulled the MBL_Dev branch to check.
The current PR branch is more advanced, as I have already started working on the horizontal piping. Normally, the latest MBL_Dev branch should include these parameters in the Advanced tab of the borefield model.
Could you check one of the examples on your side and see if the parameters appear there?
Thanks,
Lone
…________________________________
Van: Vbraciszewski ***@***.***>
Verzonden: maandag 10 augustus 2026 20:16
Aan: lbl-srg/modelica-buildings ***@***.***>
CC: Lone Meertens ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [lbl-srg/modelica-buildings] Issue4483 temp var fluid prop borefield (PR #4672)
[https://avatars.githubusercontent.com/u/70975694?s=20&v=4]Vbraciszewski left a comment (lbl-srg/modelica-buildings#4672)<#4672 (comment)>
Hi @LoneMeertens ,
To confirm, it's the latest available commit ID: e222898 from the MBL_Dev branch (https://github.com/LoneMeertens/modelica-buildings/tree/MBL_Dev)
The screen caps I provided are direct from that Commit, do you see the same issue in code layer regarding annotation?
Perhaps it is corrected in latest PR branch, could you merge latest PR branch with MBL DEV?
—
Reply to this email directly, view it on GitHub<#4672?email_source=notifications&email_token=A3TBQQ332BHYR66ORFH53E35JIGONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRSHA2TQNBXG442M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5228584779>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A3TBQQ6BWM6N3OQGMVWTQSL5JIGONAVCNFSNUABDKJSXA33TNF2G64TZHM4DKMZYHA4DSO2JONZXKZJ3GQ4TSNRTGAZDONZYUF3AE>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/A3TBQQZF2EZWEY4MZ6PM6K35JIGONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRSHA2TQNBXG442M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android<https://github.com/notifications/mobile/android/A3TBQQZTO7YFIK43AG3Z5ED5JIGONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRSHA2TQNBXG442M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#4672?email_source=notifications\u0026email_token=A3TBQQ32CKNV23GEBVDBNED5JIGONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRSHA2TQNBXG442M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJK3HNVQWS3C7MNWGSY3L#issuecomment-5228584779", "url": "#4672?email_source=notifications\u0026email_token=A3TBQQ32CKNV23GEBVDBNED5JIGONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRSHA2TQNBXG442M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJK3HNVQWS3C7MNWGSY3L#issuecomment-5228584779", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
|
I just switched to PR development branch to check. The GUI issue is resolved in this branch: Solution: Merge the PR dev branch with MBL_Dev. We can take a look tomorrow. |
|
@LoneMeertens - after additional testing, to reduce parameterization decisions for users, I think the 3 booleans could be reduced to 2: Keep "Use_Darcy" - toggles new major loss PD calc Then combine the 2 T_dep options into single boolean since I could not think of a case (outside of research) in which user would want to toggle just one of the two booleans. Could combine the display annotation for the two as well that explain the use of local medium state and impact on Darcy-Weisbach pressure drop and pipe convection resistance. |
…of replaceable res component
…based on real geometry of pipe
…ntal piping example





This PR continues the work started for temperature-dependent fluid properties in borefield models.
It addresses and combines the work from the following issues:
The implementation in this branch was built on top of the work done for #4656, which already incorporated the changes from #4655. Therefore, this PR includes the functionality from the earlier PR #4660 as well.
This PR is intended to replace #4660.
Main additions included here:
use_TDepRConv;use_DarcyPressureDrop;use_TDepPressureDrop;fluidProperties_T;I would appreciate feedback on the added and updated example models before generating the final reference results.