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

Connector unit when exporting FMU #2255

Open
larsviktorlarsson opened this issue Feb 18, 2025 · 0 comments
Open

Connector unit when exporting FMU #2255

larsviktorlarsson opened this issue Feb 18, 2025 · 0 comments

Comments

@larsviktorlarsson
Copy link
Contributor

When one exports an FMU and selects quantity, the unit in the exported FMU is automatically set to the SI unit value, even if the unit is changed with the drop down menu under "default Value".

I guess this is tricky to solve, as I know Hopsan always use SI units in calculations and that unit scaling is used in the plots only.

However, in the case where the FMU is connected to another FMU with non-SI unit, it should be possible to set the unit to a non-SI unit.

E.g:

The user selects an output and chooses "Pressure" as quantity. The unit "bar" is selected in the drop-down menu at "default value". "bar" is then written as "unit" attribute of the output in the modelDescription file of the exported FMU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant