mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 21:08:06 -05:00
30 lines
993 B
Cython
30 lines
993 B
Cython
from libcpp cimport bool
|
|
from libcpp.string cimport string
|
|
|
|
# A header defining the AbstractState class
|
|
cimport cAbstractState
|
|
|
|
cdef class AbstractState:
|
|
cdef cAbstractState.AbstractState *thisptr # hold a C++ instance which we're wrapping
|
|
cpdef update(self, long iInput1, double Value1, double Value2)
|
|
|
|
## ----------------------------------------
|
|
## Fluid property accessors
|
|
## ----------------------------------------
|
|
|
|
cpdef double T(self)
|
|
cpdef double p(self)
|
|
cpdef double rhomolar(self)
|
|
cpdef double hmolar(self)
|
|
cpdef double smolar(self)
|
|
cpdef double cpmolar(self)
|
|
cpdef double cvmolar(self)
|
|
cpdef double rhomass(self)
|
|
cpdef double hmass(self) except *
|
|
cpdef double smass(self) except *
|
|
cpdef double cpmass(self) except *
|
|
cpdef double cvmass(self) except *
|
|
cpdef double speed_sound(self) except *
|
|
|
|
cpdef double molar_mass(self) except *
|
|
cpdef double keyed_output(self, long) except * |