33
Tutorial: Vane Pump Modeling in ANSYS FLUENT Introduction This tutorial illustrates how to setup and run a vane pump analysis in A N S Y S FLUENT 13. This tutorial demonstrates how to do the following: Create an initial mesh. Set up a problem for a dynamic mesh. Specify the motion of dynamic zones using a compiled user-defined function ( UDF). Preview the dynamic mesh before starting the calculation. Perform transient dynamic mesh calculation. Postprocess the resulting data . Prerequisites This tutorial assumes that you are familiar with the FLUENT interface. Some of he basic steps in the setup and solution procedures will not be shown explicitly . You should be familiar with the dynamic mesh model and UDFs. Refer to the FLUENT 13 User’s Guide and the FLUENT UDF Manual for more information. Problem Description A vane pump consists of a rotor with radial slots positioned off-center in a housing bore. A generic vane pump geometry is shown in Figure 2, where the rotor and housing are both circular. Vanes that fit closely in rotor slots slide in and out as the rotor turns. Pumping action is caused by the expanding and contracting volumes contained by the rotor, vanes and housing.

FLUENT MDM Tut 06 Vane Pump

Embed Size (px)

DESCRIPTION

vane pump

Citation preview

Page 1: FLUENT MDM Tut 06 Vane Pump

Tutorial: Vane Pump Modeling in ANSYS FLUENT

Introduction

This tutorial illustrates how to setup and run a vane pump analysis in ANSYS FLUENT 13. This tutorial demonstrates how to do the following:

• Create an initial mesh.

• Set up a problem for a dynamic mesh.

• Specify the motion of dynamic zones using a compiled user-defined function (UDF).

• Preview the dynamic mesh before starting the calculation.

• Perform transient dynamic mesh calculation.

• Postprocess the resulting data.

Prerequisites

This tutorial assumes that you are familiar with the FLUENT interface. Some of he basic steps in the setup and solution procedures will not be shown explicitly.

You should be familiar with the dynamic mesh model and UDFs. Refer to the FLUENT 13 User’s Guide and the FLUENT UDF Manual for more information.

Problem Description

A vane pump consists of a rotor with radial slots positioned off-center in a housing bore. A generic vane pump geometry is shown in Figure 2, where the rotor and housing are both circular. Vanes that fit closely in rotor slots slide in and out as the rotor turns. Pumping action is caused by the expanding and contracting volumes contained by the rotor, vanes and housing.

Page 2: FLUENT MDM Tut 06 Vane Pump

Meshing Requirements

In this tutorial, a UDF is used to dynamically move the mesh at each time step. Hence, follow some specific meshing rules so that both the initial mesh and all subsequent motion is correct. With this meshing process, the pump core can be meshed with a high aspect ratio map mesh scheme. Each mesh node displacement is composed of a solid body rotation and a radial translation. The node displacement is a function of eccentricity, rotational speed, and rotor/housing diameters. The pump gap (if created) is also meshed and moved in a similar manner to the core. The meshing requirements (Figure 1) are as follows:

• Rotation must be about the z-axis.

• The origin must be located on the cylindrical axis of the rotor (i.e., the small circle or profile).

• The pump housing (i.e., the large circle or profile) must be placed to the left

of the rotor and have a y-coordinate equal to zero.

• If pump contains gaps, one gap must be placed on the positive x axis.

• The vanes must be equally spaced.

• The pump core must be defined as a single fluid zone.

• If the pump contains gaps, all the gaps must be defined as a single fluid zone.

Figure 1: Meshing Requirements

R = radius of pump housing (if applicable), housing may be a profile r = radius of rotor d = offset w = vane width g = gap width

Page 3: FLUENT MDM Tut 06 Vane Pump

The schematic of the pump is shown in Figure 2. The meshed vane pump geometry of the circular housing is shown in Figure 3. The pump core is meshed with a mapped mesh scheme. The pump gaps are meshed using a high aspect ratio mapped mesh scheme. The inlet and outlet pipes are meshed with a tetrahedral mesh. The gaps and inlet/outlet pipes are connected to the pump core using non-conformal grid interfaces.

Figure 2: Problem Schematic

