jowr / REFPROP2Modelica

This project intends to bring the Refprop fluid property database to Modelica. It focusses on the Windows and Linux version of Dymola, but we try to provide general purpose files as well.
5 stars 1 forks source link

derivatives in two-phase region #3

Open jowr opened 11 years ago

jowr commented 11 years ago

Refprop does not return correct derivatives in the two-phase region. There are ways to calculate the correct values from saturation properties, especially for density. An if-clause should be used to determine the fluid state and adapt the calculation procedure if needed.

The currently implemented numerical derivatives are neither accurate nor fast... Check refprop_wrapper.cpp around line 1020 to see the implementation.

jowr commented 10 years ago

Add analytical derivatives, just like we did for CoolProp last month...