CoolPropWrapper

The CoolPropWrapper package is designed to serve as a MATLAB interface to the CoolProp thermophysical property library, which is a Python-based library for calculating fluid properties.

class CoolPropWrapper.CoolPropWrapper(fluidName)

Bases: handle

CoolPropWrapper Summary of this class goes here Detailed explanation goes here

Constructor Summary
CoolPropWrapper(fluidName)

CoolPropWrapper Construct an instance of this class fluidName defaults to R245fa if not specified

Property Summary
CoolProp

ie. py.CoolProp.AbstactState(…)

CoolPropHandle

ie. py.CoolProp

Method Summary
conductivity(Atype, A, Btype, B)

conductivity calculates the conductivity TODO

cp(Atype, A, Btype, B)

cp returns the constant pressure specific heat TODO

cv(Atype, A, Btype, B)

cv returns the mass constant volume specific heat TODO

density(Atype, A, Btype, B)

density calculates the density TODO

enthalpy(Atype, A, Btype, B)

enthalpy calculates the enthalpy TODO

entropy(Atype, A, Btype, B)

entropy calculates the entropy TODO

static loadobj(s)

TODO: there are other ways of loading obj that does not guarantee s being obj already.

phase(Atype, A, Btype, B)

phase returns the phase TODO: convert enum to string

prandtl(Atype, A, Btype, B)

prandtl returns the Prandtl number TODO

pressure(Atype, A, Btype, B)

pressure calculates the pressure TODO

quality(Atype, A, Btype, B)

qualityPT calculates the quality given P and T TODO, doesn’t necessarily work?

saveobj()

Save reference to CoolProp and CoolPropHandle

setFluid(fluidName)

setFluid Change fluid

setSpecifyPhase(phase)

setSpecfiyPhase impose phase

surfaceTension(Atype, A, Btype, B)

surfaceTension returns the surfaceTension TODO

temperature(Atype, A, Btype, B)

temperature calculates the temperature TODO

viscosity(Atype, A, Btype, B)

viscosity calculates the viscosity TODO

CoolPropWrapper.sample

Include CoolPropLib and subdirectories to the Path (MATLAB> Home> Environment> Set Path> Add with subfolders)

class CoolPropWrapper.CoolPropWrapperHA

Bases: handle

CoolPropWrapperHA Summary of this class goes here Detailed explanation goes here

Constructor Summary
CoolPropWrapperHA()

CoolPropWrapperHA Construct an instance of this class Detailed explanation goes here

Property Summary
CoolPropHA

ie. py.CoolProp.AbstactState(…)

CoolPropHandle

ie. py.CoolProp