* add deprecation warning for int ReactorBase::type() (to be changed after Cantera 2.5) * introduce temporary std::string ReactorBase::typeStr() (to be renamed after Cantera 2.5) * deprecate all functions using the old call and introduce associated temporary functions
14 lines
333 B
Matlab
14 lines
333 B
Matlab
function insert(r, gas)
|
|
% INSERT Insert a solution or mixture into a reactor.
|
|
% insert(r, gas)
|
|
% :param r:
|
|
% Instance of class :mat:func:`Reactor`
|
|
% :param gas:
|
|
% Instance of class :mat:func:`Solution` to be inserted
|
|
%
|
|
|
|
r.contents = gas;
|
|
setThermoMgr(r, gas);
|
|
if ~strcmp(r.type, 'Reservoir')
|
|
setKineticsMgr(r, gas);
|
|
end
|