Skip to content

davideziviani/safeprop

 
 

Repository files navigation

CoolProp Wrappers for Safe Property Evaluation

Needed a wrapper that guaranteed outputs from CoolProp in expected format. Also didn't want to calculate properties more than once (often occurs in a process monitoring/real-time application).

Features

  • Replace exceptions with NaNs when they occur.
  • Memoize function calls to speed up execution (at the expense of memory).

Install for development

$ git clone git clone https://github.com/ahjortland/safeprop.git
$ cd safeprop
$ pip install --editable .

Requirements:

  • CoolProp

TODO

  • Make fluid name option variable and set at import.
  • Optionally fix the cache size with FIFO buffer.
  • Improve the documentation.

License

MIT. See the LICENSE file for more details.

About

Memoized version of CoolProp to cache previously calculated values.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%