modeFRONTIER / Star-CD tutorial: optimization of a blunt object

Previous Index Next

3.1.1. Data Input




To crate a new project, click on the New Project icon Process flow icon; the Work Flow tab is now active and we can create the logic for the optimization process.
As we can see, if we start a new project from scratch the canvas is empty and we have two tool bar (left and top) with all the object which we need to build the logic to evaluate a design as well as define the optimization algorithm (see Fig.1).

Note: to get an hint about the use of a certain item, leave the pointer on the icon in the tool bar and a label will pop-up.

Fig. 1: Process Flow window
Fig. 1: Process Flow window

First of all we have to define the Input Variables (d.o.f. of the optimization).
Click on the Process flow icon and place in the Work Flow window as many Input Variables as we need, in this case four (see Fig.2).

Note: keep the Ctrl button pressed if we want to put more than one Input Variable without reselecting it again from the tool bar.

Fig. 2: Process Flow window
Fig. 2: Process Flow window

Looking at the Input Variables tab in the Summary Panel we see a table whose each row is an Input Variable.

Note: When we put a new object into the Work Flow it has a generic definition so we have to initialize it.

Fig. 3: Summary Panel
Fig. 3: Summary Panel

We can define each variable properties eighter changing the values in the Summary Panel (see Fig.4) or opening its own properties window (Fig.5) and changing the values (Fig.6).

Fig. 4: Summary Panel
Fig. 4: Summary Panel

Fig. 5: Input variable properties
Fig. 5: Input variable properties

Fig. 6: Input variable properties
Fig. 6: Input variable properties

After having correctly defined all Input Variables, the Work Flow window will look like in (Fig.8)

Fig. 8: Work Flow - Input Variables Inserted
Fig. 8: Work Flow - Input Variables Inserted

The just defined Input Variables have to be inserted into the Template Input File, thus the next step is to introduce an Input File object into the canvas.
Select the Input File icon icon from the tool bar on the left and put it into the Work Flow canvas (Fig.9).

Fig. 9: Work Flow - Input File Inserted
Fig. 9: Work Flow - Input File Inserted

To create a Template Input File double click on the Input File Input File icon icon in the Work Flow: the Input File node is not initialized (see Fig.10).
Now mark all the Input Variables as Possible Input node because all of them are going to be inserted in this Input File. (see Fig.10a).
Click on the Ok button to make all changes take effect (see Fig.11).

Fig. 10: Input File Properties
Fig. 10: Input File Properties

Fig. 10a: Input File Properties
Fig. 10a: Input File Properties

Fig. 11: Work Flow - Input Variables linked to the Input File
Fig. 11: Work Flow - Input Variables linked to the Input File

Now click on the Open button in the Input File properties window.
A new window will appear and we have to select a Template Input File that define our model (the file where our variable will be inserted). Browse through the file system and search the proper Prostar command file tut3.inp (see Fig.12).

Fig. 12: Import the Template Input File
Fig. 12: Import the Template Input File

After having selected the proper file, the Template Input Editor will show the file that define our model and a table with the linked Input Variable (Fig.13).
This window help us to insert the Input Variables into the Template Input File.

Fig. 13: Template Input File Editor
Fig. 13: Template Input File Editor

To include a variable into the file follow this procedure:

  1. click on the proper table row to select the variable to be included
  2. highlight with the mouse pointer the corresponding value on the file editor
  3. RMB click to show a pop-up menu and select Insert Variable (see Fig.14)
  4. specify the correct format (see Fig.15)

Fig. 14: Insert Input Variables into the Template Input File
Fig. 14: Insert Input Variables into the Template Input File

Fig. 15: Select the format
Fig. 15: Select the format

After we have inserted the first variable, the template window editor appears like in Fig.16.
Repeat the same steps for remaining three Input Variables and finally the Template Input File should look like in Fig.17.
Click Ok to accept all changes.

Fig. 16: One Input Variables inserted
Fig. 16: One Input Variables inserted

Fig. 17: All Input Variables inserted
Fig. 17: All Input Variables inserted

Once the input part of the Work Flow has been completed, we can go on with the definition of the Output File and Output Variables, where we store results for using them as objectives or constraints.


Previous Top Next

© ES.TEC.O. S.r.l.- ENGIN SOFT TECNOLOGIE PER L'OTTIMIZZAZIONE

Return to modeFRONTIER Index