Coder Social home page Coder Social logo

Comments (11)

jowr avatar jowr commented on July 24, 2024

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.

patrick-fourspring-nnl avatar patrick-fourspring-nnl commented on July 24, 2024

from externalmedia.

freundlicherDon avatar freundlicherDon commented on July 24, 2024

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.

casella avatar casella commented on July 24, 2024

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.

shjiang avatar shjiang commented on July 24, 2024

I had the same problem.

from externalmedia.

shjiang avatar shjiang commented on July 24, 2024

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.

casella avatar casella commented on July 24, 2024

@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.

thorade avatar thorade commented on July 24, 2024

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.

patrick-fourspring-nnl avatar patrick-fourspring-nnl commented on July 24, 2024

from externalmedia.

thorade avatar thorade commented on July 24, 2024

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.

thorade avatar thorade commented on July 24, 2024

That finding has also been reported here: CoolProp/CoolProp#2013

from externalmedia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.