Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Mixtures in Modelica #5

Open
jowr opened this issue Jul 16, 2015 · 9 comments
Open

Mixtures in Modelica #5

jowr opened this issue Jul 16, 2015 · 9 comments

Comments

@jowr
Copy link
Member

jowr commented Jul 16, 2015

CoolProp/CoolProp#263
Create a new interface on the Modelica level that allows for both two-phase conditions and mixtures. It might be possible to reuse some code from https://github.com/jowr/REFPROP2Modelica

@thorade
Copy link

thorade commented Aug 10, 2015

Or wait for the new Media interface presentation at the Modelica 2015 conference.

Related:
https://trac.modelica.org/Modelica/ticket/1419
http://cordis.europa.eu/project/rcn/109104_en.html

@thorade
Copy link

thorade commented Sep 14, 2015

The following link should work within the next couple of days:
http://dx.doi.org/10.3384/ecp15118653

Until then, read pages 653-662 from this pdf:
https://www.modelica.org/events/modelica2015/ProceedingsOfThe11thInternationalModelicaConference.pdf

@jowr
Copy link
Member Author

jowr commented Sep 14, 2015

Thanks. It is a little sad that they mention the insufficient performance of external libraries using REFPROP as an example. The main drawbacks are summarised as

  1. Error handling when calling properties outside their validity region.
  2. Limited support for partial derivatives.
  3. Lack of support to speed up iterative calculation by providing good start values.
  4. No access to the used tolerances, which may cause numerical problems when creating numerical derivatives.
  5. Non converging regions.

... and CoolProp might be able to improve the performance and definitely supports many derivatives, see point 2.

@thorade
Copy link

thorade commented Sep 14, 2015

This may be due to the fact that some of the project partners do also sell commercial fluid properties libraries. Also, my experience with Refprop developers is that they are very happy about feedback and quickly try to solve problems (as far as their codebase allows), so I hope the autors did provide good feedback in addition to writing a general complaint in the paper.

UPDATE: At the time the project started, CoolProp was pure-fluids only.

@ibell
Copy link

ibell commented Sep 17, 2015

Yes, that has been my experience with REFPROP developers too :) Perhaps
they emailed Eric Lemmon about their issues, but probably they didn't.

Ian

On Mon, Sep 14, 2015 at 2:29 AM, Matthis Thorade [email protected]
wrote:

This may be due to the fact that some of the project partners do also sell
commercial fluid properties libraries. Also, my experience with Refprop
developers is that they are very happy about feedback and quickly try to
solve problems (as far as their codebase allows), so I hope the autors did
provide good feedback in addition to writing a general complaint in the
paper.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@thorade
Copy link

thorade commented Nov 5, 2015

The Modelon presentation from the Modelica conference is available here:
http://www.slideshare.net/Modelon/multi-phase-mixture-media

@jowr
Copy link
Member Author

jowr commented Nov 5, 2015

In the slides they say that it is open-source. Do they refer to this repository? https://github.com/jwindahlModelon/MultiPhaseMixtureMedia

@thorade
Copy link

thorade commented Nov 5, 2015

Yes, that is the library as presented at the conference. As I understand it, it was once planned that this could go straight into the Modelica Standard Library, but now it is more "another suggestion how to do it" and more discussion e.g. at the Modelica Design Meeting is necessary. Maybe the Modelica Language Specification has to be adapted in order to make a clean solution possible.

@thorade
Copy link

thorade commented Nov 30, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants