Comments (11)
The latest release of ExternalMedia helped with this problem, but there are still a few things that do not work with REFPROP. Sorry.
from externalmedia.
from externalmedia.
I have a similar problem when using Dymola 2022x.
I tested both the master branch with Modelica 3.3.1 as well as v4-dev with Modelica 4.0.0 and could run
Test.CO2.TestStatesSupercritical sucessfully with a compiled STATIC Library of External Media (made with cmake and VS2019).
However, when I change the substance name in
Examples.CO2CoolProp to
substanceNames = {"REFPROP-CO2"}
I get the following error in both cases:
calc_first_saturation_deriv is not implemented for this backend
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).
from externalmedia.
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.
from externalmedia.
I had the same problem.
from externalmedia.
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.
https://github.com/shjiang/ThermoCycle-ExternalMedia
I hope that your question is solved @patrick-fourspring-nnl, as I have made several tests.
from externalmedia.
@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.
from externalmedia.
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;
from externalmedia.
from externalmedia.
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:
Error: The following error was detected at time: 0
ExternalMedia error: calc_first_saturation_deriv is not implemented for this backend
The stack of functions is:
ExternalMedia.Examples.CO2CoolPropRefProp.setSat_T_Unique32
ExternalMedia.Examples.CO2CoolPropRefProp.setSat_T_Unique32(T2)
from externalmedia.
That finding has also been reported here: CoolProp/CoolProp#2013
from externalmedia.
Related Issues (20)
- Incompressible package runs in OpenModelica but not Dymola
- Model fails to execute when using two different fluids
- Model fails to run when using Modelica.Fluid.Sensors.Temperature
- Call ExternalMedia from OMPython HOT 1
- External function could not be found in any of the given shared libraries HOT 1
- External functions in ExternalMedia should be explicitly declared as pure
- Adding new fluids to CoolProp and use it in Modelica HOT 3
- dsmodel.c(77): fatal error C1083: externalmedialib.h: No such file or directory HOT 1
- MinGW compilation error for Dymola model using ExternalMedia
- Selection of different state variables (ph, pt, dT) for a CoolProp 2-phase medium HOT 1
- Cannot compute arbitrary partial derivatives with function `partialDeriv_state` HOT 2
- Wrong version of cmake required to compile the library HOT 1
- Restructuring of the repository HOT 4
- build error using cmake on windows HOT 1
- State functions do not seem to work properly HOT 6
- Compressible mixture support? HOT 2
- Custom fluid property support
- Incompressible CoolProp tests do not compile HOT 3
- Remove experiment annotation from partial models
- how to use fliudprop in external Media?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from externalmedia.