11 lines
273 B
Matlab
11 lines
273 B
Matlab
function v = vaporFraction(tp)
|
|
% VAPORFRACTION Get the vapor fraction.
|
|
% v = vaporFraction(tp)
|
|
% :param tp:
|
|
% Instance of class :mat:func:`ThermoPhase` (or another
|
|
% class derived from ThermoPhase)
|
|
% :return:
|
|
% Vapor fraction.
|
|
%
|
|
|
|
v = thermo_get(tp.tp_id, 22);
|