Figure 3: Meshed Vane Pump (Circular Housing)

3

Page 4: FLUENT MDM Tut 06 Vane Pump

Figure 4: Mesh Detail for Single Vane

Preparation

1. Copy the files circle-pump.msh, input.txt, vane.c, gerotor_vane_smoothing.c and tait.c to your working folder. Note: The input file must be called input.txt and must be located in the same folder as

the case file.

2. Start the 3D (3d) version of FLUENT.

Step 1: Grid

1. Read the mesh file circle-pump.msh.

File ���� Read ����Mesh...

FLUENT will read the file and report the progress in the console.

Step 2: General Settings

� General ���� Scale

1. Change the grid units to mm.

Page 5: FLUENT MDM Tut 06 Vane Pump

(a) Select mm from the Mesh Was Created In drop-down list in Scaling group box.

(b) Select mm from the View Length Unit In drop-down list

Note: Do not scale the grid.

(c) Close the Scale Grid panel.

� General ���� Display

(a) Retain the default parameters. (b) Click Display.

Page 6: FLUENT MDM Tut 06 Vane Pump

Figure 5: Grid Display

Use the right mouse button to check which zone number corresponds to each boundary. If you click the right mouse button on one of the boundaries in the graphics window, its zone number, name, and type will be printed in the FLUENT console.

Note: User-Defined Function In pump models without gaps, incompressible liquid and constricting volumes create unphysical pressure spikes. Adding liquid compressibility through a UDF provides a realistic solution. If the pump contains gaps, this liquid compressibility UDF is not required as any pressure increase in the liquid will cause it to escape through the gaps. The model here contains gaps; hence it is not necessary to use the compressibility UDF. However, the compressibility UDF is included for completeness, though it will not be used by the solver. The fi le input.txt is read w h e n the UDF is loaded. This cont a ins the parameters required for the UDF (see Appendix 1). All inputs to the file input.txt must be in SI units.

� General (a) Select Transient from Time (b) Retain the default values for the other parameter.

Page 7: FLUENT MDM Tut 06 Vane Pump

Step 3: UDF

1. Compile the UDF library using the source files vane.c, gerotor_vane_smoothing.c and tait.c.

Define � User-Define � Functions � Compiled…

Page 8: FLUENT MDM Tut 06 Vane Pump

(a) Click the Add... button to open the Select File panel. i. Select the source files, vane.c, gerotor_vane_smoothing.c and tait.c and click

OK. (b) Click Build to build the directories.

(c) Read the information in the Information panel and click OK. (d) Click Load to load the UDF.

Step 4: Models

� Models

1. Enable the standard k- epsilon turbulence model. Models � Viscous � Edit

Page 9: FLUENT MDM Tut 06 Vane Pump

(a) Select k-epsilon (2 eqn) in the Options group box. (b) Retain the default values for the other parameters. (c) Click OK to close the Viscous Model panel.

Step 5: Materials

� Materials

� Materials ���� Fluid ���� Create/Edit

Page 10: FLUENT MDM Tut 06 Vane Pump

(a) Delete air from the Name entry box and enter oil. (b) Enter 0.008 for Viscosity.

(c) Select user-defined from the Density drop-down list to open the User-Defined Functions panel.

i. Select tait_density::libudf and click OK to close the User-Defined Functions panel.

(d) Click Yes in the dialog box that opens to overwrite air.

(e) Select user-defined from the Speed of Sound drop-down list to open the User- Defined Functions panel.

i. Select tait_speed_of_sound::libudf and click OK to close the User-Defined Functions panel.

(f) Click Change/Create an d close the Materials panel.

Page 11: FLUENT MDM Tut 06 Vane Pump

Step 6: Boundary Conditions

� Boundary Conditions � Inlet

(a) Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Turbulence group box. (b) Set the Turbulent Intensity to 5%. (c) Set the Hydraulic Diameter to 12 mm.

(d) Click OK to close the Pressure Inlet panel.

� Boundary Conditions � outlet

(a) Set Gauge Pressure to 2000000.

Page 12: FLUENT MDM Tut 06 Vane Pump

(b) Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Turbulence group box.

