Skip to content
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

Non-standard annotation #1426

Closed
maltelenz opened this issue Feb 8, 2023 · 5 comments · Fixed by #1466
Closed

Non-standard annotation #1426

maltelenz opened this issue Feb 8, 2023 · 5 comments · Fixed by #1466
Assignees
Labels

Comments

@maltelenz
Copy link

This seems to be using a non-standard annotation without a vendor prefix, making it invalid Modelica:

radioButtons=true));

There are many more cases spread out across the library.

@FWuellhorst
Copy link
Contributor

This affects 38 models. 10 are already obsolete, 7 will be fixed due to the heat pump move to IBPSA. Remaining models are mostly HOM. However, the current HOM implementation should be using enumerations anyway, in my opinion.
Example:
if calcMethodOut == 1 or calcMethodOut == 2 then
What does this mean?
if calcMethodOut == calcMethodOut.DIN6946 or calcMethodOut == calcMethodOut.ASHRAEFundamentals then
is much clearer to read and understand.
For enumerations, Dymola does not support radio-button. This means using Enums would make the use obsolete.
@larissakuehn @StGoebel @KremerMartin @LauraMaier : As you are among the users of the HOM, are you in favor or against removing the buttons?

The UI would change something like this:
image

Instead of this:
image

@FWuellhorst
Copy link
Contributor

@maltelenz : Is there an option in OM to warn about wrong annotations?

@KremerMartin
Copy link
Contributor

I would be fine with a drop-down menu instead of radioButtons as it is only a visual element. I would also agree with @FWuellhorst to use enumerations for better code readability.

@maltelenz
Copy link
Author

@maltelenz : Is there an option in OM to warn about wrong annotations?

I don't know, I represent Wolfram System Modeler (which currently doesn't have a good general way to find invalid annotations).

@PatrickHenkel1
Copy link
Contributor

PatrickHenkel1 commented Jun 6, 2023

All lot of the radioButtons were used in HOM. This was fixed in issue #1440 . Also the radioButtons in the BoundaryConditions were changed.

Remaining RadioButtons in the following 16 files:

  • D:\phe\Git\AixLib\AixLib\Controls\HeatPump\AntiLegionella.mo

  • D:\phe\Git\AixLib\AixLib\Controls\HeatPump\HPControl.mo

  • D:\phe\Git\AixLib\AixLib\Controls\SetPoints\HeatingCurve.mo


  • D:\phe\Git\AixLib\AixLib\Fluid\HeatExchangers\ActiveWalls\BaseClasses\PanelHeatingSegment.mo

  • D:\phe\Git\AixLib\AixLib\Fluid\HeatExchangers\ActiveWalls\PanelHeating.mo

  • D:\phe\Git\AixLib\AixLib\Fluid\HeatExchangers\EvaporatorCondenserWithCapacity.mo


  • D:\phe\Git\AixLib\AixLib\Systems\HeatPumpSystems\BaseClasses\HPSystemController.mo

  • D:\phe\Git\AixLib\AixLib\Systems\HeatPumpSystems\BaseClasses\PartialHeatPumpSystem.mo

  • D:\phe\Git\AixLib\AixLib\Systems\HeatPumpSystems\HeatPumpSystem.mo


  • D:\phe\Git\AixLib\AixLib\ThermalZones\ReducedOrder\Multizone\BaseClasses\AirFlowRateSplit.mo

  • D:\phe\Git\AixLib\AixLib\ThermalZones\ReducedOrder\Multizone\BaseClasses\AirFlowRateSum.mo

  • D:\phe\Git\AixLib\AixLib\ThermalZones\ReducedOrder\Multizone\BaseClasses\PartialMultizone.mo

  • D:\phe\Git\AixLib\AixLib\ThermalZones\ReducedOrder\ThermalZone\ThermalZone.mo


  • D:\phe\Git\AixLib\AixLib\Utilities\Sources\HeaterCooler\HeaterCoolerPI.mo

  • D:\phe\Git\AixLib\AixLib\Utilities\Sources\HeaterCooler\PartialHeaterCoolerPI.mo

  • D:\phe\Git\AixLib\AixLib\Utilities\Time\DaytimeSwitch.mo

TobiasSpratte added a commit that referenced this issue Jun 6, 2023
changed CalcMethodRadiativeHeatTransfer.mo
PatrickHenkel1 pushed a commit that referenced this issue Jun 6, 2023
Changed CalcMethodConvectiveHeatTransfer.mo, CalcMethodConvectiveHeatTransferInsideSurface.mo, CalcMethodLongwaveRadiationHeatTransfer.mo, SurfaceOrientation.mo
PatrickHenkel1 pushed a commit that referenced this issue Jun 6, 2023
Changed ThermalInsulationRegulation.mo
PatrickHenkel1 pushed a commit that referenced this issue Jun 6, 2023
PatrickHenkel1 pushed a commit that referenced this issue Jun 6, 2023
Changed all radioButtons in HOM
TobiasSpratte added a commit that referenced this issue Jun 6, 2023
…ditions" #1426

change radioButtons to checkBoxes if number of choices equals two.
change radioButtons to enumerations if number of choices is greater than two.
@TobiasSpratte TobiasSpratte linked a pull request Sep 19, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants