cantera/interfaces/matlab/toolbox/@ThermoPhase/cp_mass.m

12 lines
359 B
Matlab

function v = cp_mass(tp)
% CP_MASS Get the mass-basis specific heats at constant pressure.
% v = cp_mass(tp)
% :param tp:
% Instance of class :mat:func:`ThermoPhase` (or another
% object that derives from ThermoPhase)
% :return:
% Vector of specific heats of the species at
% constant pressure. Units: J/kg-K
%
v = thermo_get(tp.tp_id, 13);