module e-turbulent nozzle flow

Upload: stroie-alina

Post on 03-Jun-2018

230 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    1/40

    1 | P a g e

    Turbulent Flow through a Nozzle Tutorial

    Appendix E

    Intr oductionpg.2

    GeometryCreation ..pg .3

    Mesh Creationpg .14

    Abstract...... pg.20

    ProblemStat ement...pg.20

    ProblemSetup...pg .24

    Soluti on......pg.29

    Res ults...pg.32

    Validation...pg 37

    Summary...pg.39

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    2/40

    2 | P a g e

    Nozzle tutorial

    Meshing Tutorial Nozzle

    Introduction : The purpose of this tutorial is to introduce new users to the fundamentals of

    creating the geometry and corresponding mesh for a nozzle. Specifically this tutorial showcasesmore aspect of using ANSYS Workbench not touched upon in the previous Meshing Tutorials(Laminar Pipe Flow, Turbulent Pipe Flow, Laminar Flow over a Flat Plate).

    Problem Statement:

    Consider a convergent-divergent (CD) nozzle with circular cross section. Let that area vary as afunction of the length of the nozzle. Since the area is circular, axisymmetric flow can be assumedand only the upper portion will be modeled for simplification purposes.

    1)

    Where A is the cross sectional area and x is the distance along the nozzle, The range is chosen simply for a better visual representation in Workbench.

    However the area of a circular cross section is given by:

    2)

    Solving for the radius, a relationship can be obtained for the radius as a function of the distancealong the nozzle:

    3)The equation is to be used later in Excel to obtain the data points necessary for the curved

    portion of the nozzle.

    Outlet

    Centerline (axis of symmetry)

    Wall

    Inlet

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    3/40

    3 | P a g e

    Nozzle Geometry:

    Open ANSYS Workbench, and by default a new project is started.

    Under Toolbox, drag the Mesh Component System onto the Project Schematic. Rename the system Nozzle.o We are to model a 2d geometry therefore right click Geometry and select

    Properties.o Under Advanced Geometry Options, next to Analysis Type, specify 2d.

    Figure 1. N

    Double click Geometry.

    In the DesignModeler keep the default length units of meters. Manipulate the plane in order to obtain a 2d view in the graphics window click on the

    x-axis in the triad visible in the lower right hand portion of the graphics window.o If the triad is not visible, it can be accessed from Main Menu View and then

    select Triad. Under Tree Outline select the XYPlane.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    4/40

    4 | P a g e

    Figure 2. N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    5/40

    5 | P a g e

    Next the centerline of the nozzle will be sketched which can be done by plotting the points (-0.5,0) and (0.5, 0). In the previous meshing tutorials the geometries were sketched. In this tutorialthe geometry will be created in the Modeling portion of the DesignModeler.

    Select Point. In the lower left hand corner under details view next to type keep the default

    construction point. Next to definition specify manual input and underneath enter the coordinates -0.5, 0, 0

    corresponding to the x, y and z axis respectively. Enter Generate and the created point can be seen. Use box zoom in order to zoom in to

    the point.

    Figure 3.N

    Repeat the same procedure however this time enter the 0.5, 0, 0 coordinates. Enter Generate.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    6/40

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    7/40

    7 | P a g e

    Figure 5.N

    From studying the format outline it can be deducted 5 columns are needed the 1 st columnrepresents the group number (a single group can be manipulated into a single edge, two groups into two edges, etc.) and is very useful if an airfoil is being modeled; the 2 nd column signifies thenumber of data points; the rest of the columns are for the x, y and z axis respectively. The poundsymbol, #, is used to create a comment and the file must specifically be a .txt file.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    8/40

    8 | P a g e

    Open an Excel file and following the format outlined and using the equation expressingthe radius of the nozzle (y-axis) as a function of the distance (x-axis) Eq.3,

    create an Excel worksheet and save it as a .txt file. The final result should look like this:

    Figure 6.N

    For a step size 0.01 is used for the nozzles distance range of -0.5 to 0.5 meters. It is a 2d problem hence the z-dir. coordinates are kept at 0. As a result 101 coordinate points are specified and it should be noted that the more

    points that are entered, the smoother the curve will be.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    9/40

    9 | P a g e

    This coordinates file can then be opened in Workbench and fitted to a curve.

    In Main Menu Concept select 3d Curve. In Details View next to Definition specify From Coordinates File. Underneath specify the location of the .txt coordinates file. Click Generate.

    Figure 7.N

    So far the wall and centerline surfaces have been created we have 2 edges.

    Next the inlet and outlet ones will be modeled.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    10/40

    10 | P a g e

    The left edge will represent the inlet and to create the line we need the -0.5, 0, 0 point onthe x-axis alongside its corresponding point on the curve.

    Same applies for the rig ht edge which is to represent the nozzles outlet. In order to dothat we will plot the individual points of the curve and manually select the needed points.

    Select Point and specify the .txt coordinate file; click generate.

    Figure 8.N

    Make sure the Selection Filter: Points is on. Using the box zoom, zoom in to the right portion of the nozzle and select both the 0.5,0,0

    point and its corresponding point on the curve. Then in Main Menu-Concept, select Lines from Points; in Details View click Apply. Press Generate to create the outlet edge.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    11/40

    11 | P a g e

    Figure 9.N

    Repeat the procedure for the left portion of the nozzle.

    Figure 10.N

    The final step before obtaining the geometry for the nozzle is to create the surface from theexisting edge.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    12/40

    12 | P a g e

    Select the four edges in the Graphics Window. Make sure the Selection Filter: Edges is on. In Main Menu-Concept select Surfaces from

    Edges and in Details View click Apply.

    Figure 11.N

    The figure below is the completed nozzle geometry. Close the Design Modeler and by doing sothe geometry will be automatically saved.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    13/40

    13 | P a g e

    Figure 12. N

    A check mark next to Geometry in the Nozzle Mesh Component System in theWorkbench Project Schematic indicates no issues are found by the software.

    Next the geometry is to be meshed. Double Click on Mesh.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    14/40

    14 | P a g e

    Nozzle Mesh:

    Keep the defaults in Meshing Options CFD Physics Preference, Automatic Mesh Method.

    In Main Menu Units verify metric units are used m, kg, N, etc.

    In the Outline--Mesh next to Use Advanced Size Function under Sizing, specify Off since theelements are to manually sized.

    Figure 13.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    15/40

    15 | P a g e

    The mesh to be created will be structured 50X20 meaning quadrilateral (rectangular) shapedelements exhibiting a pronounced pattern are to be used and there are to be 50 element divisionin the x-dir. and 20 element divisions in the y-direction. First the x direction is to be meshed.

    Select the edge cube.

    In the graphics window select both horizontal edges. Under Mesh Control, select Sizing. Next to Type under Details of Sizing, in the lower left hand corner, specify Number of

    Divisions. Underneath enter 50 divisions. Change the Behavior from Soft to Hard since it is desired for the default sizing functions

    used by ANSYS to be overwritten.

    Figure 14.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    16/40

    16 | P a g e

    Next the elements in the y direction are to be sized.

    Select both vertical edges and under Mesh Control select Sizing again. After changing the type to Number of Divisions, specify 20

    divisions.

    Again change the behavior to Hard.

    Figure 15.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    17/40

    17 | P a g e

    Next, the face must be meshed in order to make sure elements correspond to each otheror that the mesh is to be structured.

    Under Mesh Control, choose Mapped Face Meshing. The face cube should be on by default. Select the face by clicking on the geometry in the

    Graphics Window and selecting Apply next to Geometry in Details of Mapped FaceMeshing.

    Figure 16.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    18/40

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    19/40

    19 | P a g e

    In Mesh Select Generate Mesh.

    Figure 18.N

    The mesh can then be used for fluid flow analysis in Fluent. It can also be exported by going toMain Menu-Export and saving it as a mesh Fluent input file. Close Meshing.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    20/40

    20 | P a g e

    Abstract:

    The flexibility of ANSYS Fluent will be demonstrated by analyzing compressible fluidflow past a nozzle by importing the corresponding mesh created in other software such asGambit. Temperature and pressure effects as well as the Mach number variation will be analyzed

    and validated against quasi-1D nozzle flow results and particular attention will be paid to theshock developed in the diverging section of the nozzle.

    Problem Statement:

    Consider a Convergent-Divergent nozzle similar to the one modeled in the MeshingTutorial Nozzle:

    In a converging-diverging nozzle the flow which enters the nozzle is subsonic (the Machnumber, Ma, is less than one). The minimum area is called the throat and is the location whensonic speeds (the Mach number equaling one) are achieved. Referring to equation 1 it can be

    concluded that for a convergent-divergent nozzle a subsonic flow enter ing the duct, the flowsvelocity increases upon entering the convergent portion and sonic speed is achieved at the throat.On the other hand if the flow entering the nozzle is supersonic (Ma>1) the velocity decreases inthe convergent portion and sonic speeds can be achieved at the throat. Those conditions hold truefor steady isentropic flow meaning the properties (such as density, pressure, velocity, etc) are notchanging with respect to time and that those properties are functions of the Mach number.Isentropic flow involves constant entropy is adiabatic (no heat transfer) and frictionless(reversible).

    (1)

    The flow to be analyzed is compressible the Reynolds number and the velocity arelarge. Since the purpose of a CD nozzle is to accelerate a subsonic velocity to supersonic speedsit makes sense we are dealing with compressible flow. Unlike incompressible flow, the density isnot constant anymore. Quasi-one dimensional flow is assumed meaning the flow is restricted tomoving in only one coordinate in space (along the x-axis) and the cross-sectional area is allowedto vary in that coordinate. The approach assumes long and slender nozzle geometry and viscous

    Outlet

    Centerline (axis of symmetry)

    Inlet

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    21/40

    21 | P a g e

    effects are neglect. The last assumption is important since that must be specified in Fluent. Thegoverning equations based on the assumed approach are equations 1 through 5. The flow is alsoisentropic and the fluid analyzed is assumed to obey the ideal gas law and is necessary in orderfor the specific heats to be constant.

    Consider the following values for the specific flow problem:

    The velocity is given as 0.24 Ma and the specific value must obey only the rule that theinlet velocity is subsonic. The velocity can be converted to meters per second and it is importantto do the calculation since that value will be entered in ANSYS Fluent in order to set both thereference values and to initialize the problem.

    (2)Where: c is the speed of sound which varies with temperature and fluid type. Forexample the speed of sound in water is much higher than in air.

    T, is the temperature at the inlet and is given as 293.0 K

    R, is the gas constant given as for dry airk is the ratio of specific heats , for air

    The specified pressure ratio of showcases the true importance of this

    tutorial. Since the pressure at the outlet is lower than the inlet pressure, at the throat of the CDnozzle, Ma will be equal to 1. Therefore a condition called choked flow is present. Since we areassuming ideal gas fluid flow we are interested in the gauge values or absolute values for the

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    22/40

    22 | P a g e

    pressure. The given outlet-inlet pressure ratio is utilized to calculate the stagnation pressure atthe inlet also referred as the supersonic or initial gauge pressure at the inlet .Equation 2 is used to compute the total gauge pressure at the inlet, P . The equation stems fromthe assumed Quasi 1D approach and it is important to calculate the pressure since they are to beentered in Fluent. The stagnation pressure is the pressure at a point of zero fluid velocity andkinetic energy has been converted to pressure energy.

    (2)

    However, the pressure of the outlet is 1 atm or 101,325 Pa since the operating pressure is

    0 because only the gauge pressures are of interest-- . Recall

    .

    The stagnation temperature must be calculated as well as it will be entered in Fluent.Equation 3is to be used which stems from the assumed Quasi 1D approach. Note is the inlet

    temperature and is the stagnation temperature which is the temperature at a point of zero fluidvelocity.

    (3)

    ()

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    23/40

    23 | P a g e

    ANSYS Fluent provides great flexibility when it comes to importing meshes. The mesh to beused in this tutorial was created in Gambit and since it is a .msh file it can easily be imported intoFluent. The downside is that it cannot be enhanced in Workbench.

    Start ANSYS Fluent.

    Specify 2D dimension and let us use Double Precision in order to obtain more accurateresults.

    By clicking on the Show More button, The Launcher is expanded and a working directory can be specified in order to save time

    later on when data is to be saved. Press OK.

    Figure 19.N

    Go to Main Menu File, and select Read Mesh. Load the Gambit created nozzle mesh that isincluded with this tutorial. As it can be seen this is a Convergent-Divergent nozzle.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    24/40

    24 | P a g e

    Figure 20.N

    Notice how there is more elements as the throat (location of smallest area) and the outlet areapproached. This is done in order for the shock formation to be more accurately analyzed.

    Problem Setup

    General:In Scale, verify the length units used are meters. Press Check in order to determine if any issuesare found with the mesh. Make sure the minimum volume is not negative since that would

    prevent us from obtaining a solution from the CFD software.

    Figure 21.N

    In Display inspect the created in Gambit mesh zones and select all five of them.

    Figure 22.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    25/40

    25 | P a g e

    In the solver, select the density-based type. ANSYS Fluent obtains the solution throughcalculations of the continuity, momentum and the energy equations (if temperature effects aredesired to be analyzed). Based on whether the pressure-based or the density-based type isspecified, those equations will be solved differently. The pressure-based type is intended forincompressible (constant density) or mildly compressible flows. The density-based type, on theother hand, is geared towards high speed compressible flows. Nozzle flow is compressible hencethe density-based type is preferred.

    In the solver, keep the Steady option under Time since the properties (temperature,velocity, density, etc.) will not be changing with respect to time.

    Due to the circular cross section of the nozzle, axisymmetric flow has been assumed forsimplification purposes therefore in the solver under 2D Space select Axisymmetric.

    Figure 23.N

    Problem Setup Models:

    Under Models

    Double click Energy and put a checkmark thus turning it on. Press Ok. It is important to consider the energy equation since we are dealing with

    compressible flow and we are interested in temperature effects. The energy equation now will be calculated alongside the continuity and momentum

    ones.

    Since the Quasi-One dimensional flow approach is assumed for analysis and validation in thistutorial the flow is assumed to be inviscid. Under Models, double click Viscous and selectInviscid.

    Problem Setup Materials:

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    26/40

    26 | P a g e

    Underneath Materials, under Fluid double

    Click Air. Under Properties Next to Density specify Ideal Gas. Since in compressible flow the density is not

    constant, the value can be seen to be blank. Air is analyzed as an ideal gas. Press

    Change/Create.

    Figure 24.N

    Problem Setup Boundary Conditions:

    Since the fluid flow is assumed to be air as an ideal gas the pressure must be expressed asan absolute pressure.

    Click on Operating Conditions and it can be seen that by default the Operating Pressure(gauge pressure) is set at 101,325 Pa or 1 atm.

    Make it equal to 0 and press OK.

    Figure 25.N

    Next we have to make sure the five surface zones are of the correct type.

    Change the Axis zone to type Axis (the problem has already been specified asAxisymmetric in the Problem Setup General). By doing so the error found uponchecking the mesh is also fixed.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    27/40

    27 | P a g e

    Warning: It appears that symmetry zone 4 should actually be an axis

    (it has faces with zero area projections).

    Unless you change the zone type from symmetry to axis,

    you may not be able to continue the solution without

    encountering floating point errors.

    Verify that the wall zone is of type wall , the inlet zone is of type pressure inlet , theoutlet zone if of type pressure outlet and the interior zone is of type interior .

    Double click on the outlet zone and enter 101 325 Pa as the outlet gauge pressure.

    Figure 26.N

    In the Thermal tab specify the backflow total temperature as 296.375 K. Refer to the problemstatement for the calculations performed to obtain those values. Press OK.

    Figure 27.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    28/40

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    29/40

    29 | P a g e

    Problem Setup Reference Values:

    Set the reference values to be computed from the inlet. Verify the values for temperature and

    velocity among others make sense. It can be seen there are small variation for the temperature (itwas chosen as 293K at the inlet) and the velocity (it was computed as at the inlet,ref. to Problem Statement Section).

    Figure 30.N

    Solution Solution Methods:

    Specify the flow as First Order Upwind. By doing so convergence will be more robust than when2nd order upwind is used even though the results will not be as accurate.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    30/40

    30 | P a g e

    Figure 31.N

    Solution Monitors:

    Set the residuals for all 4 governing equations to be solved to 1e-06 as the absolute criteria for

    convergence. Press OK.

    Figure 32.N

    Solution Solution Initialization:

    Set the initialization to be computed from the inlet and verify the values for the gauge pressure,axial velocity and temperature.

    Press Initialize.

    Figure 33.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    31/40

    31 | P a g e

    Solution Run Calculation:

    Specify 1000 iterations and press Calculate. Note more than 1000 will probably be needed in order to obtain convergence

    o By pressing Calculate again the calculations will be resumed without having toinitialize again (the iterations resume from 1,000 and continue for as many moreiterations as specified).

    Figure 34.N

    Notice it took almost 3,000 iterations for convergence to be obtained.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    32/40

    32 | P a g e

    Results Plots:

    The temperature, pressure and Mach number are to be plotted as a function of the axial distance both for the wall and axis surfaces.

    Temperature XY Plot: In Plots double click on XY Plot. In Axes, Y axis the type can be specified to float and the precision adjusted to improve

    visual representation, remember to click apply (apply makes the requested change onlyfor the specific axis selected).

    In Solution XY Plot, make sure the position on x axis is chosen. Under Y axis function, select Temperature and specify Static Temperature. Select both the axis and wall surfaces and press Plot.

    Figure 35.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    33/40

    33 | P a g e

    Figure 36.N

    To save the XY Plot simply select Write to File under Options in Solution XY Plot and press Write

    The plot can be opened with Excel and further analysis can be performed.

    Pressure XY Plot:

    For the pressure the only difference is that under Y Axis Function, the Pressure must be chosen.

    Save the plot.

    Figure 37.N

    Figure 38.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    34/40

    34 | P a g e

    Mach Number XY Plot:

    The Mach number for the axis and wall surface is next plotted as a function of the axial distanceof the nozzle. Under Y axis Function in Solution XY Plot select Velocity and specify Mach

    Number. Press Plot. Save the Plot.

    Figure 39.N

    Figure 40.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    35/40

    35 | P a g e

    Velocity Contours:

    In Results, in Graphics and Animations,

    Double click Contours. Make sure Filled is checked and specify Contours of Velocity,Velocity Magnitude.

    Press Display. The significant digits of the colormap can be altered in Graphics andAnimations Colormap.

    In Options the colormap can be moved to improved visual representation.

    Figure 41.N

    Figure 42.N

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    36/40

    36 | P a g e

    Figure 43.N

    The shock inside the nozzle can be clearly seen (circled region). Vast velocity difference isexhibited on each end of the shock.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    37/40

    37 | P a g e

    Validation:The Mach number and pressure experimental data along the length of the nozzle is validatedagainst data provided by Prof. Barber. As it can be seen the results strongly agree with the

    provided data.

    Figure 44.N

    Figure 45.N

    X

    0 2 4 6 8 10

    MachNumber

    0.0

    0.2

    0.4

    0.6

    0.8

    1.0

    1.2

    1.4

    1.6

    1.8

    Maxis

    Mwall

    Maxis-visc

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    38/40

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    39/40

    39 | P a g e

    Summary:

    After completing the learning module the user has obtained additional valuable knowledge ingeometry creation in ANSYS Workbench, specifically importation of coordinates for thecreation of curves. That knowledge will be particularly useful for the case discussed in Appendix

    H when the geometry of a periodic airfoil is considered. Additionally the user has gained furtherinsight in the importance of having sound thermodynamics knowledge as that is necessary for the

    proper problem setup in FLUENT. Finally additional methods of validation have been providedto the user to ensure the obtained experimental data from FLUENT is reasonable, specifically thedata has been validated against provided 1D Quasi Flow data.

  • 8/12/2019 Module E-Turbulent Nozzle Flow

    40/40