当前位置:文档之家› 大涡模拟的FLUENT算例2D

大涡模拟的FLUENT算例2D

Tutorial:Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)IntroductionThe purpose of this tutorial is to provide guidelines and recommendations for the basic setup and solution procedure for a typical aeroacoustic application using computational aeroacoustic(CAA)method.In this tutorial you will learn how to:•Model a Helmholtz resonator.•Use the transient k-epsilon model and the large eddy simulation(LES)model foraeroacoustic application.•Set up,run,and perform postprocessing in FLUENT.PrerequisitesThis tutorial assumes that you are familiar with the user interface,basic setup and solution procedures in FLUENT.This tutorial does not cover mechanics of using acoustics model,but focuses on setting up the problem for Helmholtz-Resonator and solving it.It also assumes that you have basic understanding of aeroacoustic physics.If you have not used FLUENT before,it would be helpful tofirst review FLUENT6.3User’s Guide and FLUENT6.3Tutorial Guide.Problem DescriptionA Helmholtz resonator consists of a cavity in a rigid structure that communicates through anarrow neck or slit to the outside air.The frequency of resonance is determined by the mass of air in the neck resonating in conjunction with the compliance of the air in the cavity.The physics behind the Helmholtz resonator is similar to wind noise applications like sun roof buffeting.We assume that out of the two cavities that are present,smaller one is the resonator.The motion of thefluid takes place because of the inlet velocity of27.78m/s(100km/h).The flow separates into a highly unsteady motion from the opening to the small cavity.This unsteady motion leads to a pressurefluctuations.Two monitor points(Point-1and Point-2) act as microphone points to record the generated sound.The acoustic signal is calculated within FLUENT.Theflow exits the domain through the pressure outlet.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA) Preparation1.Copy thefiles steady.cas.gz,steady.dat.gz,execute-by-name.scm,stptmstp4.scm,ti-to-scm-jos.scm and stptmstp.txt into your working directory.2.Start the2D double precision(2ddp)version of FLUENT.Setup and SolutionStep1:Grid1.Read the initial case and datafiles for steady-state(steady.cas.gz and steady.dat.gz).File−→Read−→Case&Data...Ignore the warning that is displayed in the FLUENT console while reading thesefiles.2.Keep default scale for the grid.Grid−→Scale...3.Display the grid and observe the locations of the two monitor points,Point-1andPoint-2(Figure1).Figure1:Graphics Display of the Grid4.Display and observe the contours of static pressure(Figure2)and velocity magnitude(Figure3)for the initial steady-state solution.Display−→Contours..Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)Figure2:Contours of Static Pressure(Steady State)Figure3:Contours of Velocity Magnitude(Steady State)Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA) Step2:Models1.Select unsteady solver.Define−→Models−→Solver...(a)Select Unsteady in the Time list.(b)Select2nd-order-implicit in the Unsteady formulation list.(c)Retain the default settings for other parameters.(d)Click OK to close the Solver panel.2.Define the viscous model.Define−→Models−→Viscous...(a)Select Non-Equilibrium Wall Functions in the Near-Wall Treatment list.(b)Retain the default settigns for other parameters.(c)Click OK to close the Viscous Model panel.Near-Wall Treatment predicts good separation and re-attachment points.Step3:MaterialsDefine−→Materials...1.Select ideal-gas from the Density drop-down list.2.Retain the default values for other parameters.3.Click Change/Create and close the Materials panel.Ideal gas law is good in predicting the small changes in the pressure.Step4:Solution1.Monitor the static pressure on point-1and point-2.Solve−→Monitors−→Surface...(a)Enter2for the Surface Monitors.(b)Enable Plot and Print options for monitor-1and monitor-2.(c)Select Time Step from the When list.(d)Click Define...for monitor-1to open Define Surface Monitor panel.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)i.Select Vertex Average from the Report Type drop-down list.ii.Select Flow Time from the X Axis drop-down list.iii.Enter1for Plot Window.iv.Select point-1from the Surfaces selection list.(e)Similarly,specify the surface monitor parameters for point-2.2.Start the calculations using the following settings.Solve−→Iterate...(a)Enter3e-04s for Time Step Size.The expected time step size for this problem is of the size of about1/10th of thetime period.The time period depends on the frequency(f)which is calculatedusing the following equation:f=c2πSV[L+π2.D h2]where,c=Speed of soundS=Area of the orifice of the resonatorV=Volume of the resonatorL=Length of the connection between the resonator and the freeflow areaD h=Hydraulic diameter of the orificeFor this geometry,the estimated frequency is about120Hz.(b)Enter250for the Number of Time Steps.(c)Enter50for Max Iterations per Time Step.(d)Click Apply.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)(e)Read the schemefile(stptmstp4.scm).File−→Read−→Scheme...Thisfile activates a alternative convergence criteria.For acoustic simulationswith CAA it is obligatory that the pressure is completely converged at the recieverposition.FLUENT compares the monitor quantities within the last n-defined it-erations to judge if the deviation is smaller than a y-defined deviation.(f)Specify the number of previous iterations from which monitor values of eachquantity used are saved and compared to the current(latest)value(include theparanthesis):(set!stptmstp-n5)(g)Specify the relative(the smaller of two values in any comparison)differenceby which any of the older monitor values(for a selected monitor qauntity)maydiffer from the newest value:(set!stptmstp-maxrelchng1.e-02)(h)Define the execute commands.Solve−→Execute Commandsi.Enter(stptmstp-resetvalues)for thefirst command and select Time Stepfrom the drop-down list.ii.Enter(stptmstp-chckcnvrg"/report/surface-integrals vertex-avg point-1 ()pressure")and select Iteration from the drop-down list.iii.Click OK.(i)Click Iterate to start the calculations.The iterations will take a long time to complete.You can skip this simulation af-ter few time steps and read thefiles(transient.cas.gz and transient.dat.gz)provided with this tutorial.Thesefiles contain the data for theflow time of0.22seconds.As seen in Figures4and5,no pressurefluctuations are present at thisstage.The oscillations of the static pressure at both monitor points has reacheda constant value.The RANS-simulation is a good starting point for Large Eddy Simulation.Ifyou choose to use the steady solution as initial condition for LES,use the TUIcommand/solve/initialize/init-instantaneous-vel provides to get a more realisticinstantaneous velocityfield.The usage of LES for acoustic simulations is obliga-tory.The next two pictures compare the static pressure obtained with RANS andLarge Eddy Simulation for a complete simulation until0.525seconds.Obviously,the k-epsilon model underpredicts the strong pressure oscillation after reachinga dynamically steady state(>0.3s)due to its dissipative character.Under-predicted pressure oscillations lead to underpredicted sound pressure level whichmeans the acoustic noise is more gentle.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)Figure4:Convergence History of Static Pressure on Point-1(Transient)Figure5:Convergence History of Static Pressure on Point-2(Transient)Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA) Step5:Enable Large Eddy Simulation1.Enter the following TUI command in the FLUENT console:(rpsetvar’les-2d?#t)2.Enable large eddy simulation effects.The k-epsilon model cannot resolve very small pressurefluctuations for aeroacousticdue to its dissipative e Large Eddy Simulation to overcome this problem.Define−→Models−→Viscous...(a)Enable Large Eddy Simulation(LES)in the Model list.(b)Enable WALE in the Subgrid-Scale Model list.(c)Click OK to close the Viscous Model panel.An Information panel will appear,warning about bounded central-deferencing be-ing default for momentum with LES/DES.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA)(d)Click OK to close the Information panel.3.Retain default discretization schemes and under-relaxation factors.Solve−→Controls−→Solution...4.Enable writing of two surface monitors and specifyfile names as monitor-les-1.out andmonitor-les-2.out for monitor plots of point-1and point-2respectively.Solve−→Monitors−→Surface...To account for stochastic components of theflow,FLUENT provides two algorithms.These algorithms model thefluctuating velocity at velocity inlets.With the spec-tral synthesizer thefluctuating velocity components are computed by synthesizing adivergence-free velocity-vectorfield from the summation of Fourier harmonics.5.Enable the spectral synthesizer.Define−→Boundary Conditions...(a)Select inlet in the Zone list and click Set....i.Select Spectral Synthesizer from the Fluctuating Velocity Algorithm drop-downlist.ii.Retain the default values for other parameters.iii.Click OK to close the Velocity Inlet panel.(b)Close the Boundary Conditions panel.Modeling Aeroacoustics for a Helmholtz Resonator Using the Direct Method(CAA) Typically it takes a long time to get a dynamically steady state.Additionally,thesimulated(and recorded for FFT)flow time depends on the minimum frequency in thefollowing relationship:flowtime=10minimumfrequency(1)The standard transient scheme(iterative time advancement)requires a considerable amount of computaional effort due to a large number of outer iterations performed for each time-step.To accelerate the simulation,the NITA(non-iterative time advance-ment)scheme is an alternative.6.Set the solver parameters.Define−→Models−→Solver...(a)Enable Non-Iterative Time Advancement in the Transient Controls list.(b)Click OK to close the Solver panel.7.Set the solution parameters.Solve−→Controls−→Solution...(a)Select Fractional Step from the Pressure-Velocity Coupling drop-down list.(b)Click OK to close the Solution Controls panel.8.Disable both the execute commands.Solve−→Execute Commands...9.Continue the simulation with the same time step size for1500time steps to get adynamically steady solution.10.Write the case and datafiles(unsteady-final.cas.gz and unsteady-final.dat.gz).File−→Write−→Case&Data...Figure6:Convergence History of Static Pressure on Point-1(Transient)Figure7:Convergence History of Static Pressure on Point-2(Transient)Step6:Postprocessing1.Display the contours of static pressure to visualize the eddies near the orifice.2.Enable the acoustics model.Define−→Models−→Acoustics...(a)Enable Ffowcs-Williams&Hawkings from the Model selection list.(b)Retain the default value of2e-05Pa for Reference Acoustic Pressure.To specify a value for the acoustic reference pressure,it is necessary to activatethe acoustic model before starting postprocessing.(c)Retain default settings for other parameters.(d)Click OK to accept the settings.A Warning dialog box appears.This is an informative panel and will not affectthe postprocessing results.(e)Click OK to acknowledge the information and close the Warning panel.3.Plot the sound pressure level(SPL).Plot−→FFT...(a)Click Load Input File...button.(b)Select monitor plotfile for Point-1(monitor-les-1.out).(c)Click Plot/Modify Input Signal....i.Select Clip to Range,in the Options list.ii.Enter0.3for Min and0.5for Max in the X Axis Range group box.iii.Select Hanning in the Window drop-down list.Hanning shows good performance in frequency resolution.It cuts the timerecord more smoothly,eliminating discontinuities that occur when data iscut off.iv.Click Apply/Plot and close the Plot/Modify Input Signal panel.(d)Select Sound Pressure Level(dB)from the Y Axis Function drop-down list.(e)Select Frequency(Hz)in the X Axis Function drop-down list.(f)Click Plot FFT to visualize the frequency distribution at Point-1.(g)Select Write FFT to File in the Options list.Note:Plot FFT button will change to Write FFT.(h)Click Write FFT and specify the name of the FFTfile in the resulting Select Filepanel.(i)Similarly write the FFTfile for monitor plot for point-2(Figure9).Figure8:Spectral Analysis of Convergence History of Static Pressure on Point-1Figure9:Spectral Analysis of Convergence History of Static Pressure on Point-2In Figures8and9,the sound pressure level(SPL)peak occurs at125Hz which is close to the analytical estimation.Considering that this tutorial uses a slightly large time step and a2D geometry,the result isfine.pare the frequency spectra at point-1and point-2.Plot−→File...(a)Click Add...and select two FFTfiles(point-1-fft.xy and point-2-fft.xy)that you have saved in the previous step.(b)Click Plot to visualize both spectra in the same window(Figure10).Note that the peak for Point-1is a little higher than for Point-2.This is due to the dissipative behaviour of the sound in the domain.The bigger the distance between the reciever point and the noise source,the bigger is the dissipation of sound.This is the reason,why we use CAA method only for nearfield calculations.Figure10:Comparison of Frequency Spectra at Point-1and Point-2A second issue is the dissipation of sound due to the influence of the grid size.This applies especially for which the wave lengths are very short.Thus,a too coarse mesh is not capable of resolving high frequencies correctly.In the present example,the mesh is rather coarse in the far-field.Thus,the discrepancy between both spectra is more evident in the high frequency range.This behaviour can be seen in Figure11.For high frequencies,the monitor for Point-1generates much fewer noise than monitor for Point-2due to coarse grid resolution.Figure11:Spectral Analysis of Convergence history of Static PressureThe deviation of sound pressure level between thefirst two maximum peaks(50Hz and132 Hz)is quite small.The postprocessing function magnitude in fourier transform panel is similar to the root mean square value(RMS)of the static pressure at these frequencies. We can use the RMS value to derive the amplitude of the pressurefluctuation which is responsible for the SPL-peak.The resolution of frequency spectra is limited by the temporal discretization.With the temporal discretization,the maximum frequency isf max=12 t(2)This frequency is defined as Nyquist frequency.It is the maximum educible frequency.To resolve up to f max the maximum allowable time step size isf max=12×f max(3)Figure12:Spectral Analysis of Convergence History of Static Pressure on Point-1An instability of thefluid motion coupled with an acoustic resonance of the cavity(helmholtz resonator)produces large pressurefluctuations(at132Hz).Compared to this dominant helmholtz resonance the pressurefluctuation at50Hz is quite small.Figure13:Spectral Analysis of Convergence History of Static Pressure on Point-2SummaryAeroacoustic simulation of Helmholtz resonator has been performed using k-epsilon model and Large Eddy Simulation model.The advantage of using LES model has been demon-strated.You also learned how the sound dissipation occurs in the domain by monitoring sound pressure level at two different points in the domain.The importance of using CAA method has also been explained.。

相关主题