mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Python] Add ThermoPhase._native_mode
This commit is contained in:
parent
124048f87b
commit
9b872641a7
@ -46,6 +46,7 @@ cdef extern from "cantera/thermo/ThermoPhase.h" namespace "Cantera":
|
||||
cbool hasPhaseTransition()
|
||||
cbool isPure()
|
||||
cbool isCompressible()
|
||||
string nativeMode()
|
||||
stdmap[string, size_t] nativeState() except +translate_exception
|
||||
vector[string] fullStates()
|
||||
vector[string] partialStates()
|
||||
|
@ -331,6 +331,11 @@ cdef class ThermoPhase(_SolutionBase):
|
||||
def __get__(self):
|
||||
return self.thermo.isCompressible()
|
||||
|
||||
@property
|
||||
def _native_mode(self):
|
||||
""" Return string acronym representing native state """
|
||||
return pystr(self.thermo.nativeMode())
|
||||
|
||||
property _native_state:
|
||||
"""
|
||||
Default properties defining a state
|
||||
|
Loading…
Reference in New Issue
Block a user