Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction to CFX
WS5-1
Introduction
The Purpose of the tutorial is to model cavitation in a centrifugal pump, which involves the use of a rotation domain and the cavitation model.
The problem consists of a five blade centrifugal pump operating at 2160 rpm. The working fluid is water and flow is assumed to be steady and incompressible.
Workshop Supplement
WS5-2
Workbench
Workshop Supplement
7. Click Open
WS5-3
Workshop Supplement
WS5-4
Workshop Supplement
WS5-5
Workshop Supplement
11. Make sure Rotation Axis under Axis Definition is set to Global Z 11. Switch to the Fluid Models tab, and set the following: 12. Turn on Homogeneous Model in the Multiphase section 13. Under Heat Transfer set the Option to Isothermal, with a Temperature of 25 C 14. Set Turbulence Option to Shear Stress Transport 15. Click OK
WS5-6
Workshop Supplement
1. Insert a boundary condition named Inlet 2. On the Basic Settings tab, set Boundary Type to Inlet 3. Set Location to INLET 4. Set Frame Type to Stationary 5. Switch to the Boundary Details tab 6. Specify Mass and Momentum with a Normal Speed of 7.0455 [m/s] 7. Switch to the Fluid Values tab 8. For Water Liquid, set the Volume Fraction to a Value of 1 9. For Water Vapour, set the Volume Fraction to a Value of 0 10.Click OK
WS5-7
Workshop Supplement
Inset a boundary condition named Outlet On the Basic Settings tab, set Boundary Type to Opening Set Location to OUT Set Frame Type to Stationary Switch to the Boundary Details tab Specify Mass and Momentum using Entrainment, and enter a Relative Pressure of 600,000 [Pa] 7. Enable the Pressure Option and set it to Opening Pressure 8. Set Turbulence Option to Zero Gradient 9. Switch to the Fluid Values tab 10.For Water Liquid, set the Volume Fraction to a Value of 1 11.For Water Vapour, set the Volume Fraction to a Value of 0 12.Click OK
WS5-8
Periodic Interface
1. Click to create an Interface, and name it Periodic 2. Set the Interface Type to Fluid Fluid 3. For Interface Side 1, set the Region List to DOMAIN INTERFACE 1 SIDE 1 and DOMAIN INTERFACE 2 SIDE 1 (use the icon and the Ctrl key) 4. For Interface Side 2, set the Region List to DOMAIN INTERFACE 1 SIDE 2 and DOMAIN INTERFACE 2 SIDE 2 5. Set the Interface Models option to Rotational Periodicity 6. Under Axis Definition, select Global Z 7. Set Mesh Connection Option to 1:1 8. Click OK
Workshop Supplement
WS5-9
Workshop Supplement
1. Insert a boundary condition named Stationary 2. Set it to be a Wall, using the STATIONARY location 3. On the Boundary Details tab, enable a Wall Velocity and set it to Counter Rotating Wall 4. Click OK
5. In the Outline Tree, right-click on the Default Domain Default boundary and rename it to Moving
The default behavior for the Moving boundary condition is to move with the rotating domain, so there is nothing that needs to be set
WS5-10
Initialization
Workshop Supplement
1. Click to initialize the solution 2. On the Fluid Settings form, set Water Liquid Volume Fraction to Automatic with Value, and set the Volume Fraction to 1 3. Set Water Vapour Volume Fraction to Automatic with Value, and set the Volume Fraction to 0 4. Click OK
WS5-11
Solver Control
1. Double click Solver Control in the Outline tree 2. Set Timescale Control to Physical timescale
Workshop Supplement
A commonly used timescale in turbomachinery is 1/omega, where omega is the rotation rate in radians per second. You can use an expression to determine a timestep from this. In this case, 2/omega will be used to achieve faster convergence. 3. Enter the following expression in the Physical Timescale box: 1/(pi*2160 [min^-1]) 4. Set Residual Target to 1e-5 5. On the Advanced Options tab, turn on Multiphase Control, then turn on Volume Fraction Coupling and set the Option to Coupled 6. Click OK
WS5-12
Output Control
Workshop Supplement
1. Double Click on Output Control in the Outline tree 2. On the Monitor tab, turn on Monitor Options 3. Under Monitor Points and Expressions, create a new object and call it InletPTotalAbs 4. Set Option to Expression 5. Specify the following expression: massFlowAve(Total Pressure in Stn Frame )@Inlet 6. Create a new object called InletPStatic, and set Option to Expression 7. Specify the following expression: areaAve(Pressure )@Inlet 8. Click OK
WS5-13
Solver
1. Close CFX-Pre and switch to the Workbench Project window 2. Save the project 3. Now double click on Solution in the Project Schematic to start the Solver Manager 4. When the Solver Manager opens, click Start Run 5. When the solution has completed, close the Solver Manager and return to the Project window 6. Save the project
Workshop Supplement
WS5-14
Post-processing
1. View the results in CFD-Post by double clicking Results in the Project Schematic 2. Insert a Contour by clicking 3. For the Location, click , expand Regions and then select BLADE 4. Set Variable to Absolute Pressure from the extended list 5. Set Range to Global 6. On the Render tab switch off Lighting and Show contour Lines 7. Click Apply
Workshop Supplement
WS5-15
Post-processing
9. Insert another Contour on the HUB location, using the variable Absolute Pressure coloured by Local Range. Turn off Lighting and Show Contour Lines.
Workshop Supplement
10. Insert another Contour on the SHROUD location, using the variable Absolute Pressure coloured by Local Range. Turn off Lighting and Show Contour Lines. The minimum pressure is above the Saturation Pressure of 2650 Pa for Water here. In the next step, the outlet pressure will be reduced enough to initiate Cavitation.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS5-16
Workshop Supplement
3. Change the name of the new Simulation to Cavitation 4. Use the arrow next to the A cell to Rename it to No Cavitation 5. Save the Project 6. Double-click Setup for the Cavitation simulation to open CFX-Pre
WS5-17
Physics Modifications
1. 2. 3. 4. 5. 6. 7. 8. 9.
Workshop Supplement
Edit the Default Domain On the Fluid Pair Models tab set Mass Transfer to Cavitation Set Option to Rayleigh Plesset Turn on Saturation Pressure Set a Saturation Pressure of 2650 [Pa] Click OK Edit the Outlet Boundary Condition On the Boundary Details tab, set the Relative Pressure to 300,000 [Pa] Click OK
Most cavitation solutions should be performed by turning cavitation on and then successively lowering the system pressure over several runs to more gradually induce cavitation. To speed up this workshop, a sudden change in pressure is introduced. Note that this approach may not be suitable for modelling some industrial cases.
WS5-18
Physics Modifications
1. 2. 3. 4. 5. 6. Edit Solver Control Set the Max. Iterations to 150 Set the Residual Target to 1e-4 Click OK Close CFX-Pre and save the project In the Project Schematic, drag cell A3 onto cell B3
The non-cavitating solution will be used as the initial guess for the cavitating solution
Workshop Supplement
WS5-19
Cavitation Solution
There is a significant spike in residuals, in part due to the outlet pressure difference, but also due to the fact that the absolute pressure is low enough to induce cavitation.
1. When the run completes, close the Solver Manager and return to the Project Schematic 2. Save the project 3. Double-click Results for the Cavitation project to open CFD-Post
Workshop Supplement
WS5-20
Post-processing
1. If it is not enabled, turn on visibility for the Wireframe and turn off visibility for any User Locations and Plots 2. Create an XY Plane at Z = 0.01 [m] 3. Colour it by Absolute Pressure (the variable is available in the Extended List by clicking ). Use a Global Range
The minimum absolute pressure is equivalent to the Saturation Pressure specified earlier, which is a strong hint that some cavitation has occurred
Workshop Supplement
4. Change the Colour Variable to Water Vapour.Volume Fraction 5. Change the Colour Map to Blue to White
WS5-21
Post-processing
1. Turn off visibility for Plane 1 2. Create a Volume using the Isovolume method 3. Set the Variable to Water Vapour.Volume Fraction 4. Set Mode to Above Value, and enter a value of 0.5
5. To view 360 degrees of the model, double-click Default Transform 6. Uncheck Instancing Info from Domain 7. Set # of copies to 5 8. Set # of Passages to 5 9. Click OK
Workshop Supplement
WS5-22
Post-processing
Workshop Supplement
The main area of cavitation exists between the suction side of the blade and the shroud in this geometry. A secondary area of cavitation is just behind the leading edge of the blade on the pressure side Further steps to try:
1. Calculate torque on the BLADE using the function calculator (hint, use the extended region list to find the BLADE, and use Global Z axis) 2. Plot velocity Vectors on Plane 1, using the variable Water Liquid.Velocity in Stn. Frame 3. Calculate the mass flow through the pump (hint: use the function calculator to evaluate massFlow at the Outlet region) 4. Using a similar method to step 2, calculate the drop in Total Pressure from Inlet to Outlet 5. Plot Streamlines, starting from the Inlet location
WS5-23