Calling engcoolprop from Octave

Thank you for writing us about your problem with using :octave: GNU Octave. To help us help you, please answer the following questions, if applicable.

I’m new to using Octave, and even newer to calling wrappers from it. I have installed CoolProp and tested it’s functionality. I came across a wrapper for CoolProp that uses Imperial (English) units. Because of the frequency of calculations that I need to do, I would prefer to adhere to a common unit system, so I’m trying to work with EngCoolProp

https://engcoolprop.readthedocs.io/en/latest/quickstart.html#internal-pip-error

I was able to install EngCoolProp, but I have not been able to figure out how to call the function from within Octave. My understanding of python is VERY limited.

I ran some simple commands from the Examples section
https://engcoolprop.readthedocs.io/en/latest/examples.html

ec = EC_Fluid(symbol=“N2”, T=530.0,P=100.0 )

Please give a good example.

  • What did I expect to happen and what did happen?

My system

  • OS: Dell Precision M6800 Kubuntu 20.10
  • Octave version: e.g. Version 5.2.0
  • Installation method: e.g. *** Downloaded and installed via Octave for Debian systems - Octave ***

Octave is not Python.

Yes, I understand. I’m not familiar with what Octave requires to call a python script.

It appears that what I’m looking for is still in development.

http://wiki.octave.org/Pythonic