Sie sind auf Seite 1von 20

LAB 5: Flow over the cylinder

1.0 Geometry:
Inventor Fusion Make geometry using inventorFusion Open inventor fusion, change unit to mm, make the far-field (x = 400mm and y = 200mm) and the circle (d = 50 mm). Extrude 10 mm.

Figure 1 Far-field 400mm x 200 mm

150mm

200mm

Figure 2 making circle

Figure 3 extrude 10mm

Saving geometry File save as file name : Flow over cylinder geometry, save as type : .stl. select working directly to save file.

2.0 Meshing
Using ICEM CFD Open ICEM CFD - Import geometry File import geometry stl choose file open- generate - done

Repair Geometry Geometry repair geometry filter points and curves and set tolerance to 0.0001- apply

Join curves Geometry creat/modify curves concatenate/Reapproximate curves (key=g) select curves and middle click.

Name Parts Right click on parts creat parts label all curves as curves and surfaces as follows Delete empty parts

Cylinder Outlet Inlet Walls

Figure 4 name parts

Blocking Turn off surfaces, Blocking Creat block part select solid apply Associate - Associate edge to curves select edge select curve middle click. Split block

Figure 5 split block

Ogrid block select block as shown below- middle click apply

Figure 6 Ogrid block

Delete block Delete block select block to delete apply

Associate edge to curve Associate - Associate edge to curve snap project vertices

Edit Edge Edit edge split edge linear - select edge

Pre Mesh Pre mesh params Edge Params (define as shown below) select copy parameter Thickness subdivide into 4

30 20

20

60

10 20

20

Figure 7 edge parameters

Turn on pre-mesh Blocking pre-mesh - yes

Figure 8 Pre-mesh

File mesh load from blocking (save file)

Write output file Output select solver output solver (select ansys cfx) Common Structural solver (select ansys) apply

Write CFX input file Write input yes (to save the current project first) leave everything by default in window below click done.

Close ICEM CFD after saving the file.

3.0 CFX
CFX Pre
-

Open cfx open cfx pre open new file general ok


Import Mesh Locate Mesh Folder File Type ICEM CFD (*cfx*cfx5*msh) change unit to mm.

Create a Domain Enter Name Flow over cylinder Click OK to apply.

In General Options change location to solid and Fluid List to Air at 25 C everything else remains the same. In Fluid Models Turbulence Option is changed to None (Laminar). In Initialisation, tick Domain Initialisation and Initial conditions. Finally click OK.

Creating boundary condition


Basic Setting Name Domain Boundary Type Location Mass and Momentum INLET Inlet INLET Option Normal Speed Normal Speed = 30 m/s Mass and Momentum OUTLET Flow over cylinder Outlet OUTLET Option Average Static Pressure Relative Pressure = 0 Pa Wall Influence on Flow WALL Wall WALL Option Free Slip Wall Influence on Flow CYLINDER Wall CYLINDER Option No Slip Boundary Detail

Solver Control

Select Solver Control from the tree. In Basic Settings set: Min. Iterations = 1 Max. Iterations = 1000 Time Scale Factor = 1 Residual Target = 0.000001 Equation Class Settings Continuity Finally click on OK.

Output Control

Select Output Control from the tree. Everything remains the same in Results.

Choose Backup and click on Add new item Icon Enter Name Click OK. Iteration Interval = 5 Click OK.

Rename and Save File

Create a folder in C Drive with the name Cylinder Simulation and then save the CFX-Pre file with the following name Flow over cylinder Simulation

Go to File Save Simulation Choose folder in C Drive Rename CFX file Click on Save. Writing Solver File Write Solver input File Save.

Solving - Run solver and monitor save file again to working directory (overwrite) solver window will open.
Wait for simulation to finish open post process.

Post Processing
Create Plane The following start up screen is prompted in CFX Post Processing. The first thing is to create a plane. The modeling was done such that that y-axis is the direction along the length, y-axis is along the vertical direction and z-axis is the thickness. A XY-Plane will be created at Z = 5 mm (represents the centre of the duct) Location Plane Name (Mid Plane) Click OK Method (XY Plane) Z = 5mm APPLY

Figure 9 Plane

Velocity Vector Next we plot vectors on the XY- Plane. In our case we will be plotting velocity vectors. Vector Name (Velocity Vector) Click OK Geometry Domains (All Domains) Locations (Mid Plane) Sampling (Face Centre) Reduction (Reduction Factor) Factor (1) Variable (Velocity) Symbol Symbol Size (0.5) APPLY

Figure 10 Velocity vector

Contour

Contour Name (Pressure Contour) Click OK Geometry Domains (All Domains) Locations (Mid Plane) Variable (Pressure) Range (Global) # of Contours (50) APPLY

From the User Location and Plots tree, turn off the Velocity Vector.

Figure 11 Pressure contour

Streamline

Streamline Name (Streamline) Click OK Geometry Type (Surface Streamline) Surface (Mid Plane) Start From (Equally Spaced Samples) # of Points (1000) Variable (Velocity) Direction (Forward and Backward) APPLY

From the User Location and Plots tree, turn off the Pressure Contour.

Saving Results

After obtaining appropriate results in image form, example the velocity vector, pressure contour and streamline, we can always save the image as a JPEG extension. The images will be saved in the same folder in which the initial CFX-Pre file is saved.

Right Click on the screen (Empty Space). Go to Print Click on file icon Specify name Save Format (JPEG) Tick (White Background) Click on PRINT

Create Polyline At the cylinder Location Polyline Name (flow over cylinder Profile) Click OK Geometry Method (Boundary Intersection) Boundary List (cylinder) Intersect With (Mid Plane) APPLY

Figure 12 polyline

Vertical line at the center of the cylinder You can also make polyline using the Line option. In this option we enter the starting co-ordinate (x1,y1.z1) and the ending co-ordinate (x2,y2.z2). Location Line Name (Enter Name) Click OK Geometry Method (Two Points) (Point 1 coordinate) (Point 2 co-ordinate) Sample (Data point interval) APPLY

Figure 13 creating line

Plotting Velocity Profile over cylinder Chart Name (velocity around the cylinder) Click OK General type XY , title velocity profile, Data series mid-plane, X axis variable (X), Y axis variable (velocity) - apply

Figure 14 velocity profile around the cylinder

Plotting Velocity Profile at the center of cylinder

Chart Name (velocity at the center) Click OK General type XY , title velocity profile at the center, Data series mid-plane, X axis variable (y), Y axis variable (velocity) - apply

Figure 15 Velocity profile at mid plane

You can also export the data as excel file.

Export Enter File Name (Velocity Profile at Outlet) SAVE

Saving and Loading CFX Post Processing File

File Save State Enter File Name Click on SAVE.

To load the file again, first open the result file (.res file) Load State Select File (.cst file) Click OPEN

Das könnte Ihnen auch gefallen