-
Notifications
You must be signed in to change notification settings - Fork 35
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
Using ExternalMedia to access RefProp via CoolProp #48
Comments
The latest release of ExternalMedia helped with this problem, but there are still a few things that do not work with REFPROP. Sorry. |
I have a similar problem when using Dymola 2022x. I get the following error in both cases: I have installed RefProp 10 on my computer under C:/program files/REFPROP. (I successfully used this REFPROP installation with older external media version under Dymola 2019). |
We are currently working to solve several issues with the dynamic/shared library, see #50. As soon as that thing is stabilized, we can get back to this issue. |
I had the same problem. |
I have made some changes on the ExternalMedia library, and it works now for me, with MSL4.0, vs 2019, and dymola 2023. The ThermoCycle library works as well. I have placed the codes with the below link. Hopes it helps. |
@patrick-fourspring-nnl we have now fixed a lot of issues with ExternalMedia, and we're going to release 3.3.2 and 4.0.0 anytime soon. I'm not sure about the REFPROP interface, because I don't have it installed on my PC so I can't test that. |
I tested today, with the release v4.0.0 and RefProp 10, and below code works for me on Windows 11. package Medium
extends ExternalMedia.Media.CoolPropMedium(
mediumName = "REFPROP::Pentane",
substanceNames = {"n-Pentane"},
inputChoice=ExternalMedia.Common.InputChoice.ph);
end Medium; |
Thanks Matthis.
Patrick
From: Matthis Thorade ***@***.***>
Sent: Thursday, November 2, 2023 4:14 AM
To: modelica-3rdparty/ExternalMedia ***@***.***>
Cc: Fourspring, Patrick (Contractor) ***@***.***>; Mention ***@***.***>
Subject: [EXTERNAL SENDER] Re: [modelica-3rdparty/ExternalMedia] Using ExternalMedia to access RefProp via CoolProp (Issue #48)
I tested today, with the release v4.0.0 and RefProp 10, and below code works for me on Windows 11.
package Medium
extends ExternalMedia.Media.CoolPropMedium(
mediumName = "REFPROP::Pentane",
substanceNames = {"n-Pentane"},
inputChoice=ExternalMedia.Common.InputChoice.ph);
end Medium;
—
Reply to this email directly, view it on GitHub<https://urldefense.us/v3/__https:/github.com/modelica-3rdparty/ExternalMedia/issues/48*issuecomment-1790258634__;Iw!!DpXkFSQVhDe0Sg!PZpnFr93AbPfa0wg5W0swcKUyMj14OgqfhDDg3Ppn22qNNbhx0nCM1HuYHeKcF6HRh9fIBj_Gu5JypN0iNqcdqFFdi3TCt31-_c$>, or unsubscribe<https://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AUCT66UL7C5EDHOSUB7TU4LYCNI57AVCNFSM5KVEQR32U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZGAZDKOBWGM2A__;!!DpXkFSQVhDe0Sg!PZpnFr93AbPfa0wg5W0swcKUyMj14OgqfhDDg3Ppn22qNNbhx0nCM1HuYHeKcF6HRh9fIBj_Gu5JypN0iNqcdqFFdi3T72KTDIg$>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
I tested again today, and this is the new model: package Medium
extends ExternalMedia.Media.CoolPropMedium(
mediumName = "Pentane any string can go here",
substanceNames = {"REFPROP::Pentane"},
inputChoice=ExternalMedia.Common.InputChoice.ph);
end Medium; in mediumName, you can put whatever descriptive string you like, but substanceName is where you would have to put the REFPROP:: thing, and if you put it there, it gives an error message:
|
That finding has also been reported here: CoolProp/CoolProp#2013 |
We welcome any suggestions for the following issue using External Media (v3.3.0) within OpenModelica (runing Modelica v3.2.3):
The following Modelica code works:
model CoolPropTest
equation
end CoolPropTest;
Using the same code to access RefProp does not work
model CoolPropTest
equation
end CoolPropTest;
error Code:
calc_transport has the value of 1
TTSE is off
enable_TTSE has the value of 0
BICUBIC is off
enable_BICUBIC has the value of 0
enable_EXTTP has the value of 1
twophase_derivsmoothing_xend has the value of 0.0
rho_smoothing_xend has the value of 0.0
debug has the value of 0
This backend does not implement calc_specify_phasefunction
simulation terminated by an assertation at initialization
Simulation process failed. Exited with code -1.
Thanks,
Patrick
The text was updated successfully, but these errors were encountered: