EnginSoft - Coupling of modeFRONTIER v4 with Aspen Plus 2006 in a WIN32 OS environment
EnginSoft
22-23 October 2012 Pacengo del Garda
(VR) - Italy

www.caeconference.com

2011 Conference Proceedings
2011 Conference Proceedings are now avaliable to download
2006-2010 Proceedings

download CAE proceedings

CHOOSE YOUR COUNTRY

Virtual Prototyping in Italy Virtual Prototyping in Germany Virtual Prototyping in France
Virtual Prototyping in Spain Virtual Prototyping in Norway Virtual Prototyping in United Kingdom
Other Countries...



Coupling of modeFRONTIER v4 with Aspen Plus 2006 in a WIN32 OS environment


Introduction
Aspen Plus 2006 is a process simulation software commonly used for process engineering and chemical engineering tasks. In order to solve optimization problems such as sensitivity analysis’ in Aspen Plus 2006, a coupling of modeFRONTIER v4 optimization software with Aspen Plus 2006 on a WIN32 operating system will be carried out and documented in this paper. A simple process is chosen to explain the necessary steps of work.

Description of a simple Aspen Plus 2006 simulation task
Two input streams of H2O (H2O1 and H2O2) with different temperatures are fed into a static mixer (MIXER) and result in one output stream (H2OMIX) as shown in Figure 1.

aspen plus

Figure 1: Aspen Plus 2006 User Interface Process Flowsheet window


The stream input specifications are shown in Table 1.

aspen plus

Table 1: Input stream specifications


This simple example is run and will converge without errors (IDEAL property method).

Optimization goal and modeFRONTIER v4 workflowsheet
Aim of the sensitivity analysis, carried out by modeFRONTIER v4, is the maximization
of the output stream mass flow while keeping the output stream temperature at as close to 62 °C (335 K) as possible. The modeFRONTIER v4 workflowsheet of this simple multi objective optimization problem is shown in Figure 2.
Table 2 will explain the workflow nodes used in Figure 2.

aspen plus

Figure 2: modeFRONTIER v4 workflowsheet

 

aspen plus

Table 2: Description of workflow nodes


Process flow in modeFRONTIER v4
4 input variables (as shown in Table 2) are set for this optimization problem. Their range of values is shown in Table 3.

aspen plus

Table 3: Range of input variable values


The input file window in modeFRONTIER v4 will look like Figure 3. Note that the input format is set to #0 so it will fit the format of the simu1.inp input file.

aspen plus

Figure 3: Input Variable Properties window in modeFRONTIER v4


The simu1_inp node is an exported file of the Aspen Plus 2006 simulation explained in chapter 2 with the extension “.inp”. The complete log is shown below.

aspen plus
aspen plus


This file is modified by modeFRONTIER v4 for each single optimization computation.
Therefore it has been edited so modeFRONTIER v4 is able to locate the needed input information within the simu1.inp (see below).

The simu1_out node is a Aspen Plus 2006 report file retrieved when running the simulation with the Aspen Plus 2006 Simulation Engine instead within the Aspen Plus 2006 User Interface environment. To start the Aspen Plus 2006 Simulation Engine from the Windows DOS-Console the following path has to be entered but may differ from machine to machine:

aspen plus


Then the folder must be switched to the folder, where the simu1.inp is located. In this case it is stored in

aspen plus
aspen plus


Now the simulation can be run with the following command:

aspen plus


This command will start a simulation with the input information of the simu1.inp file.
The optional indentifier /getridof will purge all unnecessary output files but also create a single simu1.out output file. The log of the operation is shown below.

aspen plus


The modeFRONTIER v4 file output node simu1_out with the simu1.out file as input will look like below but is not shown completely because of its size. Note that the output units are different from the input units (for example °C input and K output). However this will not effect the correct computation of the optimization. The simu1.out will inherit the unit settings of the initial run of the simulation and in this way the units may be applied as requested.

aspen plus


Note, that the output variables chosen for modeFRONTIER v4 are marked relative (red = variable, green = reference string) since the output file might change slightly and an absolute positioning could cause errors. The selected reference string should be unique throughout the file.

The two output variables temp_out and flow_out are each connected to specific optimization goal nodes. The absolute value of the difference of 335 minus the outlet temperature in Kelvin shall be minimized. In other words the temperature should be as close to 62 °C (335 K) as possible. This is implemented in modeFRONTIER v4 as shown in Figure 4.

aspen plus

Figure 4: Design Objective Properties window in modeFRONTIER v4


The second optimization objective is a simple maximization of output mass flow.

Logic flow and DOS Batch script node in modeFRONTIER v4
The optimization wizard of modeFRONTIER v4 recommends a Multi Objective Generic Algorithm (MOGA II) with at least 8 generations (time for one simulation = 0,33 min; time for overall simulation = 0,2 h).

aspen plus

Figure 5: Scheduler window in modeFRONTIER v4


The Design of Experiments (DOE) should be set to v4.

aspen plus

Figure 6: Design of Experiments window in modeFRONTIER v4


The DOSBatch4 script node should be configured as shown in Figure 7. To enter the correct execution path the script window (red circle) has to be opened.
The path is stated in “ ” so it is interpreted as a string (actual path may very from machine to machine). This allows advanced characters like spaces which otherwise may be interpreted incorrect.

aspen plus

Figure 7: DOS-Batch Properties window in modeFRONTIER v4

aspen plus

Figure 8: DOS-Batch Script window in modeFRONTIER v4


However the identifiers at the end have to be stated outside the “ ”. With simu1 the simu1.inp input file will be used for the simulation and /getridof will purge all unnecessary report files and will create just one simu1.out output file. In this way also a lot of disc space will be saved when multiple simulations will be computed by modeFRONTIER v4. The Logic End node is implemented to terminate the optimization correctly.

Run and analysis of the optimization
The modeFRONTIER v4 project is saved under the file name simu1.prj in the directory

aspen plus


The simulation is carried out, no error designs are created and a total of 31 design cases have been computed. The resulting Designs Table is shown in Figure 9.

aspen plus

Figure 9: Designs Table of the simu1.prj

aspen plus

Figure 10: Parallel Coordinates chart in modeFRONTIER v4


The optimal designs are marked with a green hook in column 3. The Parallel Coordinates chart (Figure 10) identifies two groups of designs: On group with maximum output of mass flow (design 3, 7, 10, 16, 18 27) and another group of minimal temperature difference to 335 K (design 1, 11, 22, 23 28).
However the variety of answers is yet not satisfying so the optimization is run again, this time with a DOE of 10 designs and a MOGA II of 10 generations. The optimization completes with a total of 100 designs. A derived table of all important designs is shown in Figure 11. Duplicates have not been discarded.

aspen plus

Figure 11: Optimal designs of second optimization run.


In a 4D bubble chart the designs can be evaluated by the user as shown in Figure 12.

aspen plus

Figure 12: 4D bubble chart of a derived designs table


The user has to decide whether a trade-off solution is reasonable or if an extreme solution is desirable.

Summary
A coupling of Aspen Plus 2006 and modeFRONTIER v4 on a WIN32 operating system has been shown in this document. A simple simulation problem has been computed and was later evaluated in a sensitivity analysis.

 

 


 

copyright © 2011 all rights reserved | terms of use | Download EnginSoft Logo | VAT nb IT00599320223