|Excel Unit Operation|
|Matlab Unit Operation|
|Matlab Thermo Import|
|OO Calc Thermo Import|
|SciLab Unit Operation|
|SciLab Thermo Import|
The calculations performed by the unit operations are defined by Matlab script. You can enter the script by editing the unit operation, and select Script on the Matlab tab.
pauseor any other function that forces keyboard interaction
To test your Matlab input, make sure the ports are connected. Then, while writing the script, click the Test button for feedback.
You can edit the script in the text box provided on the Script tab, or you can click the Edit button. The Edit button will open the external editor. The Matlab Unit Operation dialog will block until this editor has been closed.
The default editor is medit.exe in the Matlab program folder (or notepad.exe if medit.exe cannot be found). You can select a different text editor by holding down Ctrl while clicking on the Edit button.
Example script for a simple adiabatic mixer with two feeds and one product:
(This particular script does not take into account that the total flow may be zero; it will fail in this case).