cantera/interfaces/matlab/toolbox/@ThermoPhase/cp_mass.m
2019-02-17 08:12:53 -05:00

12 lines
358 B
Matlab

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