(c) Set the Backflow Turbulent Intensity to 5%. (d) Set the Backflow Hydraulic Diameter to 10 mm. (e) Click OK to close the Pressure Outlet panel.

Step 7: Grid Interfaces

� Mesh Interface � Create/Edit

1. Create an interface called intf-gap.

(a) Select intf-pump-gaps from the Interface Zone 1 selection list. (b) Select intf-pump-vanes from the Interface Zone 2 selection list. (c) Enter intf-gap for Grid Interface.

(d) Click Create.

Note: When you select intf-gap in the list of created interfaces, Boundary Zone 1 and Boundary Zone 2 should show wall-14 and wall-15 respectively.

2. Create an interface called intf-pump.

Page 13: FLUENT MDM Tut 06 Vane Pump

(a) Select intf-pump-pipes from the Interface Zone 1 selection list. (b) Select intf-pump-housing from the Interface Zone 2 selection list. (c) Enter intf-pump for Grid Interface.

(d) Click Create and close the Grid Interfaces panel.

Step 8: Dynamic Mesh

� Dynamic Mesh

(a) Enable Dynamic Mesh and In-Cylinder in the Models group box.

Page 14: FLUENT MDM Tut 06 Vane Pump

(b) Click the In-Cylinder tab and specify parameters as shown in the table:

Parameter Value Crank Shaft Speed 500 Starting Crank Angle 0 Crank Period 360 Crank Angle Step Size 0.25

(c) Click OK to close the Dynamic Mesh Parameters panel.

� Dynamic Mesh � Create/Edit

Page 15: FLUENT MDM Tut 06 Vane Pump

(a) Select fluid-pump from the Zone Names drop-down list. (b) Select User-Defined in the Type group box. (c) Click the Motion Attributes tab and select vane pump core::libudf from the Mesh Motion UDF drop-down list. (d) Click Create. (e) Select fluid-gap from the Zone Names drop-down list. (f) Select User-Defined in the Type group box. (g) Click the Motion Attributes tab and select vane pump gap::libudf from the Mesh

Motion UDF drop-down list. (h) Click Create.

(i) Similarly, create the dynamic zones for inner-gap-wall, pump-rotor, wall-14, and wall-15 by selecting the UDF walls::libudf.

(j) Close the Dynamic Mesh Zones panel.

Step 9: User-Defined Function Hooks and Memory

1. Set the initialization function hook. Define ���� User-Defined ���� Function Hooks

(a) Select init sector::libudf for Initialization.

(b) Click OK to close the User-Defined Function Hooks panel.

2. Define one user-defined memory location. Define ���� User-Defined ���� Memory…

Page 16: FLUENT MDM Tut 06 Vane Pump

(a) Increase the Number of User-Defined Memory Locations to 1. (b) Click OK to close the User-Defined Memory panel.

Step 10: Solution

� Solution Methods 1. Select PISO transient algorithm.

Page 17: FLUENT MDM Tut 06 Vane Pump

(a) Select PISO from the Pressure-Velocity Coupling drop- down list. (b) Retain the default values for other parameters.

� Solution Controls

(a) Keep the default values

� Monitors

(a) Enable Plot in the Options group box.

(b) Click OK to close the Solution Controls panel.

� Solution Initialization

Page 18: FLUENT MDM Tut 06 Vane Pump

(a) Click Initialize and close the Solution Initialization panel.

FLUENT warns (in the console) that you should display the UDM-0 using cell value to verify that the sector numbers are calculated correctly.

� Display contours of UDM-0 (Figure 6).

Note: This should always be done after setup and initialization to verify that the

sector numbers are correct.

Page 19: FLUENT MDM Tut 06 Vane Pump

(a) Enable Filled and disable Node Values in the Options group box. (b) Set Levels to 8.

(c) Select User Defined Memory... and User Memory 0 from the Contours of drop-down lists.

(d) Select intf-pump-housing, intf-pump-vanes, and wall: 0 from the Surfaces selection list.

(e) Click Display.

For better rendering of the image, enable Headlights On in the Lights panel, select ‘Phong’ from the Lighting Method drop-down list and click Apply.

