Professional Documents
Culture Documents
SimMan Tut 01 Backstep
SimMan Tut 01 Backstep
Problem Description
In this Tutorial we present an automated parametric study of laminar flow over a backward facing step. Based on a table of input values, Simulation Manager calls CFD-GEOM to update model geometry and grid, changes boundary conditions, then runs the CFD-ACE+ solver for each case. In this Tutorial, we vary the dimensions of the step, h and s, and the value of x-direction velocity on the inlet boundary (see Figure 1-1). There are three steps in performing this parametric study: 1. 2. 3. Create original geometry and grid in CFD-GEOM Define the model in CFD-ACEU Run the parametric study in Simulation Manager
Figure 1-1.
Problem Geometry
T01-SM-01
3/20/02
1-1
1.
Start CFD-GEOM.
Select SettingPreferences Geometry Ensure that the Journaling checkbox is selected. Select OK to close the Preferences panel.
Start CFD-GEOM.
Note
If, in the previous step, the Journaling checkbox was not already active when you opened the Geometry panel, you must restart CFD-GEOM after selecting the Journaling checkbox.
1-2
T01-SM-01
Create parameters: Choosing: Tools Parameters Click the New Field button three times to create three rows of data entry fields.
T01-SM-01
1-3
Enter the following points being sure to select the Apply button after entering each point:
Point P1 P2 P3 P4 P5 P6 P7 P8
The points should appear as shown in figure 1-2. Note that several points hide behind each other. It will be necessary to zoom in on the areas where cluster of points are, and hover over the point. This will display the points XYZ coordinates.
1-4
T01-SM-01
Select the following points in the order shown After all lines are created, the geometry should being sure to press Apply after selecting each appear as shown in figure 1-3. pair of points. P1-P2 P2-P3 P3-P4 P4-P5 P6-P7 P7-P8 P5-P8 P2-P5 P1-P6
T01-SM-01
1-5
1-6
T01-SM-01
According to the table shown below and figure 1-4, enter the specified parameters to create all edges. Click the Apply button after entering the parameters for each edge. Power Law Power Forward Forward Forward Forward Forward
Edge 1 2 3 4 5 6 7 8 9
Number of Points 81 81 21 21 11 11 11 11 11
Distribution Hyperbolic Tan Hyperbolic Tan Hyperbolic Tan Hyperbolic Tan Power Law Power Law Power Law Power Law Power Law
T01-SM-01
1-7
Create Face 1 using edges 3, 4, 5, and 6 being sure to click the middle mouse button after selecting each edge.
In a similar manner, create Face 2 using edges 1, 2, 6, 7, 8, and 9. Note that edges 6 and 7, must be entered as one set, therefore do not press the middle mouse button after selecting edge 6, but after select 6 and 7. (This also applies to edges 8 and 9).
1-8
T01-SM-01
7. Create 2D blocks.
Create blocks by choosing the Tool: Grid Structured Block Options Create Structured 2D Block. The status line prompts you to select faces to create a 2D block.
Select Face 1 and press the middle mouse button to create Block . In a similar manner create Block 2 using Face 2.
T01-SM-01
1-9
From the panel that opens, click on the BC/VC Editor tab.
In the 2D/3D section of the BC/VC editor panel, select the 2D ModelBoundary.
In the BC/VC Editor, select Inlet from the Type menu and enter Inlet in the Name field. Click Apply.
1-10
T01-SM-01
In the viewer window, select Edge 8. In the BC/VC Editor, select Outlet from the Type menu and enter Outlet in the Name field. Click Apply.
In the viewer window, select Edge 9. In the BC/VC Editor, select Outlet from the Type menu and enter Outlet in the Name field. Click Apply.
Velocities 0.1 P Correction 0.1 Pressure 1.0 Density 1.0 Viscosity 1.0
T01-SM-01
1-13
1-14
T01-SM-01
Figure 1-6. Specify CFD-GEOM and Solver Parameters Panel Next to the DTF file text box, click Browse and locate the file backstep.DTF in the tutorials directory. Select Use CFD-GEOM Parameters check button. Next to the CFD-GEOM script file text box, click Browse and locate the file backstep.py in the tutorials directory.
T01-SM-01
1-15
Make sure that option Import Parametric Table The lower portion of the panel appears as shown from Text File is selected. here:
This text file was created using MS Excel. The file backstep_parameter.txt must be in the format, specified in the manual. This file defines the step dimensions and inlet velocity values that will be used in this parametric study.
Click the Next button. Information about optional collecting CFDACEU Solver Output data and using previous run for Initial Condition appears on these input fields. You can ignore this data for this tutorial.
Click the Next button. Table with the parameters for your case appears on the screen. Any parametric value in this table can be selected and modified.
1-16
T01-SM-01
When the simulation starts, CFD-GEOM is called (in background mode) to run the journal file. After new geometry and grid are created using the CFD-GEOM parameters (h and s), the boundary condition value (velocity) is updated. CFD-ACEU is then called to solve the flow in the model. This process repeats until all three combinations of the parameters have been analyzed. Each case produces a different DTF file named backstep.0000n.DTF, where n is the case number. File backstep.rst is also created and contains information to restart the parametric study.
T01-SM-01
1-17
Figure 1-7. Residual Plotter Close the residual plotter by selecting Close under the plotters File menu.
From the Visualization panel select U from The contours of x-direction velocity are disthe Primary Variable pull-down menu then click played. the Surface On icon.
Figure 1-8. Model Display in CFD-VIEW To View the next model, select New Model under the File menu then import the file named backstep.00001.DTF. Repeat the above step for all three DTF files created during the parametric study.
T01-SM-01
1-19
From the Windows menu, select Tile Horizontally to view the three models in one screen as shown in figure 1-8.
The variation of step dimensions and inlet velocity is evident in the velocity contour plots.
1-20
T01-SM-01