Vous êtes sur la page 1sur 2

Example 1

If you have installed in the default location, files for this example will be in
the folder:
C:\Program Files\AspenTech\Aspen Plus Dynamics V8.4\Examples\Simulink
To run the Simulink example supplied with Aspen Plus Dynamics:
1. Create a subfolder in your working folder that has the name MCH.
2. Copy the files MCH.bkp and MCH.mdl to this new subfolder. These
files are located in:
C:\Program Files\AspenTech\ Aspen Plus Dynamics
V8.4\Examples\Simulink.
The Aspen Plus Dynamics flowsheet is created from a supplied Aspen Plus
backup file.
3. Navigate to the MCH folder created in Step 1 and double-click the
file MCH.bkp.
Aspen Plus opens.
4. Within Aspen Plus, click the Run button to run the simulation. The
simulation should complete with no errors.
5. Click on the Export Dynamics (Flow Driven) button which can be
found in the dynamics toolbar and save the flowsheet as a file
named MCHdyn.dynf.
6. Close Aspen Plus.
7. In the MCH folder, double click the MCHdyn.dynf file.
Aspen Plus Dynamics opens.
We will replace all four controllers in the flowsheet with those created in
Simulink.
8. Make a note of all the input and output variables used by the
controllers by double clicking the control signals and noting the
variables listed.
9. Delete all the controllers and control signals from the flowsheet
using Tools | Remove Control Scheme.
The flowsheet should remain square. The previously
controlled/manipulated variables are now fixed variables. These will be
manipulated by Simulink.
10.Save the flowsheet using the same name; then close Aspen Plus
Dynamics.

Note: To avoid having to perform Steps 2 to 11, a file named MCH.dynf is


also available in the same example folder of the Aspen Plus Dynamics
installation. This simulation input file is configured and ready for use within
the Simulink model.
11.In the MCH folder, double click the MCH.mdl file.
MATLAB and Simulink open.
12.Double click the Aspen Modeler Process Block model in the Simulink
model diagram. to open the Configure form.
The Browse for Aspen Modeler Input File dialog box automatically
opens.
13.Browse for the previously exported Aspen Plus Dynamics input file,
MCHdyn.dynf.
Aspen Plus Dynamics now automatically opens. There is a slight pause
while lists of available input and output variables are constructed.
14.Check that the four input port and four output port variables match
those previously recorded.
A fifth input port will be used to manipulate the phenol feed temperature
by Simulink. The variable to be used is STREAMS("PHENOL").T
15.Close the Configure dialog box by clicking OK.
16.In Simulink, on its toolbar, click the Start simulation button to
execute the simulation.
All results are displayed in the scope.

Vous aimerez peut-être aussi