Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

HelmholtzMedia library

HelmholtzMedia library

Hello,

I have written the library HelmholtzMedia (using Dymola) and published it on github:
https://github.com/thorade/HelmholtzMedia
I am currently trying to make it work with OpenModelica, but I am having some trouble.
What I have done so far:
I created an issue on the github tracker:
https://github.com/thorade/HelmholtzMedia/issues/21
I cleaned the code to remove all Dymola warning in pedantic mode.
I tried to follow the advice given on
https://trac.openmodelica.org/OpenModel … tLibraries
but I am still getting some errors like

Code:

Variable xy.z not found in scope z.y.x

To reproduce the error message, download the latest master.zip from
https://github.com/thorade/HelmholtzMed … master.zip
and either check the model

Code:

HelmholtzMedia.HelmholtzFluids.Helium

or try to simulate the model

Code:

HelmholtzMedia.Examples.Validation.CheckDerivativesHelium

Problem is: I don't understand the error message, because the variable seems to be there!?
It is declared in

Code:

HelmholtzMedia.Interface.PartialHelmholtzMedium

Any help appreciated. I guess I am missing something obvious here, but I need help getting started.

Regards,
Matthis

Re: HelmholtzMedia library

Probably OpenModelica compiler acting up and missing some modifiers or redeclares someplace.
I will have a quick look later this week.

Cheers,
Adrian Pop/

Re: HelmholtzMedia library

Thank you Adrian!
If there is anything that I can do to help, please let me know.

Re: HelmholtzMedia library

Related issue in the OpenModelica Trac:
https://trac.openmodelica.org/OpenModelica/ticket/3089

Re: HelmholtzMedia library

Re: HelmholtzMedia library

Further related issue in OpenModelica Trac:
https://trac.openmodelica.org/OpenModelica/ticket/3674

Re: HelmholtzMedia library

I am planning to choose a base media library for my model, I am interested in this library, but I am not sure what the difference is between HelmholtzMedia and Modelica.Media, could you give me some clue about it?

Re: HelmholtzMedia library

I replied on github:
https://github.com/thorade/HelmholtzMedia/issues/41

For the original topic of this thread, please also see this github ticket:
https://github.com/thorade/HelmholtzMedia/issues/39

There are 0 guests and 0 other users also viewing this topic