7 lines
231 B
Matlab
7 lines
231 B
Matlab
function wtm = meanMolarMass(p)
|
|
% MEANMOLARMASS - Mean molar mass [kg/kmol].
|
|
%
|
|
% The mean molar mass is the mole-fraction-weighted sum of the
|
|
% molar masses of the individual species in the phase.
|
|
%
|
|
wtm = phase_get(p.tp_id,4);
|