These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
8 lines
No EOL
233 B
Matlab
8 lines
No EOL
233 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);
|
|
|