예제 #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)
예제 #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)
예제 #3
0
 def setElectricPotential(self, v):
     """Set the electric potential."""
     _cantera.thermo_setfp(self._phase_id, 6, v, 0)
예제 #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)
예제 #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)
예제 #6
0
 def setPressure(self, p):
     """Set the pressure [Pa]."""
     _cantera.thermo_setfp(self._phase_id, 1, p, 0.0)
예제 #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)
예제 #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)
예제 #9
0
 def setElectricPotential(self, v):
     """Set the electric potential."""
     _cantera.thermo_setfp(self._phase_id, 6, v, 0);
예제 #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)
예제 #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)
예제 #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)
예제 #13
0
 def setPressure(self, p):
     """Set the pressure [Pa]."""
     _cantera.thermo_setfp(self._phase_id,1,p,0.0)
예제 #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)