-
Notifications
You must be signed in to change notification settings - Fork 36
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
Adding new fluids to CoolProp and use it in Modelica #109
Comments
I believe you maybe failed to recompile Coolprop? So after adding a custom fluid and modifying the json, you need to first recompile Coolprop (I used the python wrapper -> run setup.py file in the \wrappers\Python folder.) (just like a high-level pointer, hope that helps) |
Thank you for your answer. Indeed CoolProp was the problem. In fact, when I had another issue regarding the definition of my medium in Modelica, I forget to add |
According to CoolProp documentation, it is possible to add new fluids to CoolProp library. To do so, it should be
SolutionFLuids.py
to add tables for your new fluiddev/incompressible_liquids/all_incompressibles.py
to regenrate the JSON files with the fitted parametersI've added my data to
SolutionFLuids.py
, regenerate the JSON files (I can find the new JSON file KOH.json inExternalMedia/build/CoolProp.sources/json/
folder). To recompile, I usedcmake --build build --config Release --target install
mentioned in ExternalMedia documenation(which worked flawlessly for the first installation).However, when I define my medium in Modelica with:
and run a simple model such as (I defined my saturation pressure in the CoolProp's data):
It runs into translation errors both with OpenModelica 1.23.1 and Dymola23x. (Linux Scibian11 on both):
OpenModelica errors:
Dymola errors:
Thank you very much
Baptiste
The text was updated successfully, but these errors were encountered: