Anda di halaman 1dari 41

CFX11.

0
„ Tutorials
C:\
C: \Ansys Inc
Inc\
\v110
v110\
\CFX
CFX\
\help\
help\pdf\
pdf\xtutr11.pdf

„ ANSYS Workbench 11.0

43
Workbench 11.0 - Static Mixer
„ basic geometry creation including Revolve and
Extrude operations
„ basic meshing operations

44
CFX11.0
„ Open ANSYS CFX
CFX--11.0
11 0

45
Launcher
„ Set the Working Directory
„ Open Workbench 11.0

46
ANSYS Design Modeller
„ Scroll down and open an Empty Project

47
Design Modeller
„ Select File / Save / File Name: StaticMixer
„ Click on New geometry (under Create Design
Modeler Geometry)

48
Design Modeller
„ Select Meter / click on OK

49
Design Modeller
„ Four Main Areas:

50
Sketching Grid
Click on ZX Plane (Tree View)
1. Click on Settings (in the Sketching tab) to open
the Settings Toolbox
Toolbox..
2. Click on Grid and turn ON Show in 2D and
Snap..
Snap
3. Click on Major Grid Spacing and set it to 1.
4. Click on Minor
Minor--Steps per Major and set it to 2.
5. Zoom in to see the effect of changing the
Minor--Steps per Major
Minor Major..
51
Sketching Grid

52
Polyline

1. Select the Draw Toolbox from the Sketching tab.


tab.
2. Click on Polyline and then create the shape shown below
below::
a. Click on the grid in the position where one of the points from the shape
needs to be placed (it doesn't matter which point).
point).
b. Then click on each successive point to make the shape
shape..
c. If at any point you click on the wrong place, just click with the right
mouse button over the Model View and select Back from the right mouse
button menu to undo the point selection.
selection.
d. To close the polyline after selecting the last point,
point, click with the right
mouse button to bring up a menu and choose Closed End.End.

53
Revolving

1. Select Revolve from the 3D Features Toolbar


Toolbar.. This toolbar is located above the Model View View..
2. Details of the Revolve operation are shown in the Details View at the bottom left of the window. window.
Leave the name of the Revolve as the default, Revolve1
Revolve1.
3. The Base Object is the name of the sketch to be revolved.
revolved. It defaults to the sketch which you
have just created, Sketch1
Sketch1, so this setting does not need to be changed.
changed.
4. The Axis for the rotation does not have a default setting
setting.. In the Model View, click on the grid line
which runs along the Z-axis and then click on Apply in the Details View. View. You should find that the
text next to Axis now changes to Selected
Selected.. If instead it changes to Not Selected with a yellow
background, click on the text Not Selected and then try selecting the axis again in the Model
View, remembering to press Apply in the Details View after you have selected it. it.
5. Leave Operation as Add Material since you need to create a solid solid.. (The other options allow you to
modify existing solids and to deal with multiple solids.
solids.)
6. The
Th sketch
k t h needs
d tot be
b revolved
l d by
b a full
f ll 360 degrees,
d so change
h A l from
Angle f 30 degrees
d t 360
to
degrees.. Leave the other settings as default.
degrees default.
7. To activate the revolve operation, you need to click on Generate.
Generate. This can be selected from
the menu which appears when you click with the right mouse button almost anywhere in the
window, or from the 3D Features Toolbar towards the top of the window. window.

54
Creating a Circle

1. In the Tree View, click on the plus sign next to 1 Part, 1 Body to
open up the tree structure.
structure.
2. Position
P iti your cursor over the th text
t t Solid
S lid andd then
th click
li k with
ith the
th
right mouse button and select Hide Body
Body..
3. Select ZXPlane in the Tree View again [XZPlane in ANSYS
Workbench 8.0.1],] and create a new sketch based on this plane
by using the New Sketch ( ) button on the Active Plane/Sketch
Toolbar, which is located above the Model View.
View.
4. Select the Sketching tab
tab..
5. Create a circle as shown in the picture:
picture:
a. Select the Draw Toolbox.
Toolbox.
b. Select Circle,
Circle click on the grid at the center of the circle and then drag the
mouse to define the radius.
radius.
55
Extruding

1. Select Extrude from the 3D Features Toolbar. Toolbar. This toolbar is


located above the Model View.
View.
2. In
I the
h Details
D il ViewVi at theh bottom
b l f off the
left h window,
i d change
h
Direction to Reversed, in order to extrude in the opposite
direction to the plane normal
normal.. [Select Direction to be Normal in
ANSYS Workbench
W kb h 8.0.1 since i the
h plane
l normall is
i in
i the
h
opposite direction.
direction.]
3. Change the Depth to 3 m. The rest of the settings can be left as
their default.
default. The Add Material setting will mean that material is
added to the existing solid, rather than a new solid being created
4. To activate the extrude operation, you need to click on Generate
as before
before..
56
Geometry Modification
The radius of the inlet pipes can be changed to 0.45 m from the initial 0.5 m,
without
ith t using
i the
th grid
id to
t position
iti the
th circle.
circle
i l .

1. Select Sketch2
Sketch2 in the Tree View, noting which circle it contains, and choose
the Sketchingg tab
tab..
2. Click on Dimensions (in the Sketching tab) to open the Dimensions Toolbox.
Toolbox.
3. Click on Radius and then select the circle which forms Sketch2
Sketch2 from the
Model View
View..
4. Click somewhere in the Model View to choose where the label for this
dimension will be placed (this does not affect the model in any way, it is
purely for display purposes).
purposes).
5. If yyou now look in the Details View at the bottom left of the screen,, yyou will
now find a section headed Dimensions, which contains the radius R1, set to
0.5 m. For now, change the radius to be 0.45 m .
6. Click on Generate to activate the change.
change.

57
Geometry - Static Mixer
„ Select File>Save and accept the default filename.
filename

58
Meshing
„ Open CFX
CFX--Mesh

59
CFX--Mesh
CFX
„ Tetrahedral unstructured mesh

60
Regions
1. Right
Right--click over Regions in the Tree View.
View.
2. Select Insert>Composite 2D Region.Region.
3. A new object, Composite 2D Region 1, is inserted under
Regions
g in the Tree View
View.. Changeg its name to in in11: if the name is
still highlighted, then just type over the existing name name.. If the
name is not still highlighted, then right-right-click over the name,
select Rename and then type over the existing name name..
4. In the Details View, click in the box next to Location.
Location. There will
now be two buttons, Apply and Cancel, and this means that you
are ready to select the face from the Model View.
View.
Ob .: Use
Obs.:
Obs U the h middle
iddl bottom
b off the
h mouse to rotate the h figure
fi
figure.
.

Similarly,
y create in
in22 and out
out..

61
Surface Mesh

1 . 1. Click on Default Body Spacing in the Tree View, which is contained in


Mesh>Spacing..
Mesh>Spacing
2. In the Details View, change Maximum Spacing to 0.3 m. This is a coarse length scale
f this
for hi model,
d l but
b isi reasonable
bl for
f a first
fi run to generate an approximate
i solution
l i
and to test that the model is working correctly
correctly..
3. Press Enter on the keyboard to set this value.
value.

1. Right-
Right-click over Preview in the Tree View, and select Insert>Preview Group.
Group.
2. You want to view the surface mesh on all of the faces of the mixer, so you need to
select all the faces in the model as follows:
follows:
a. Click in the box next to Location
Location..
b. Left-
Left-click somewhere in the Model View above and to the left of the model.
model.
c. Whilst holding down the mouse button, drag the mouse over the model to form a box which
completely encloses the model.
model. All the surfaces within the box are then selected
selected..
d. Click on Apply in the Details View.
View. The text should change to read 9 2D Regions
Regions..
3. Now right-
right-click over Preview Group 1 and select Generate This Surface Mesh
Mesh..

62
Volume Mesh
1. Click on Options
p in the Tree View,, which is contained
in Mesh
Mesh..
2. Change GTM Filename to StaticMixerMesh
StaticMixerMesh..gtm.
gtm. To do
this, click on the filename shown andd then click on the
button with the three dots
dots.. Type the new name into the
file browser which appears
appears..

Now ggenerate the volume mesh.


mesh.
1. Right
Right--click on Mesh in the Tree View and select
Generate Volume Mesh.
Mesh.

63
Launcher
„ Open CFX
CFX--Pre 11.0
11 0

64
Static Mixer
„ Two inlet pipes and one outlet pipe
„ F ll more
Follow r orr lless: C
C:\Ansys
C:\ A
Inc\
Inc\v110
v110\
\CFX
CFX\ \help\
help\pdf\
pdf\xtutr11.pdf

65
CFX--Pre
CFX
1. Select File > New Simulation
Simulation..
2. Click Quick Setup in the New Simulation File
window..
window
3. Set File name to StaticMixer and then click Save.
Save.

1. Import the mesh file StaticMixerMesh


StaticMixerMesh..gtm,
located in the examples directory,
directory to your
working directory.
directory.
2. Set Domain Name to StaticMixer
StaticMixer..
66
Computational Domain
1. Select Create > Flow Objects > Domain.
Domain. The Create Domain dialog box appears
appears..
2. Set Name to StaticMixer,
StaticMixer then click OK
OK.. The Edit Domain
Domain:: StaticMixer dialog box appears
appears..

To Set the General Options


1. On the General Options panel set Location to Assembly
Assembly..
2. Set Fluids List to Water using the drop
drop--down menu
menu..
3. Set Ref.
Ref. Pressure to 0 [atm].
[atm].
The default settings are suitable for the remaining options on this panel
panel..

To Specify the Fluid Models


1. Click the Fluid Models tab
tab..
2. Under Heat Transfer Model, set Option to Thermal Energy.
Energy.
3. Under Turbulence Model, leave Option set to k-Epsilon.
Epsilon.
4. Under Turbulent Wall Functions,
Functions leave Option set to Scalable
Scalable..
5. Under Reaction or Combustion Model and Thermal Radiation Model, leave Option set to None
None..

67
Boundary conditions
„ Two inlet pipes and one outlet pipe