Page 20: FLUENT MDM Tut 06 Vane Pump

Figure 6: UDM-0 Sectors

� Save case and data before Mesh Motion Preview with circle-pump.cas.gz and circle-pump.dat.gz.

� Calculation Activities � Edit

� Perform mesh motion preview for 20 time steps.

Dynamic Mesh � Preview Mesh Motion…

Page 21: FLUENT MDM Tut 06 Vane Pump

(a) Set Number of Time Steps to 20. (b) Click Preview. � Read the files circle-pump.cas.gz and circle-pump.dat.gz.

Note: A case and corresponding data file must always be read into FLUENT prior to starting a mesh motion preview, a new solution, or restarting a solution.

� Run the transient solution for 200 time steps (i.e., 50 degrees of rotation).

A complete cycle would require 1440 time steps.

� Run Calculation

(a) Set the Number of Time Steps to 200.

(b) Click Calculate.

Page 22: FLUENT MDM Tut 06 Vane Pump

Step 11: Postprocessing

1. Display the pressure contours at 20 degrees of rotation (Figure 7). Read the case and data files circle-pump0080.cas.gz and circle-pump0080.dat.gz respectively.

� Graphics And Animations � Contours � SetUp

(a) Select Pressure... and Static Pressure from the Contours of drop-down lists.

(b) Select all surfaces except default-interior, default-interior:0, and default-interior:0:1 from the Surfaces selection list.

(c) Click Display.

2. Similarly, display the pressure contours at 40 degrees of rotation (Figure 8). Read the case and data files circle-pump0160.cas.gz and circle-pump0160.dat.gz, respectively.

Note: The profile file name must be called data outer.txt and must be located in the same folder as the

case file.

Page 23: FLUENT MDM Tut 06 Vane Pump

Figure 7: Pressure Contours After 20o of Rotation

Figure 8: Pressure Contours after 40o of Rotation

Page 24: FLUENT MDM Tut 06 Vane Pump

The circular pump case was composed of a circular rotor and circular housing bore. Vane pumps do not always conform to this geometry requirement. The rotor or housing may have a non-circular profile. In such cases, a profile file is required as input for the UDF. In the following example (see Figure 9), the housing of the pump is elliptical in shape. A sample of this profile is shown (Appendix 2).

Figure 9: Vane Pump Geometry (Elliptical Hous ing)

Setup and Solution (Case 2)

In this case, the setup and solution is similar to the circular pump above.

Preparation

1. Copy the files ellipse-pump.msh, input.txt, vane.c, data_ outer.txt, tait.c and gerotor_vane_smoothing.c to your working folder.

Note: The file input.txt contains input data (zone ID, core ID, gap ID, radius, etc.) for the pump. This data fo r ellipse pump is different from that for the circular pump because the respective meshes are different. Hence, the input.txt file used for the circular pump needs to be edited before it can be used for the ellipse pump. For information, see Appendix 1.

2. Start the 3D (3d) version of FLUENT.

Page 25: FLUENT MDM Tut 06 Vane Pump

Step 1: General

1. Read the mesh file ellipse-pump.msh.

File � Read �case...

FLUENT will read the file and report the progress in the console window.

2. Change the grid units to mm.

General � Scale...

(a) Select mm from the Grid Was Created In drop-down list in the Unit Conversion group box.

(b) Click the Change Length Units button. (c) Click Scale. (d) Close the Scale Grid panel.

3. Display the grid (Figure 10).

General � Display

(a) Retain the default parameters. (b) Click Display.

Rotate the grid using the left-mouse button to get the view shown in Figure 10.

Step 2: User-Defined Function

Same as Step 3 for circular pump .

Step 3: Models

Same as Step 4 for circular pump.

Page 26: FLUENT MDM Tut 06 Vane Pump

Figure 10: Grid Display

Step 4: Materials

Same as Step 5 for circular pump.

Step 5: Boundary Conditions

1. Set boundary conditions for inlet. � Boundary conditions � Inlet

Page 27: FLUENT MDM Tut 06 Vane Pump

1. Set boundary conditions for Inlet

(a) Change the type for inlet from wall to pressure-inlet.

