# Tutorial 4.

Modeling Unsteady Compressible Flow

Introduction: In this tutorial, FLUENT’s coupled implicit solver is used to predict the time-dependent ﬂow through a two-dimensional nozzle. As an initial condition for the transient problem, a steady-state solution is generated to provide the initial values for the mass ﬂow rate at the nozzle exit. In this tutorial you will learn how to: • Calculate a steady-state solution (using the coupled implicit solver) as an initial condition for a transient ﬂow prediction • Deﬁne an unsteady boundary condition using a user-deﬁned function (UDF) • Calculate a transient solution using the second-order implicit unsteady formulation and the coupled implicit solver • Create an animation of the unsteady ﬂow using FLUENT’s unsteady solution animation feature Prerequisites: This tutorial assumes that you are familiar with the menu structure in FLUENT and that you have solved or read Tutorial 1. Some steps in the setup and solution procedure will not be shown explicitly. Problem Description: The geometry to be considered in this tutorial is shown in Figure 4.1. Flow through a simple nozzle is simulated as a 2D planar model. The nozzle has an inlet height of 0.2 m, and the nozzle contours have a sinusoidal shape that produces a 10% reduction in ﬂow area. Due to symmetry, only half of the nozzle is modeled.

c Fluent Inc. November 27, 2001

4-1

Modeling Unsteady Compressible Flow

plane of symmetry

0.2 m

pexit (t )

p inlet = 0.9 atm

pexit = 0.7369 atm

Figure 4.1: Problem Speciﬁcation

Preparation
1. Copy the ﬁles nozzle/nozzle.msh and nozzle/pexit.c from the FLUENT documentation CD to your working directory (as described in Tutorial 1). 2. Start the 2D version of FLUENT.

4-2

c Fluent Inc. November 27, 2001

Modeling Unsteady Compressible Flow

Step 1: Grid
1. Read in the mesh ﬁle nozzle.msh. File −→ Read −→Case... 2. Check the grid. Grid −→Check FLUENT will perform various checks on the mesh and will report the progress in the console window. Pay particular attention to the reported minimum volume. Make sure this is a positive number. 3. Display the grid. Display −→Grid...

To make the view more realistic, you will need to mirror it across the centerline.

c Fluent Inc. November 27, 2001

4-3

Modeling Unsteady Compressible Flow

4. Mirror the view across the centerline. Display −→Views...

(a) Select symmetry under Mirror Planes. (b) Click Apply. The grid for the nozzle is shown in Figure 4.2.

4-4

c Fluent Inc. November 27, 2001

