diff --git a/Cantera/matlab/cantera/@ThermoPhase/setState_Psat.m b/Cantera/matlab/cantera/@ThermoPhase/setState_Psat.m new file mode 100644 index 000000000..ec7b77190 --- /dev/null +++ b/Cantera/matlab/cantera/@ThermoPhase/setState_Psat.m @@ -0,0 +1,5 @@ +function a = setState_Psat(a,px) +% SETSTATE_PSAT Set the fluid to a saturated state at +% pressure P +% +thermo_set(a.tp_id,24,px); diff --git a/Cantera/matlab/cantera/@ThermoPhase/setState_Tsat.m b/Cantera/matlab/cantera/@ThermoPhase/setState_Tsat.m new file mode 100644 index 000000000..4758aa392 --- /dev/null +++ b/Cantera/matlab/cantera/@ThermoPhase/setState_Tsat.m @@ -0,0 +1,5 @@ +function a = setState_Tsat(a,tx) +% SETSTATE_TSAT Set the fluid to a saturated state at +% temperature t +% +thermo_set(a.tp_id,25,tx);