-
Notifications
You must be signed in to change notification settings - Fork 298
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
OMEdit does not render thermal connections in MSL models correctly #8210
Comments
Also confirmed to not work correctly on the Windows version of OMEdit. |
I get error messages that I guess might be causing the issue:
These errors comes from OMEdit and not OMC though, but it might be that the issue is in the API. I think @adeas31 will need to look into why OMEdit can't find the connections, and then I can try to help with the API if needed. |
LGTM. @adeas31, please have a look at your earliest convenience. |
I have no rights to reopen the ticket but can tell that the hack in #8237 did not fix it:
|
This is same as #8086. There are connections to |
As I understand, the latest issue reported by @dietmarw has nothing to do with the visibility of conditional connector. @perost, the problem here is the replaceable internalThermalPort hierarchical connector, which is redeclared to be of type I checked the
so apparently OMedit is getting the required information. There are no other instances of the string @adeas31, can you please have a look at what happens when rendering the diagram of Thanks! |
I don't think so. The only connects that fail are the ones to sub-connectors that are defined in the redeclared connector. The other ones work fine. Really looks like a front-end issue. Probably the OF is still used for some API call, and the NF should be used instead. |
I think |
For that to work we'd have to change |
I agree, there's no point spending time on a hack that will be very short-lived. @dietmarw, we will overhaul this mechanism completely next year, within a cooperation with LBL. Please follow #2081 for more details and to see the progress. |
This also occurs when opening in OMEdit (from OpenModelica 1.20.0~dev-336-g8a791ee) the model The error message of OMEdit is
and it looks like the underlying reason is that OMEdit does not resolve the replaced instance within IBPSA.Fluid.Humidifiers;
model Humidifier_u
"Ideal humidifier or dehumidifier with prescribed water mass flow rate addition or subtraction"
extends IBPSA.Fluid.Interfaces.TwoPortHeatMassExchanger(
redeclare replaceable package Medium =
Modelica.Media.Interfaces.PartialCondensingGases,
redeclare final IBPSA.Fluid.MixingVolumes.MixingVolumeMoistAir vol(
final prescribedHeatFlowRate=true));
... |
Description
Looking at
Modelica.Magnetic.QuasiStatic.FundamentalWave.BasicMachines.SynchronousMachines.*
models there are thermal connectors missing in the rendering but present in code and annotation.It looks lilke only the thermal connectors of the base class
Modelica.Magnetic.QuasiStatic.FundamentalWave.BaseClasses.Machine
are shown.Steps to Reproduce
Open
Modelica.Magnetic.QuasiStatic.FundamentalWave.BasicMachines.SynchronousMachines.SM_ElectricalExcited
in the diagram view of OMEdit.Expected Behaviour
Here a screenshot from Dymola how the diagram should get rendered including all thermal connections:
Actual Behaviour
Here a screenshot from OMEdit (Connected to OpenModelica 1.19.0~dev-401-gaef8258)
Version and OS
The text was updated successfully, but these errors were encountered: