CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to interpret an oscillating CD value?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2013, 13:57
Default How to interpret an oscillating CD value?
  #1
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
I'm running a transient simulation of a two dimensional open wedge (geometry and mesh) and I get an oscillating CD value.



I understand that this is possible due to shed vortices, but I'm wondering how I should interpret that value.
Is taking the average of the maximum and minimum value of the CD acceptable?

If not, how can I get rid of the oscillation such that I get a steady-state CD value?
ziggo is offline   Reply With Quote

Old   August 21, 2013, 16:15
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
You could run a steady-state simulation. If it converges well and you are satisfied with the result, I recommend that.

If you need the transient calculation: Simulate more timesteps!
Once the flow has reached a statistically steady state, you can evaluate the drag coefficient as the mean value over a sufficiently long time period.
Statistically steady means that the mean value does no longer depend on the position of the sampling interval.
For example: The mean value over the last quarter of your data is not the same as the mean value over the third quarter of the data. In other words: there is a decreasing trend in the data.

Nevertheless, it looks like the time step size is too high. The fast oscillations are not well resolved.
flotus1 is offline   Reply With Quote

Old   August 24, 2013, 18:23
Question
  #3
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
A steady solution does not converge due to the periodic vortex shedding at the edges of the wedge, therefore I use a transient simulation.

I have done a time-step and grid study to see if I could get sensible results, but the results leave me lost. I really have no clue on how to interpret them or how to change my simulation such that I get a converging CD value.
Increasing the time-step did not eliminate the oscillations, refining the mesh somehow did.

I've attached three plots that each show a drag coefficient history for different grids (A = coarse, B = medium, C = fine). Each plot shows results for a certain timestep (e.g. t0p01 = time step of 0.01s).

The only conclusions I can draw is that a coarse grid shows an oscillatory CD value and a fine grid somehow manages to get rid of this oscillation, in the process lowering CD significantly.
As the geometry has sharp edges I can imagine that the vortex shedding introduces an oscillatory drag fluctuation, but this does not explain why the fine mesh loses this periodic behaviour.

I am lost on why this is happening and hope some of you can maybe give pointers on what is going on.
Attached Images
File Type: jpg t0p01.jpg (28.2 KB, 152 views)
File Type: jpg t0p05.jpg (26.7 KB, 119 views)
File Type: png t0p005.png (92.7 KB, 106 views)
ziggo is offline   Reply With Quote

Old   August 25, 2013, 05:54
Default
  #4
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
One conclusion we can draw from your results is that you havent achieved a grid-independent solution yet.
The difference between the "medium" and the "fine" mesh is way too high. You will need to do further refinements on the mesh. Once a nearly grid-independent solution is available, estimating the influence of the time step size will be much easier.

Feel free to post more information concerning the general setup. Maybe there is something else we are missing.
flotus1 is offline   Reply With Quote

Old   August 25, 2013, 11:21
Default
  #5
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
I will start simulating an even finer mesh, although I'm surprised that this is necessary. A flat plate normal to the flow converged at a much coarser mesh with an order of magnitude less cells. Apparently this flow is much more complex than the flat plate.

I've attached images of the geometry and the computational domain, containing the wake refinement areas (flow is coming from left, normal to the left domain boundary). I've also included some images of the finest mesh (named C) at the leading edge and at the lower trailing edge.

I've included the mesh sizing of the different areas for the different meshes below. All sizes in meters.

Mesh A
Domain: max. cell size: 0.2308
Wake refinement 1: 1e-2
Wake refinement 2: 7.5e-3
Edge sizing on geometry wall: 5e-3
Inflation layer first layer height: 1e-5, 20 layers, growth factor 1.2

Mesh B
Domain: max. cell size: 0.2308
Wake refinement 1: 7e-3
Wake refinement 2: 3.5e-3
Edge sizing on geometry wall: 7e-4
Inflation layer first layer height: 1e-5, 20 layers, growth factor 1.2

Mesh C
Domain: max. cell size: 0.2308
Wake refinement 1: 5.5e-3
Wake refinement 2: 2.5e-3
Edge sizing on geometry wall: 5.5e-4
Inflation layer first layer height: 1e-5, 20 layers, growth factor 1.2

The inflation layer is chosen such that a y+ value of less than 1 is achieved. This is the case. At the wall the y+ value is around 0.7.
Attached Images
File Type: png oc2D-geometry-01.png (45.7 KB, 46 views)
File Type: png oc2D-geometry-02.png (48.2 KB, 38 views)
File Type: jpg leading edge-C.jpg (98.2 KB, 72 views)
File Type: jpg trailing edge-C.jpg (92.5 KB, 53 views)
ziggo is offline   Reply With Quote

Old   August 25, 2013, 12:06
Default
  #6
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
The fact that you achieved a converged solution for the flat plate with a coarser mesh does not mean that it is a grid-independent solution.
What convergence criterion did you use? How many iterations per timestep?
Did you estimate a frequency for the vortex shedding at the trailing edge of the geometry? If not, how high is the free stream velocity?
flotus1 is offline   Reply With Quote

Old   August 25, 2013, 19:11
Default
  #7
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
Sorry, I meant to say grid independent. I've replicated the results from this paper by Castelli (2012) on a flat plate flow and it needed much less cells.