i. Select inlet from the Zone selection list and pressure-inlet from the Type se- lection list.

ii. Click OK in the Question panel that opens.

(b) Click the Set... button to open Pressure Inlet panel.

i. Select Intensity and Hydraulic Diameter from the Specification Method drop- down list in the Turbulence group box.

ii. Set the Turbulent Intensity to 5%. iii. Set the Hydraulic Diameter to 15 mm.

iv. Click OK to close the Pressure Inlet panel.

2. Set boundary conditions for outlet.

(a) Change the type for outlet from wall to pressure-outlet.

(b) Click the Set... button to open the Pressure Inlet panel.

(c) Specify Gauge Pressure as 2000000.

(d) Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Turbulence group box.

(e) Set the Turbulent Intensity to 5%. (f ) Set the Hydraulic Diameter to 15 mm.

(g) Click OK to close the Pressure Outlet panel.

Step 6: Grid Interfaces

Same as Step 7 for circular pump .

Step 7: Dynamic Mesh

1. Define dynamic mesh parameters.

� Dynamic Mesh � Options � In-Cylinder � Settings…

(a) Enable Dynamic Mesh and In-Cylinder from the Model group box.

(b) Click the In-Cylinder tab and specify the parameters shown in the table:

Parameter Value Crank Shaft Speed 500 Starting Crank Angle 0 Crank Period 360 Crank Angle Step Size 0.25

2. Define dynamic mesh zones.

Dynamic Mesh � Create/Edit…

(a) Select fluid-pump from the Zone Names drop-down list. (b) Select User-Defined from the Type group box. (c) Select vane_pump_core::libudf from the Mesh Motion UDF drop-down list.

Page 28: FLUENT MDM Tut 06 Vane Pump

(d) Click Create.

(e) Select fluid-gap from the Zone Names drop-down list (f ) Select User-Defined from the Type group box. (g) Select vane pump gap::libudf from the Mesh Motion UDF drop-down list. (h) Click Create. (i) Similarly, for the zones gap-wall, pump-rotor, wall-9 and wall-16 select the UDF

walls::libudf.

These zones are moving walls, where wall-9 and wall-16 are created in Step 6: Grid Interfaces.

Step 8: User-Defined Function Hooks and Memory

Same as Step 9 for circular pump.

Step 9: Solution

� Solution Methods

1. Select PISO transient algorithm.

(a) Select PISO from the Pressure-Velocity Coupling drop-down list. (b) Retain the default values for other parameters. (c) Click OK to close the Solution Controls panel. � Solution Controls

Retain the default values

� Monitors 2. Enable plotting of residuals.

Monitors � Residual � Edit

(a) Enable Plot in the Options group box.

(b) Click OK to close the Residual Monitors panel.

3. Initialize the flow using default values.

Solution Initialization � Initialize

(a) Click Initialize

4. Display contours of UDM-0 (Figure 11).

Graphics and Animation � Contours

(a) Enable Filled and disable Node Values from the Options group box. (b) Set Levels to 4. The number of levels is equal to the number of vanes.

(c) Select User Defined Memory... and User Memory 0 from the Contours of drop-down lists.

(d) Select intf-pump-housing, intf-pump-vanes, and wall:0:1 from the Surfaces selection list.

(e) Click Display.

Page 29: FLUENT MDM Tut 06 Vane Pump

Figure 11: UDM-0 Sectors

5. Set the autosave frequency.

Calculation Activities � Autosave every time � Edit (a) Set Autosave Case File Frequency and Autosave Data File Frequency to 8.

The files will be saved at every two degrees of rotation. (b) Enter ellipse-pump.gz for Filename.

(c) Click OK to close the Autosave Case/Data panel.

6. Save the initial case and data files (ellipse-pump.cas.gz).

7. Display the grid as shown in Figure 9.

8. Perform mesh motion preview for 20 time steps.

Dynamic Mesh � Preview Mesh Motion (a) Set Number of Time Steps to 20. (b) Click Preview.

9. Read the files ellipse-pump.cas.gz and ellipse-pump.dat.gz.

