cantera/interfaces/matlab/toolbox/MassFlowController.m
Ingmar Schoegl d263566670 [Reactor] Deprecating magic numbers.
* 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
2019-08-01 15:37:48 -04:00

25 lines
957 B
Matlab

function m = MassFlowController(upstream, downstream)
% MASSFLOWCONTROLLER Create a mass flow controller.
% m = MassFlowController(upstream, downstream)
% Creates an instance of class :mat:func:`FlowDevice` configured to
% simulate a mass flow controller that maintains a constant mass flow
% rate independent of upstream or downstream conditions. If two reactor
% objects are supplied as arguments, the controller is installed
% between the two reactors. Otherwise, the :mat:func:`install` method
% should be used to install the :mat:func:`MassFlowController` between
% reactors.
%
% see also: :mat:func:`FlowDevice`, :mat:func:`Valve`
%
% :param upstream:
% Upstream :mat:func:`Reactor` or :mat:func:`Reservoir`
% :param downstream:
% Downstream :mat:func:`Reactor` or :mat:func:`Reservoir`
% :return:
% Instance of class :mat:func:`FlowDevice`
%
m = FlowDevice('MassFlowController');
if nargin == 2
install(m, upstream, downstream)
end