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.
19 lines
No EOL
613 B
Matlab
19 lines
No EOL
613 B
Matlab
function m = MassFlowController(upstream, downstream)
|
|
%
|
|
% MASSFLOWCONTROLLER - Create a mass flow controller connecting two
|
|
% reactors / reservoirs.
|
|
%
|
|
% m = MassFlowController(upstream, downstream)
|
|
%
|
|
% creates an instance of class 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.
|
|
%
|
|
% see also: FlowDevice
|
|
%
|
|
m = FlowDevice(1);
|
|
if nargin == 2
|
|
install(m, upstream, downstream)
|
|
end |