cantera/interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m
Bryan W. Weber 5aabfe9704 [Matlab] Fix setState_sat*.m functions
Fix the setState_satLiquid and setState_satVapor functions so that they call the main set
method instead of the underlying C++ layer. Resolves #299.
2015-10-24 07:56:10 -04:00

9 lines
310 B
Matlab

function setState_satLiquid(tp)
% SETSTATE_SATLIQUID Set the fluid to the saturated liquid state at the current temperature.
% setState_satLiquid(tp)
% :param tp:
% Instance of class :mat:func:`ThermoPhase` (or another
% class derived from ThermoPhase)
%
set(tp, 'T', temperature(tp), 'Liquid', 1.0)