Note: A case and corresponding data file must always be read into FLUENT prior to starting a mesh motion preview, a new solution, or restarting a solution.

10. Run the transient solution for 200 time steps (i.e., 50 degrees of rotation).

A complete cycle would require 1440 time steps.

Run Calculation � (a) Set the Number of Time Steps to 200.

(b) Click Iterate.

Page 30: FLUENT MDM Tut 06 Vane Pump

Step 10: Postprocessing

1. Display the pressure contours at 10 degrees of rotation Figure 12. Read the case and data files ellipse-pump0040.cas.gz and ellipse-pump0040.dat.gz, respectively.

Grahpics and Animation � Contours �

(a) Select Pressure... and Static Pressure from the Contours of drop-down lists.

(b) Select all surfaces except default-interior, default-interior:0, and default-interior:0:1 from the Surfaces selection list.

(c) Click Display.

2. Similarly, display the pressure contours at 44 degrees of rotation. Read the case and data files ellipse-pump0176.cas.gz and ellipse-pump0176.dat.gz, respectively.

Page 31: FLUENT MDM Tut 06 Vane Pump

Figure 12: Pressure Contours After 10o of Rotation

Figure 13: Pressure Contours After 44o of Rotation

Page 32: FLUENT MDM Tut 06 Vane Pump

Summary

In this tutorial, you set up and modeled a vane pump of circular and elliptical housing respectively. You set up a dynamic mesh with dynamic zones defined using a UDF. You then performed a transient dynamic mesh calculation and examined the pressure contours at various stages of rotation.

Appendix 1: Details of the Input File

The format of the input file (input.txt) is as shown (all inputs must be in the file even though some are specific to OUTER SHAPE). All inputs to the file input.txt must be in SI units.

Sample Input File (This is the input file for the elliptical housing vane pump.):

0 0 4 0 15 0 21 0 500 23e-3 1.75e-3 0.1e-3 27.5e-3 2e-3 0 0

OUTER_SHAPE INNER_SHAPE N_VANE MULTIPLE_CORE flag CORE_ID MULTIPLE_GAP flag GAP_ID INNER_TIME_DEP_PROFILE RPM, inner circle radius, vane width, and gap size Outer radius and offset - if it is a circle Initial vane angle in degree (0 to 360 degree)

NON_EQUALLY_SPACED_VANE (1=non-equally spaced, 0=equally spaced)

1. OUTER_SHAPE is the outer profile of the pump core and is represented by an integer value.

(a) 0: Profile is a circle and does not change in the z-direction.

(b) 1: Profile is user-defined and does not change in the z-direction. In this case a profile file called data outer.txt (see sample in Appendix2) must be created and copied to the same working folder as the case file.

2. INNER_SHAPE is the inner profile of the pump core and is represented by an integer

Page 33: FLUENT MDM Tut 06 Vane Pump

value.

0: Profile is a circle and does not change in the z-direction.

1: Profile is user-defined and does not change in the z-direction. In this case a profile file called data inner.txt (same format as data outer.txt) must be created and copied to the same working folder as the case file (contact the support engineer for information).

2: Profile is a circle and does change in the z-direction (i.e. 3D). In this case, an additional source file called special inner.c is required to specify the change of inner radius with respect to the z-coordinate (contact the support engineer for information).

3. N VANE is the number of vanes. 4. MULTIPLE_CORE flag.

a. 1=multiple core, 0=single core 5. CORE ID is the cell zone ID for the pump core. The complete pump core must be

defined as a single fluid zone. 6. MULTIPLE_GAP flag

a. 1=multiple gap, 0=single gap or no gap 7. GAP ID is the cell zone ID for the gaps. All gaps must be defined as a single fluid zone

(Ignored if no gaps are used). If there is no gap, the GAP ID must be set to 0.

Appendix 2: Sample Profile File (data outer.txt):

This is a segment from an elliptical profile file. This tutorial uses this profile file, which contains 320 points.

320

0.0275 0

0.027497851 0.0005

0.027491405 0.001

0.027480657 0.0015

0.027465603 0.002

0.027446237 0.0025

0.027422547 0.003

0.027394524 0.0035

0.027012277 0.0075