2001 FLUENT 6. lam) Figure 4. segregated.2: 2D Nozzle Mesh Display c Fluent Inc. November 27.0 (2d.Modeling Unsteady Compressible Flow Grid Jan 31. 2001 4-5 .

which is not initially visible in the list. (b) Close the panel.. 4-6 c Fluent Inc. and atm under Units. deﬁne new units for pressure. which is not the default unit. Deﬁne −→Units. For convenience. The pressure for this problem is speciﬁed in atm..Modeling Unsteady Compressible Flow Step 2: Units 1. November 27. Hint: Use the scroll bar to access pressure. You will need to redeﬁne the pressure unit as atm. (a) Select pressure under Quantities. 2001 .

transonic ﬂows. Note: Initially. November 27. Later. you will revisit this panel to enable an unsteady calculation. after obtaining the steady ﬂow as a starting point.Modeling Unsteady Compressible Flow Step 3: Models 1. 2001 4-7 . The coupled implicit solver is the solver of choice for compressible. Select the coupled implicit solver.. Deﬁne −→ Models −→Solver. you will solve for the steady ﬂow through the nozzle. c Fluent Inc..

The Spalart-Allmaras model was designed speciﬁcally for aerospace applications involving wall-bounded ﬂows and has been shown to give good results for boundary layers subjected to adverse pressure gradients. The Spalart-Allmaras model is a relatively simple one-equation model that solves a modeled transport equation for the kinematic eddy (turbulent) viscosity. November 27. 2001 . Deﬁne −→ Models −→Viscous. This embodies a class of one-equation models in which it is not necessary to calculate a length scale related to the local shear layer thickness..Modeling Unsteady Compressible Flow 2. Enable the Spalart-Allmaras turbulence model.. 4-8 c Fluent Inc.

(a) Select the ideal-gas law to compute Density. Set the properties for air. Deﬁne −→Materials.. November 27..Modeling Unsteady Compressible Flow Step 4: Materials 1. c Fluent Inc. Note: FLUENT will automatically enable solution of the energy equation when the ideal gas law is used. the default ﬂuid material. 2001 4-9 . You do not need to visit the Energy panel to turn it on.

2001 . Set the operating pressure to 0 atm.. Step 5: Operating Conditions 1.Modeling Unsteady Compressible Flow (b) Retain the default values for all other properties. November 27.. 4-10 c Fluent Inc. Here. ! Don’t forget to click the Change/Create button to save your change. Deﬁne −→Operating Conditions. Boundary condition inputs should always be relative to the value used for operating pressure. the operating pressure is set to zero and boundary condition inputs for pressure will be deﬁned in terms of absolute pressures.

. (c) In the Turbulence Speciﬁcation Method drop-down list. November 27. The inlet static pressure estimate is the mean pressure at the nozzle exit. (d) Set the Turbulent Viscosity Ratio to 1.7369 atm. Set the conditions for the nozzle inlet (inlet). (b) Set the Supersonic/Initial Gauge Pressure to 0. For low to moderate inlet turbulence. select Turbulent Viscosity Ratio. 1. 2001 4-11 . This value will be used during the solution initialization phase to provide a guess for the nozzle velocity.9 atm.Modeling Unsteady Compressible Flow Step 6: Boundary Conditions Deﬁne −→Boundary Conditions. a viscosity ratio of 1 is recommended.. (a) Set the Gauge Total Pressure to 0. c Fluent Inc.

If substantial backﬂow occurs at the outlet. you may need to adjust the backﬂow values to levels close to the actual exit conditions. 4-12 c Fluent Inc. (b) In the Turbulence Speciﬁcation Method drop-down list. select Turbulent Viscosity Ratio. 2001 . Set the conditions for the nozzle exit (outlet). (c) Accept the default value of 10 for Backﬂow Turbulent Viscosity Ratio.7369 atm. November 27. (a) Set the Gauge Pressure to 0.Modeling Unsteady Compressible Flow 2.

Solve −→ Initialize −→Initialize.. (a) Select inlet in the Compute From drop-down list. (b) Click Init.Modeling Unsteady Compressible Flow Step 7: Solution: Steady Flow 1. 2001 4-13 . and Close the panel. November 27. Initialize the solution.. c Fluent Inc.

Modeling Unsteady Compressible Flow 2. (a) Under Discretization. 4-14 c Fluent Inc. November 27.. 2001 . Solve −→ Controls −→Solution. select Second Order Upwind for Second-order discretization provides optimum accuracy.. Turbulent Viscosity. Set the solution parameters.

Modeling Unsteady Compressible Flow 3. November 27. (a) Under Options. 2001 4-15 . select Plot. Solve −→ Monitors −→Residual.. c Fluent Inc. (b) Click OK.. Enable the plotting of residuals.

Modeling Unsteady Compressible Flow 4. (a) Increase the number of Surface Monitors to 1.. (c) Click on Deﬁne. Enable the plotting of mass ﬂow rate at the ﬂow exit. Solve −→ Monitors −→Surface. November 27. Note: When the Write option is selected in the Surface Monitors panel.. to specify the surface monitor parameters in the Deﬁne Surface Monitor panel. the history information will be lost when you exit FLUENT.. (b) Turn on the Plot and Write options for monitor-1. 4-16 c Fluent Inc.. 2001 . the mass ﬂow rate history will be written to a ﬁle. If you do not select the write option.

Click on OK to deﬁne the monitor. Select outlet in the Surfaces list. iii.out. November 27. (d) Click on OK in the Surface Monitors panel to enable the monitor. c Fluent Inc. Select Mass Flow Rate in the Report Type drop-down list. iv. enter the name noz ss. ii.Modeling Unsteady Compressible Flow i. 2001 4-17 . In the File Name ﬁeld.

Start the calculation by requesting 800 iterations.cas). The solution will converge after about 600 iterations. November 27. Notice that the mass ﬂow rate has not reached a constant value. File −→ Write −→Case.. To remedy this. the residual history plot is only one indication of solution convergence.Modeling Unsteady Compressible Flow 5. However. you will reduce the convergence criterion for the continuity equation and iterate until the mass ﬂow rate reaches a constant value. 6.. Save the case ﬁle (noz ss. 4-18 c Fluent Inc... Solve −→Iterate. 2001 .

8. Request 500 more iterations. November 27. 2001 4-19 .. Solve −→ Monitors −→Residual.. the convergence behavior of the continuity equation is a good indicator of the overall convergence of the solution.Modeling Unsteady Compressible Flow 7. Note: To obtain better convergence of the mass ﬂow rate. Solve −→Iterate. (b) Click OK. Reduce the convergence criterion for the continuity equation. only the convergence tolerance for the continuity equation is adjusted.. c Fluent Inc.. In general. (a) Set the Convergence Criterion for continuity to 1e-04.

Modeling Unsteady Compressible Flow After about 400 iterations (1000 total). Save the data ﬁle (noz ss.0000 -16. coupled imp.5000 -16. File −→ Write −→Data.2500 -14. 2001 . 2001 FLUENT 6.0 (2d.3: Mass Flow Rate History 9.5000 -14.2500 -16.7500 -16. The mass ﬂow rate history is shown in Figure 4...2500 -15.7500 -15. November 27.5000 Mass Flow Rate (kg/s) -15.0000 0 100 200 300 400 500 600 700 800 900 1000 Iteration Convergence history of Static Pressure on outlet Jun 20.3. S-A) Figure 4.0000 -15.7500 -17. the mass ﬂow rate has leveled oﬀ and the solution has converged.dat). 4-20 c Fluent Inc. -14.

If a signiﬁcant imbalance occurs. (c) Click Compute. (b) Select inlet and outlet in the Boundaries list. Check the mass ﬂux balance. 0... ! The net mass imbalance should be a small fraction (say.Modeling Unsteady Compressible Flow 10. c Fluent Inc. 2001 4-21 .5%) of the total ﬂux through the system. Report −→Fluxes. ! Although the mass ﬂow rate history indicates that the solution is converged. you should decrease your residual tolerances by at least an order of magnitude and continue iterating. November 27. you should also check the mass ﬂuxes through the domain to ensure that mass is being conserved. (a) Keep the default Mass Flow Rate option.

Display −→Vectors.Modeling Unsteady Compressible Flow 11. with peak velocity of about 326 m/s through the nozzle. (b) Change the Scale to 10.4). Display the steady-ﬂow velocity vectors (Figure 4.. 4-22 c Fluent Inc. November 27. (a) Select arrow in the Style drop-down list. 2001 .. (c) Click Display. The steady ﬂow prediction shows the expected form.

26e+02 2.87e+01 6. coupled imp.29e+02 1.37e+01 1.94e+02 2.0 (2d.15e+00 velocity Colored By Velocity Magnitude (m/s) Jan 31.64e+02 1. November 27.4: Velocity Vectors (Steady Flow) c Fluent Inc. 2001 FLUENT 6.62e+01 3. 2001 4-23 .96e+02 1.Modeling Unsteady Compressible Flow 3.31e+02 9.61e+02 2. S-A) Figure 4.

select Filled. Display −→Contours. The steady ﬂow prediction shows the expected pressure distribution. with low pressure near the nozzle throat. (b) Click Display.5). (a) Under Options.Modeling Unsteady Compressible Flow 12. Display the steady ﬂow contours of static pressure (Figure 4.. November 27. 4-24 c Fluent Inc.. 2001 .

S-A) Figure 4.85e-01 7.Modeling Unsteady Compressible Flow 7.16e-01 4.5: Contours of Static Pressure (Steady Flow) c Fluent Inc.52e-01 7.17e-01 5.83e-01 4.18e-01 6.84e-01 5.84e-01 6. coupled imp.50e-01 5.0 (2d. 2001 4-25 . November 27. 2001 FLUENT 6.49e-01 Contours of Static Pressure (atm) Jan 31.51e-01 6.

Here. second-order implicit time-stepping is enabled: this provides higher accuracy in time than the ﬁrst-order option. 2001 . select 2nd-Order Implicit. (b) Under Unsteady Formulation. 1. November 27..Modeling Unsteady Compressible Flow Step 8: Enable Time Dependence and Set Unsteady Conditions In this step you will deﬁne a transient ﬂow by specifying an unsteady pressure condition for the nozzle. Deﬁne −→ Models −→Solver.. 4-26 c Fluent Inc. select Unsteady. (a) Under Time. Implicit (dual) time-stepping allows you to set the physical time step used for the transient ﬂow prediction (while FLUENT continues to determine the time step used for inner iterations based on a Courant condition). Enable a time-dependent ﬂow calculation.

1 in the correct units. and pexit = 0. 2001 4-27 . c Fluent Inc.8 rad/s.12 sin(ωt) + pexit where ω pexit = = circular frequency of unsteady pressure (rad/s) mean exit pressure (atm) (4. A user-deﬁned function (pexit. November 27. This will not aﬀect the displayed results.1) required for the pressure proﬁle. Deﬁne the unsteady condition for the nozzle exit (outlet). See the separate UDF Manual for details about userdeﬁned functions. Note: To input the value of Equation 4. The pressure at the outlet is deﬁned as a wave-shaped proﬁle. ω = 1748.c) has been written to deﬁne the equation (Equation 4.7369 atm. the function pexit.Modeling Unsteady Compressible Flow 2. and is described by the following equation: pexit (t) = 0.c has been multiplied by a factor of 101325 to convert from the chosen pressure unit (atm) to the SI unit required by FLUENT (Pa).1) In this case.

ii. Enter pexit. 2001 . but it needs to be compiled within FLUENT before it can be used in the solver. iii. Close the Interpreted UDFs panel..Modeling Unsteady Compressible Flow (a) Read in the user-deﬁned function.. 4-28 c Fluent Inc. Deﬁne −→ User-Deﬁned −→ Functions −→Interpreted. November 27. Click Compile.c as the Source File Name. The user-deﬁned function has already been deﬁned. i.

Modeling Unsteady Compressible Flow (b) Set the unsteady boundary conditions at the exit. 2001 4-29 . November 27. Select udf unsteady pressure (the user-deﬁned function) in the Gauge Pressure drop-down list. i. c Fluent Inc.

4-30 c Fluent Inc.Modeling Unsteady Compressible Flow Step 9: Solution: Unsteady Flow 1.. Using a time step of 7. 2001 . Solve −→Iterate. November 27. (b) Set the Number of Time Steps to 300.. The pressure cycle begins and ends with the initial pressure at the nozzle exit. Set the time step parameters.1857 × 10−5 seconds. The selection of the time step is critical for accurate time-dependent ﬂow predictions.1857e-05 s. (a) Set the Time Step Size to 7. 50 time steps are required for one pressure cycle. (c) Set the Max Iterations per Time Step to 30.

i. In the X Axis drop-down list.. Because each time step requires 30 iterations. In the Deﬁne Surface Monitor panel. 3. (a) For monitor-1.. change the File Name to noz uns. File −→ Write −→Case. a smoother plot will be generated by plotting at every time step..cas).Modeling Unsteady Compressible Flow (d) Click Apply. to modify the surface monitor parameters. 2. ii. Solve −→ Monitors −→Surface. c Fluent Inc.. Click OK. (b) Click Deﬁne.out. Modify the plotting of the mass ﬂow rate at the nozzle exit. select Time Step. select Time Step in the drop-down list under Every. Save the transient solution case ﬁle (noz uns.. 2001 4-31 . November 27. iii.. (c) Click OK in the Surface Monitors panel.

.6: Mass Flow Rate History (Unsteady Flow) 5. File −→ Write −→Data.0000 -12.0000 -17.0 (2d. ! Calculation of 300 time steps will require signiﬁcant CPU resources..Modeling Unsteady Compressible Flow 4. Start the transient calculation. S-A. coupled imp.0000 -13.0000 -15. Save the transient solution data ﬁle (noz uns..0000 0 50 100 150 200 250 300 Time Step Convergence history of Static Pressure on outlet (Time=2. 4-32 c Fluent Inc.dat). Instead of calculating.dat (The data ﬁle is available in the same directory where you found the mesh and UDF ﬁles. unsteady) Figure 4..0000 -16.1557e-02) Jun 20. 2001 FLUENT 6.0000 -18. November 27.0000 -10. -9.) By requesting 300 time steps.0000 Mass Flow Rate (kg/s) -14. Solve −→Iterate. you can read the data ﬁle saved after the iterations have been completed: noz uns. 2001 .0000 -11. you are asking FLUENT to compute six pressure cycles.

Modeling Unsteady Compressible Flow Step 10: Saving and Postprocessing Time-Dependent Data Sets The solution has reached a time-periodic state. November 27.dat) will also be appended. (a) Set the Autosave Case File Frequency and Autosave Data File Frequency to 10. and the autosave feature to save case and data ﬁles every 10 time steps. enter noz anim. 1. you will use the solution animation playback feature to view the animated pressure and Mach number plots over time. The standard extensions (. c Fluent Inc. To study how the ﬂow changes within a single pressure cycle. you will now continue the solution for 50 more time steps. (b) In the Filename ﬁeld. 2001 4-33 .cas and noz anim0340. After the calculation is complete.dat. You will use FLUENT’s solution animation feature to save contour plots of pressure and Mach number at each time step. where 0340 is the time step number. This will yield ﬁle names of the form noz anim0340. When FLUENT saves a ﬁle. File −→ Write −→Autosave.cas and . (c) Click OK... Request saving of case and data ﬁles every 10 time steps. it will append the time step value to the ﬁle name preﬁx (noz anim).

which will instruct FLUENT to save the case and data ﬁles in compressed format. Create animation sequences for the nozzle pressure and Mach number contour plots.gz to the end of the ﬁle name (e.cas. (c) In the When drop-down lists.gz).. November 27. you can add the extension . (b) Under Name. this instructs FLUENT to update the animation sequence at every time step. 2001 . yielding ﬁle names of the form noz anim0340. With the default value of 1 for Every. noz anim.. 2. select Time Step. enter pressure for the ﬁrst sequence and mach-number for the second sequence. Solve −→ Animate −→Deﬁne.Modeling Unsteady Compressible Flow Optionally.g. 4-34 c Fluent Inc.gz.. (a) Increase the number of Animation Sequences to 2.

The Memory option is acceptable for a small 2D case such as this. The Contours panel will open. November 27. (a) Click Deﬁne. (c) Increase the Window number to 2 and click Set. The Animation Sequence panel will open.Modeling Unsteady Compressible Flow 3. (d) Under Display Type. Graphics window number 2 will open. select Memory. c Fluent Inc.. saving animation ﬁles with the Disk option is preferable to avoid using too much of your machine’s memory. For larger 2D or 3D cases. (b) Under Storage Type. select Contours. Deﬁne the animation sequence for pressure.. on the line for pressure to set the parameters for the pressure sequence. 2001 4-35 .

2001 ...Modeling Unsteady Compressible Flow i. and Static Pressure. iv. In the Contours panel. and deselect Auto Range. keep the default selections of Pressure.25 under Min and 1. 4-36 c Fluent Inc. (e) Click OK in the Animation Sequence panel.00 under Max. ii. This will set a ﬁxed range for the contour plot and subsequent animation. Enter 0. Make sure that Filled is selected under Options.7 shows the contours of static pressure in the nozzle after 300 time steps. Figure 4. November 27. Click Display. iii.

50e-01 Contours of Static Pressure (atm) (Time=2.25e-01 8.0216 s c Fluent Inc.25e-01 2. coupled imp.75e-01 7.7: Pressure Contours at t = 0.00e-01 3.75e-01 4. unsteady) Figure 4. 2001 4-37 . 2001 FLUENT 6.00e-01 6. S-A.Modeling Unsteady Compressible Flow 1.25e-01 5.50e-01 4.1629e-02) Feb 08.00e+00 9.0 (2d.50e-01 7. November 27.

Graphics window number 3 will open. and Mach Number. on the line for mach-number to set the parameters for the Mach number sequence. (d) Under Display Type. Deﬁne the animation sequence for Mach number.. (f) Click OK in the Solution Animation panel. iv.8 shows the Mach number contours in the nozzle after 300 time steps. (a) In the Solution Animation panel. ii.30 under Max. click Deﬁne. In the Contours panel. Make sure that Filled is selected under Options.. i. Click Display.Modeling Unsteady Compressible Flow 4. (e) Click OK in the Animation Sequence panel. select Memory. iii. select Contours. select Velocity..00 under Min and 1. (c) Increase the Window number to 3 and click Set. (b) Under Storage Type in the Animation Sequence panel. and deselect Auto Range. 2001 . 4-38 c Fluent Inc. Figure 4.. Enter 0. November 27.

10e-01 7. unsteady) Figure 4. S-A.17e+00 1. coupled imp.04e+00 9. November 27. 2001 4-39 .50e-01 5.30e-01 0.0216 s c Fluent Inc.20e-01 3.0 (2d.60e-01 1.00e+00 Contours of Mach Number (Time=2.Modeling Unsteady Compressible Flow 1.90e-01 2.30e+00 1.8: Mach Number Contours at t = 0. 2001 FLUENT 6.1629e-02) Feb 08.80e-01 6.

. November 27. 4-40 c Fluent Inc. and animation ﬁles will be saved approximately every 0.Modeling Unsteady Compressible Flow 5. With the autosave and animation features active (as deﬁned above). When the calculation ﬁnishes. data. Solve −→Iterate.0036 seconds. Continue the calculation by requesting 50 time steps. In the next few steps. the case. you will have ﬁve pairs of case and data ﬁles and there will be 50 pairs of contour plots stored in memory. or roughly one pressure cycle.. 2001 . Requesting 50 time steps will march the solution through an additional 0.0007 seconds. you will play back the animation sequences and examine the results at several time steps after reading in pairs of newly-saved case and data ﬁles.

(b) Click Apply.. Double buﬀering will allow for a smoother transition between the frames of the animations. select Double Buﬀering.Modeling Unsteady Compressible Flow 6. November 27. c Fluent Inc.. Display −→Options. 2001 4-41 . (a) Under Rendering Options. Change the display options to include double buﬀering.

Play back the animation of the pressure contours.0227 s and t = 0. select pressure.12.10.9 and 4. November 27.Modeling Unsteady Compressible Flow 7. The playback control buttons now become active.. (b) Keep the default settings in the rest of the panel and click the play button (the second from the right in the group of buttons under Playback). 2001 . Repeat steps 6 and 7. 4-42 c Fluent Inc..11 and 4.0227 s and t = 0. (a) Under Sequences. Examples of Mach number contours at t = 0. Examples of pressure contours at t = 0. Solve −→ Animate −→Playback.0239 s are shown in Figures 4. 8.0239 s are shown in Figures 4. selecting the appropriate active window and sequence name for the Mach number contours.

3928e-02) Feb 08.50e-01 Contours of Static Pressure (atm) (Time=2.75e-01 4. 2001 4-43 .00e+00 9.25e-01 8.0 (2d.75e-01 4.10: Pressure Contours at t = 0. S-A. 2001 FLUENT 6. unsteady) Figure 4.25e-01 8. unsteady) Figure 4.0227 s 1. coupled imp.50e-01 7.00e-01 6.50e-01 Contours of Static Pressure (atm) (Time=2.00e-01 3.0 (2d. November 27.00e-01 3.50e-01 4. coupled imp.0239 s c Fluent Inc.50e-01 7.50e-01 4.00e+00 9.25e-01 2. 2001 FLUENT 6.75e-01 7.25e-01 5.Modeling Unsteady Compressible Flow 1.00e-01 6.2707e-02) Feb 08.25e-01 2.9: Pressure Contours at t = 0.25e-01 5. S-A.75e-01 7.

Modeling Unsteady Compressible Flow 1.90e-01 2.12: Mach Number Contours at t = 0.0 (2d.30e+00 1.17e+00 1. November 27.30e+00 1.0 (2d.80e-01 6.2707e-02) Feb 08.04e+00 9.00e+00 Contours of Mach Number (Time=2. coupled imp.60e-01 1.04e+00 9.20e-01 3. S-A. 2001 FLUENT 6.50e-01 5. 2001 FLUENT 6.20e-01 3.30e-01 0.11: Mach Number Contours at t = 0. 2001 .0239 s 4-44 c Fluent Inc. unsteady) Figure 4.00e+00 Contours of Mach Number (Time=2.17e+00 1.10e-01 7.3928e-02) Feb 08.50e-01 5. coupled imp.90e-01 2. S-A.60e-01 1. unsteady) Figure 4.30e-01 0.0227 s 1.10e-01 7.80e-01 6.

g.. 2001 4-45 . November 27. To save a series of TIFF. If you want to view the solution animation in a later FLUENT session. The MPEG ﬁle will be saved in your working directory. you can select Animation Frames as the Write/Record Format and click Write.Modeling Unsteady Compressible Flow Extra: FLUENT gives you the option of exporting an animation as an MPEG ﬁle or as a series of ﬁles in any of the hardcopy formats available in the Graphics Hardcopy panel (including TIFF and PostScript). c Fluent Inc. saving each frame to a separate ﬁle in your working directory.. Click Apply in the Graphics Hardcopy panel to save your modiﬁed settings.. ! Since the solution animation was stored in memory. FLUENT will replay the animation. or other hardcopy ﬁles. click the Write button. select MPEG from the Write/Record Format drop-down list in the Playback panel and then click the Write button. Note that only the animation-frame format can be read back into the Playback panel for display in a later FLUENT session. To save an MPEG ﬁle. Windows Media Player or another MPEG movie player). PostScript. In the Playback panel. select Hardcopy Frames in the Write/Record Format drop-down list in the Playback panel. it will be lost if you exit FLUENT without saving it to one of the formats described above. Click on the Hardcopy Options. You can view the MPEG movie using an MPEG player (e. button to open the Graphics Hardcopy panel and set the appropriate parameters for saving the hardcopy ﬁles.

Display −→Vectors. 2001 ...dat) into FLUENT. (b) Plot vectors at t = 0.. November 27. (a) Read case and data ﬁles for the 30th time step (noz anim0330.. 4-46 c Fluent Inc.13). File −→ Read −→Case & Data.Modeling Unsteady Compressible Flow 9.0238 s. Display velocity vectors after 30 time steps (Figure 4.cas and noz anim0330.

0 (2d.71e+02 1.33e+01 2.92e+02 1.50e+02 1. S-A. 2001 4-47 . 10.07e+02 8. with peak velocity of about 213 m/s through the nozzle at t = 0. coupled imp.20e+01 7. 2.0238 seconds.13e+02 1. Change the Scale to 10. Click Display.28e+02 1. iii. 2001 FLUENT 6. unsteady) Figure 4.3785e-02) Jun 21. Repeat step 9 using case and data ﬁles saved for other time steps of interest.58e+01 6. Select arrow in the Style drop-down list.46e-01 Velocity Vectors Colored By Velocity Magnitude (m/s) (Time=2.13: Velocity Vectors at t = 0.45e+01 4.Modeling Unsteady Compressible Flow i. November 27. ii.0238 s c Fluent Inc. The unsteady ﬂow prediction shows the expected form.

You also learned how to manage the ﬁle saving and graphical postprocessing for time-dependent ﬂows. you learned how to use FLUENT’s solution animation tool to create animations of transient data. Finally.Modeling Unsteady Compressible Flow Summary: In this tutorial. 4-48 c Fluent Inc. using ﬁle autosaving to automatically save solution information as the transient calculation proceeds. and how to view the animations using the playback feature. 2001 . November 27. You learned how to generate a steady-state solution as an initial condition for the unsteady case. and how to set solution parameters for implicit time-stepping. you modeled the transient ﬂow of air through a nozzle.