cantera/interfaces/matlab/toolbox/@ThermoPhase/set.m
Ray Speth 2528df0f75 Reorganized source tree structure
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.
2012-02-12 02:27:14 +00:00

16 lines
No EOL
458 B
Matlab

function a = set(a,varargin)
% SET Set phase properties and return the updated object
property_argin = varargin;
while length(property_argin) >= 2,
prop = property_argin{1};
val = property_argin{2};
property_argin = property_argin(3:end);
switch prop
case 'Temperature'
phase_set(a.tp_id,1,val);
case 'Density'
phase_set(a.tp_id,2,val);
otherwise
error('Phase properties: Temperature, Density')
end
end