Ejemplo n.º 1
0
 def setState_Tsat(self, t, vaporFraction):
     """Set the state of a saturated liquid/vapor mixture by
     specifying the temperature and vapor fraction."""
     _cantera.thermo_setfp(self._phase_id,7, t, vaporFraction)
Ejemplo n.º 2
0
 def setState_SP(self, s, p):
     """Set the state by specifying the specific entropy
     energy and the pressure."""
     _cantera.thermo_setfp(self._phase_id, 5, s, p)
Ejemplo n.º 3
0
 def setElectricPotential(self, v):
     """Set the electric potential."""
     _cantera.thermo_setfp(self._phase_id, 6, v, 0)
Ejemplo n.º 4
0
 def setState_UV(self, u, v):
     """Set the state by specifying the specific internal
     energy and the specific volume."""
     _cantera.thermo_setfp(self._phase_id, 3, u, v)
Ejemplo n.º 5
0
 def setState_SV(self, s, v):
     """Set the state by specifying the specific entropy
     and the specific volume."""
     _cantera.thermo_setfp(self._phase_id, 4, s, v)
Ejemplo n.º 6
0
 def setPressure(self, p):
     """Set the pressure [Pa]."""
     _cantera.thermo_setfp(self._phase_id, 1, p, 0.0)
Ejemplo n.º 7
0
 def setState_HP(self, h, p):
     """Set the state by specifying the specific enthalpy and
     the pressure."""
     _cantera.thermo_setfp(self._phase_id, 2, h, p)
Ejemplo n.º 8
0
 def setState_SP(self, s, p):
     """Set the state by specifying the specific entropy
     energy and the pressure."""
     _cantera.thermo_setfp(self._phase_id, 5, s, p)
Ejemplo n.º 9
0
 def setElectricPotential(self, v):
     """Set the electric potential."""
     _cantera.thermo_setfp(self._phase_id, 6, v, 0);
Ejemplo n.º 10
0
 def setState_SV(self, s, v):
     """Set the state by specifying the specific entropy
     and the specific volume."""
     _cantera.thermo_setfp(self._phase_id, 4, s, v)
Ejemplo n.º 11
0
 def setState_UV(self, u, v):
     """Set the state by specifying the specific internal
     energy and the specific volume."""
     _cantera.thermo_setfp(self._phase_id, 3, u, v)
Ejemplo n.º 12
0
 def setState_HP(self, h, p):
     """Set the state by specifying the specific enthalpy and
     the pressure."""
     _cantera.thermo_setfp(self._phase_id, 2, h, p)
Ejemplo n.º 13
0
 def setPressure(self, p):
     """Set the pressure [Pa]."""
     _cantera.thermo_setfp(self._phase_id,1,p,0.0)
Ejemplo n.º 14
0
 def setState_Psat(self, p, vaporFraction):
     """Set the state of a saturated liquid/vapor mixture by
     specifying the pressure and vapor fraction."""
     _cantera.thermo_setfp(self._phase_id, 8, p, vaporFraction)