CoolProp / CoolProp.jl

A Julia wrapper for CoolProp, offering access to thermodynamic properties for fluids and mixtures.
http://www.coolprop.org
Other
32 stars 15 forks source link

Unable to return `fugacity` lookups using the julia wrapper #31

Closed chris-hampel-CA closed 9 months ago

chris-hampel-CA commented 1 year ago

CoolProp.jl is missing functions that allow for returning fugacity and fugacity coefficients. It was found that when trying to create the julia wrapper functions, seen below, that they errored out because the current CoolProp_jll pkg does not have proper functions that are compatible to wrap for use in Julia (it does work when using Pycall however); therefore, enabling this will first require a change in CoolProp_jll and then a change here in this repository.

For example,

AbstractState_keyed_output(handle, CoolProp.get_param_index("fugacity"))

Expected behavior: fugacity (or fugacity vector) returned

Actual behavior: CoolProp: Unknown parameter: fugacity

or

AbstractState_get_fugacity(handle, i)

Expected behavior: fugacity of species i returned

Actual behavior: ERROR: UndefVarError: AbstractState_get_fugacity not defined

We have created an issue within the CoolProp repo here