-
Notifications
You must be signed in to change notification settings - Fork 156
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
DHC Network Compatibility with Plug Flow Pipe #2449
Comments
@khinkelman Thanks. I agree that the vectorized port at the pipe outlet is peculiar and I cannot see which use case it simplifies really, or enables to handle in a numerically efficient way as the documentation states. I would also vote for refactoring |
The model I would argue that the pipe material heat capacity is generally small compared to the water heat capacity, in which case the volume could be eliminated, and then a single port could be used, allowing the replaceable model structure above. This could be achieved by using directly |
@mwetter I would be glad to do that renaming/moving since I am working with the If we move forward with that plan, I'd suggest |
@bravache : I think
|
@mwetter : The new model I created is called In my message above, I was following up on your suggestion to rename |
@bravache : Let's discuss on our coordination call. A possible outline may be
(Please also save as script that uses https://simulationresearch.lbl.gov/modelica/buildingspy/development.html#buildingspy.development.refactor.move_class as we will need to do the same for the IBPSA library.) |
Thanks Michael. Following our discussion, I have submitted an issue on the IBPSA repo, and we can discuss this at the next IBPSA meeting. I am on board with your proposed structure. |
This is now on the master of the Buildings library, and a PR is in progress for the IBPSA library, ibpsa/modelica-ibpsa#1537 |
Hi @AntoineGautier,
Several base models for the distribution networks (within
Buildings.Experimental.DHC.Networks.BaseClasses
) have a replaceable pipe model ofFluid.Interfaces.PartialTwoPortInterface
.When trying to implement
Buildings.Fluid.FixedResistances.PlugFlowPipe
, I received errors relating to the connection with the vectorizedports_b[]
. Here is one example:As pictured below, in
Buildings.Experimental.DHC.Networks.BaseClasses.PartialConnection1Pipe
,pipDis
has a connect statementconnect(pipDis.port_b,junConSup.port_1)
.When replacing the replaceable
pipDis
with a plug flow pipe, the connect statement in the base class is no longer valid and needs to be insteadconnect(pipDis.ports_b[1],junConSup.port_1)
.I wonder if there is a way to revise the base classes to accept pipes with both single and vectorized ports? Alternatively, I wonder why the plug flow pipe has a vectorized downstream port and ask if it would make sense to revise the pipe model to have a single outlet port?
Since you've been developing the distribution network models, I leave this issue to you; but please feel free to ask me for help if there is anything you would like me to do. Thanks!
The text was updated successfully, but these errors were encountered: