modelica-3rdparty / ExternalMedia

The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
53 stars 36 forks source link

The problem when using setState_pT funtion to return ThermodynamicState #69

Closed zbb2022hust closed 1 year ago

zbb2022hust commented 1 year ago

Hello, I met some problem when I used funtion to calculate ThermodynamicState. At first, I tried to run a example on MWorks as shown below, but an error came out when translating codes. image image The error means the members of record funtion have different variability. Actually, I don't understand this error. But I tried another example as shown below. The same error occurred but this example could work on OpenModelica. image image I wonder know why this different results came up on different platforms and how to solve this problem. I really need to use ExternalMedia to get refrigerant properities in my model. Thanks!

zbb2022hust commented 1 year ago

By the way, I ran this example in Dymola2023. Error occurred when compiling model.I used VC ++ 14.29 in Dymola and mingw64 in MWorks and OM. image

casella commented 1 year ago

@zbb2022hust everything should be fixed now for Dymola, you can try with the binaries here until we do the official release. Please reopen if you still have issues with Dymola and/or with MWorks.