10-Marble
May 2, 2023
Solved
Creating a string from a table for Coolprop, programming ?
- May 2, 2023
- 1 reply
- 2253 views
Dears,
I´m using with great success the Coolprop wrapper, but one challenging task is to form the "mixture" string.
Air for instance must be written as: "O2[0.21]&N2[0.79]"
When working with complex mixtures, like up to 10 components, my idea was to use a table and extract a "concat" function from the table. All good doing it the hard way:

(...)

Problem: if I add or remove one of the 10 components from the table, maybe for a simpler composition, then the formula for "mixture" would fail.
Solution: maybe write a program? But don´t even know how to start.
Any help would be great.
Best regards,
Fred.





