%% Four Cylinder Simulation
% 
% We now construct a new model with a single pump and four actuators. 
% The same pump pressure p1 drives each cylinder assembly and the 
% sum of their flows loads the pump. Although each of the four control 
% valves could be controlled independently, as in an active suspension 
% system, in this case all four receive the same commands, a linear ramp 
% in orifice area from zero to 0.002 m^2.
% 
% A detailed review of the equations used in this design can be found in 
% the white paper <http://www.mathworks.com/mason/tag/proxy.html?dataid=229&fileid=559 
% Using Simulink and Stateflow for Automotive Examples.> Please note
% that this paper is based on an older version of Simulink and does not 
% use all the newest block diagramming features in the current version 
% of Simulink.

bdclose all


close all


open_system('sldemo_hydcyl4')
sim('sldemo_hydcyl4')

%% 

bdclose all


close all
