[Matlab] Deprecate molarMass methods in favor of molecularWeight methods to be consistent with the rest of Cantera

This commit is contained in:
Bryan W. Weber 2014-07-18 14:34:41 +00:00
parent 34274257b9
commit 411f6d51a9
4 changed files with 11 additions and 8 deletions

View file

@ -1,8 +1,9 @@
function wtm = meanMolarMass(tp)
function mmm = meanMolarMass(tp)
% 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(tp.tp_id, 4);
warning('Deprecated in favor of meanMolecularWeight.m')
mmm = meanMolecularWeight(tp);

View file

@ -1,4 +1,4 @@
function wtm = meanMolecularWeight(tp)
function mmw = meanMolecularWeight(tp)
% MEANMOLECULARWEIGHT - Mean molecular weight.
%
% This method is a synonym for method meanMolarMass and is
@ -7,4 +7,4 @@ function wtm = meanMolecularWeight(tp)
% See also; meanMolarMass
%
wtm = meanMolarMass(tp);
mmw = phase_get(tp.tp_id,4);

View file

@ -1,5 +1,6 @@
function x = molarMasses(tp)
function mm = molarMasses(tp)
% MOLARMASSES - Array of species molar masses [kg/kmol].
%
x = phase_get(tp.tp_id, 22);
warning('Deprecated in favor of molecularWeights.m')
mm = molecularWeights(tp);

View file

@ -1,8 +1,9 @@
function x = molecularWeights(a)
function mw = molecularWeights(tp)
% MOLECULARWEIGHTS - Array of species molar masses [kg/kmol].
%
% This method is deprecated - use molarMasses instead.
%
% See also: molarMasses
%
x = molarMasses(a);
mw = phase_get(tp.tp_id, 22);