68
Inlet 1 and inlet 2 Boundary
Conditions
To create the inlet 1 boundary condition
1 Click
1. Cli k B
Boundary
d Condition
C di i .
2. Set Name to in1, then click OK.
3. On the Basic Settings panel, set:
(a) Boundary Type to Inlet
(b) Location to in1
4. Click the Boundary Details tab, then:
(a) Under Flow Regime, set Option to Subsonic.
((b)) Under Mass and Momentum,, set Option
p to Normal Speed
p and Normal Speed
p
to 2.0 m/s.
m/s.
(c) Under Turbulence, set Option to Medium (Intensity = 5%).
(d) Under Heat Transfer, set Option to Static Temperature and Static Temperature to 315 K.
K.
5. Click OK to create the boundaryy condition.

Similarly create inlet 2 boundary condition with Static Temperature as 285 K

69
Inlet 1
„ Create / Flow Objects / Boundary Conditions

70
Outlet Boundary Conditions
To Create the Main Outlet Boundaryy Condition
1. Click Boundary Condition .
2. Set Name to outlet and then click OK.
OK.
3. On the Basic Settings panel, set
set::
(a) Boundary Type to Outlet
(b) Location to out
4. Click the Boundary Details tab, then:
then:
(a) Under Flow Regime, set Option to Subsonic
Subsonic..
(b) Under
U d Mass
M andd Momentum,
M set Option
O i to Average
A S i
Static
Pressure and Relative Pressure to 0 Pa.
Pa.
5. Click OK to create the boundaryy condition
condition..

71
Initial Values
Setting Initial Values
1. Select Create > Flow Objects > Global
Initialisation or click Global Initialisation .
Initialisation,
2. Turn on Turbulence Eddy Dissipation and leave
O i set to A
Option Automatic.
i
3. Click OK to set the initialization details.

72
Convergence
Setting Solver Control
1. Select Create > Flow Objects > Solver Control or click Solver
Control .
2. Under Advection Scheme,, set Option p to Specified
p Blend Factor
and Blend Factor to 0.75. 75. The advection scheme options are
discussed in Advection Scheme Selection.
Selection.
3. Under Convergence
g Control, set Timescale Control to Physical
Timescale, Physical Timescale to 2.0 s, and Max. Max. No
No.. Iterations
to 50.
50.
4. Under Convergence Criteria, leave the Residual Type set to RMS
andd Residual
R id l Target
T set to 1.E-4. An
A RMS value l off at least
l 1.E-5
is usually required for adequate convergence, but the default
value is sufficient for demonstration purposes
purposes..

73
Solver
Writing the Solver (.def) File
Y are now ready
You d to write
i theh Definition
D fi i i file
fil for
f the
h CFX
CFX--Solver
S l .
Solver.
1. Click Write Solver (.def) File .
The Write Solver File dialog box is displayed
displayed..
2. Set File name to StaticMixer.
StaticMixer.def
def..
3. Leave Operation set to Start Solver Manager
Manager..
4. Leave Report Summary of Interface Connections turned off and Quit CFX
CFX--Pre turned
on..
on
5. Click OK
OK..
6. Click Yes when asked if you want to save the CFX file.file.

Obtaining a Solution
When CFX-
CFX-Pre has shut down and the CFX-
CFX-Solver Manager has started, you will be able
to obtain a solution to the CFD problem by following the instructions below.
below.
1. Click Start Run.
Run.

74
CFX--Solver Manager
CFX

75
CFX--Solver Manager
CFX
„ Residuals

76
CFX--Post
CFX
Open CFX
CFX--Post 11.0

File / Load Results

Creating
C i aN New Pl
Plane (Create/
(C / Object
Obj / Plane)
Pl )
1. From the main toolbar click Create Plane .
2. In the New Plane window type the name Slice.
3. Click OK.

77
Slice Plane
„ Definition / Method / XY Plane
„ Z / 1 [m] / Apply

78
CFX - Post
„ Colour / Mode Variable / Variable Temperature

79
CFX 10.0 – Mesh Refinement
„ Modifying the Mesh Generation
1. Open the StaticMixer Project (or
StaticMixer wbdb) from the ANSYS Workbench
StaticMixer.wbdb)
2. Open CFX
CFX--Mesh
3. Click on Model/Mesh/Spacing/Default
Model/Mesh/Spacing/Default Body
Spacing (in the Tree View)
4. Change Maximum Spacing to 0.2 m. Press Enter
on the keyboard
y to set this value.

80
Mesh Refinement
„ Maximum Spacing from 0.3 to 0.2 m

81
Inflation
1. Click on Model/Mesh/Spacing/Inflation
Model/Mesh/Spacing/Inflation (in the Tree View)
2 Set Number of Inflated Layers to 5.
2. 5
3. Set Expansion Factor to 1.3.
4. Right
Right-
g -click on Inflation and select Insert/Inflated
/ Boundary.
y
5. Click in the box next to Location, and then click on Default 2D
Region in the Tree View. Click on Apply in the Details View.
Th text should
The h ld change
h to read
d 1 Composite.
C i
6. Set Maximum Thickness to 0.2 m.

82
Inflation
„ Example at the outlet

83