In my hurry I've also forgot to mention crucial information on the problem.
The flow speed is 26 m/s as that was the speed used in the wind tunnel on a similar shape, the wedge has an edge length of 0.245 meter and I used a convergence criterion of 1e-4. However this criterion was only reached with Mesh C as the other never actually converged because of the pressure oscillation (that's at least what I think is the reason).
For all simulations I've used a maximum of 40 iterations per time-step. This choice was made arbitrarily in the hope to reach better convergence than with the default 20.

Additionally I've set the turbulence intensity to be 0.5% at the inlet and 5% at the outlet. Together with a turbulence length of 0.01715 m (= 0.07*0.245, based on a relation found in the Fluent documentation) this yielded a fairly constant turbulence intensity (only ~6% change) at the lower wall of the domain.
This condition (as little change in TI as possible on the lower/upper domain edge) is taken from a report of a previous student working with CFD simulations.

I'm not sure what you mean by "estimate frequency" (do you mean from literature/theoretically?) but I have done a FFT on the last half of the oscillating CD value and found different frequencies depending on the time-step (27Hz for dt = 0.005 and 17Hz for dt = 0.01).

Thank you for your prolonged help in this issue, it is much appreciated.
ziggo is offline   Reply With Quote

Old   August 26, 2013, 02:30
Default
  #8
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Quote:
Originally Posted by ziggo View Post
I used a convergence criterion of 1e-4. However this criterion was only reached with Mesh C as the other never actually converged because of the pressure oscillation (that's at least what I think is the reason).
In this case, when comparing the "results" for Mesh A, B and C you actually dont compare the effect of the discretization error.
Since the results on Mesh A and B are not converged, you cannot tell if the differences you observe are due to the grid size.

Quote:
Additionally I've set the turbulence intensity to be 0.5% at the inlet and 5% at the outlet. Together with a turbulence length of 0.01715 m (= 0.07*0.245, based on a relation found in the Fluent documentation)
This relation only makes sense for internal flows, where the geometry actually affects the turbulence. In your case, the wedge does (almost) not affect the turbulence at the inlet.
Anyway, a low value (0.5%) for the turbulence intensity is an appropriate choice whereas you will have to check if the results are sensitive towards the turbulence length scale.

Quote:
I'm not sure what you mean by "estimate frequency" (do you mean from literature/theoretically?) but I have done a FFT on the last half of the oscillating CD value and found different frequencies depending on the time-step (27Hz for dt = 0.005 and 17Hz for dt = 0.01).
I meant that you can estimate the frequency of the vortex shedding. Of course we dont know the Strouhal number exactly, but we can still make a conservative guess for the vortex shedding frequency by f \approx \frac{u}{l}=108 Hz.
This seems a bit high (Sr is usually lower than 1), and I actually think that the vortex shedding at the sharp trailing edges is more pronounced here. If we estimate this frequency as f ~ u we get 26 Hz.
Multiplied by 10 ("Nyquist") and inverted we have a rough estimate for a suitable time step size: 0.004 seconds.
Larger time steps make no sense in the first place as they cannot resolve the transient effect we just estimated. That is why you observe lower frequencies for larger time step sizes and why you cannot get convergence within 40 Iterations, which usually indicates that the time step size is too large.

Another hint: I think that you cannot get a converged solution even with the smaller time step sizes on the coarse meshes because they might be too coarse to resolve the vortex shedding at the trailing edge.
Check the results on the fine mesh first to see if this type of vortex is present.
Consider a third refinement zone here.
refinement.jpg

Last edited by flotus1; August 26, 2013 at 08:59.
flotus1 is offline   Reply With Quote

Old   August 26, 2013, 04:44
Default
  #9
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
Thank you for your help, I will investigate these points.
All is clear except for:

Quote:
Originally Posted by flotus1 View Post
Multiplied by 10 ("Nyquist") and inverted we have a rough estimate for a suitable time step size: 0.04 seconds.
I though the Nyquist criterion was that the sampling frequency should be two times the signal frequency? Why do you use a factor of 10?
And even if I multiply 26 by 10 and invert it I get 0.004 instead of 0.04.
Is that what you meant?
ziggo is offline   Reply With Quote

Old   August 26, 2013, 09:04
Default
  #10
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
My bad. Of course you are right it must be 0.004 seconds.

The Nyquist-criterion commonly used for signal analysis tells nothing about the accuracy at which the frequency is captured.
Imagine you try to draw a sinosoidal signal with only two points: not very accurate...
That is why I multiply by 10 instead of 2 which is still very low if the temporal discretization is first order accurate.
I hope you chose second order.
flotus1 is offline   Reply With Quote

Old   August 26, 2013, 12:33
Default
  #11
Member
 
Bart A.
Join Date: Feb 2012
Posts: 45
Rep Power: 0
ziggo is on a distinguished road
Small update:

The convergence found for fine meshes is actually "fake".
The attachment shows a nearly constant value of CD for a while and Fluent indicates that the residuals are converged in that timeframe. However, at the end of the simulation an oscillation is starting. At that point the residuals are not converged anymore.

This indicates that even for fine meshes an oscillation will occur, although later.
Attached Images
File Type: jpg fake-convergence.jpg (23.8 KB, 105 views)
ziggo is offline   Reply With Quote

Reply

Tags
drag coefficient, fluent 14, oscillating residuals


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reason for oscillating residuals fayaazhussain Main CFD Forum 3 August 21, 2014 10:31
oscillating inlet mo.houssami OpenFOAM 13 January 16, 2013 08:00
[Other] Oscillating Airfoil and Independently Oscillating Flap dancfd OpenFOAM Meshing & Mesh Conversion 3 August 26, 2010 18:52
Oscillating flow over subsea structure pmo CFX 4 March 16, 2010 06:16
time averaged heat transfer in oscillating flow Matthieu Ubas Main CFD Forum 2 November 5, 1999 14:20


All times are GMT -4. The time now is 20:38.