-
From the 3DEXPERIENCE Operations section of the action bar,
click Automation Script
, and drop it onto the process diagram to the right of the
Structural activity to create an activity.
-
In the process diagram, click the Automation Script
adapter to open its shortcut toolbar, and then click
to open the
adapter's editor.
-
From the Select Object options, select
Parameter.
-
Create a parameter for the bottle model used in the fluid flow simulation that you
previously imported.
-
Click
to search for the
bottle model used in the fluid flow simulation that you previously imported.
-
In the top bar, search for and select PlasticBottleCFD A.1.
PlasticBottleCFD A.1 is the water bottle model used in the
fluid flow simulation.
The Create New Parameter dialog box appears and the
selected object appears in the Object Selection
field.
-
Enter CFD Product for the parameter's name.
-
Click OK.
Optimization Process Composer creates an object parameter for the bottle. You can now refer to the bottle using
this parameter, which makes it easy to edit the model later on, if
required.
-
From the Select Object options, confirm that CFD
Product is selected.
-
From the App to open options, select Generative Shape
Design.
While the simulation process runs, the Automation Script
adapter uses Generative Shape Design to alter the bottle's midsection geometry.
-
In the VBScript Macro Options section, select
Content from the Macro library
options.
-
From the Macro liberary section. click
-
Search for and select MidsectionChange.
If you have no other macro libraries, this field autofills after you click
Select.
-
Enter Module2 for the Macro name.
-
Accept the default name of the Function.
-
Create a parameter to drive the VB module argument, selecting the bottle's midsection
geometry.
-
From Select function argument, click
to create a parameter.
-
Enter MidsectionDesign as the parameter's name.
-
From the Type options, select
Integer.
-
Enter 1 for the Value.
-
Accept all other defaults, and click OK.
-
Click Add argument.
The function argument appears in the table.
-
Create an object parameter to represent the midsection of the bottle used in the fluid
flow simulation.
-
Select Capture object in.
-
Click
to create a parameter.
-
Enter CFD Midsection as the parameter's name.
-
Accept all other defaults, and click OK.
-
From the Capture object in options, confirm that
CFD Midsection is selected.
-
Click OK.
The VB script selects between three different midsection geometries to be used
by the fluid flow simulation.
|