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

nonsense coefficient of drag

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2015, 23:28
Default nonsense coefficient of drag
  #1
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
I am running a simulation on steady 3D laminar air flow (v=100 m/s)across a sphere and looking to calculate the coefficient of drag. I set the monitor to report and plot the coefficient of drag but the numbers converge down to Cd's around 0.001.

Is it too ambitious to expect CFD results to match experimental results? I do not understand why these results are reporting so low. Any help would be appreciated.

Thank you.
tschultz is offline   Reply With Quote

Old   April 16, 2015, 23:42
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Have you ensured your reference values are correct? Fluent uses these reference values for calculating coefficients; including the drag and lift coefficients.
`e` is offline   Reply With Quote

Old   April 16, 2015, 23:47
Default
  #3
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
Did you set your residual on 0.001 or it converged by itself on that? What are the imbalances? It should be less than 1%

To be honest I've got the same problem but mine converges on 0.000001 and everything looks Ok except the results compare to the wind tunnel test data
Darius is offline   Reply With Quote

Old   April 16, 2015, 23:58
Default
  #4
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
Quote:
Originally Posted by Darius View Post
Did you set your residual on 0.001 or it converged by itself on that? What are the imbalances? It should be less than 1%

To be honest I've got the same problem but mine converges on 0.000001 and everything looks Ok except the results compare to the wind tunnel test data
Darius, I must admit I am new to FLUENT and am fumbling around quite a bit. Can you clarify on how to check/set residuals and imbalances?

Thanks again
tschultz is offline   Reply With Quote

Old   April 17, 2015, 00:09
Default
  #5
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
In the fluent setting list on the left side...you set the iterations which 200 should be perfect for the laminar flow, the other one is the Timescale factor which in your case 10 would be fine and the last one is the Residual Target that should be set to 0.000001 which defines the limit of your convergence (it means the fluent will solve the Navier stoke equations till the residuals reach as low as 0.000001).... just click on the tabs and you'll find them.
Darius is offline   Reply With Quote

Old   April 17, 2015, 00:35
Default
  #6
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
I went to Monitors> Residuals > Edit > and set all the residuals' absolute criteria to 1e-6. I ran the simulation again after than and here is what my residual plot looks like
Attached Images
File Type: jpg Capture.jpg (14.3 KB, 37 views)
tschultz is offline   Reply With Quote

Old   April 17, 2015, 00:37
Default
  #7
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
Also, my Cd plot:
Attached Images
File Type: jpg Capture.jpg (13.5 KB, 36 views)
tschultz is offline   Reply With Quote

Old   April 17, 2015, 00:56
Default
  #8
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
Your model is a sphere and you should setup a transient simulation of a transient vortex shedding which is different than a laminar flow over an airfoil... that's why you get these weird results....
Search in google for fluent vortex shedding tutorial and you get lots of infos
Darius is offline   Reply With Quote

Old   April 17, 2015, 00:57
Default
  #9
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Quote:
Originally Posted by `e` View Post
Have you ensured your reference values are correct? Fluent uses these reference values for calculating coefficients; including the drag and lift coefficients.
Have you read my suggestion yet? Also, Darius is correct, there is most likely vortex shedding in your setup which would require an unsteady simulation.
`e` is offline   Reply With Quote

Old   April 17, 2015, 01:01
Default
  #10
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
The iterations should be set to 2000 and your timesteps to 0.01 and also total time or timescale on 20
Darius is offline   Reply With Quote

Old   April 17, 2015, 01:02
Default
  #11
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
You also have to change the analysis type to transient
Darius is offline   Reply With Quote

Old   April 17, 2015, 01:15
Default
  #12
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
e- Yes I checked the reference values and they check out ok.

I will start researching the vortex shedding tutorial now. Thank you both.

Darius, you mentioned that you have a simulation that correlates well to experimental data. Is there any way that I can see your particular setup?

I appreciate your help. I am doing a project where we kind of got thrown into the deep end so im really scrounging for help at this point.
tschultz is offline   Reply With Quote

Old   April 17, 2015, 01:59
Default
  #13
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
I'm running my simulation in CFX not fluent and it's on an airfoil not a sphere .. I also have problem with the results I get from CFX and doesn't correlates with the wind tunnel test I made before... I don't think it would be useful for you but if you want I can upload it on google drive and share it with you if you give me ur email
Darius is offline   Reply With Quote

Old   April 17, 2015, 04:29
Default
  #14
New Member
 
Darius Geric
Join Date: Apr 2015
Location: London
Posts: 22
Rep Power: 11
Darius is on a distinguished road
There're the pictures... the one I rotated with solidworks give better results
Attached Images
File Type: jpg 1429259221230.jpg (15.0 KB, 20 views)
File Type: jpg 1429259261013.jpg (18.8 KB, 17 views)
Darius is offline   Reply With Quote

Old   April 17, 2015, 10:44
Default
  #15
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
I changed my parameters to unsteady to iterate over a few time steps and the residuals set to 1e-6. Then I set it for 1000 iterations per time step and it converged reasonably well. However, it never met the criteria and cycled at the 1000 iteration limit. The results came back looking somewhat reasonable, but still not quite there.

I read on another source that the computer platform can significantly affect the convergence. It was interesting because I following a tutorial on flow past a 2D cylinder and my setup was identical to the tutorial... while his met the criteria within 50 iterations, mine was not so lucky.

Do you think the differences in computing power can affect the rate of convergence? That seems a little odd, but it appears that we had exact setups so im not sure what the problem could really be.
tschultz is offline   Reply With Quote

Old   April 17, 2015, 17:40
Default
  #16
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 tschultz View Post
mine was not so lucky.
Fortunately for you, luck can be eliminated from CFD results by providing reasonable setup parameters. Let me take a few guesses:

Time step size too large.
No transient simulation takes 1000 Iterations per time step to converge with a properly estimated time step size.
We had this topic here and there for example.

Inappropriate turbulence modeling.
Estimate the Reynolds number of the flow and tell us about it.
Use at least a standard K-epsilon model if the flow is turbulent instead of performing an under-resolved DNS.

As already stated: wrong reference values.
Or wrong direction for the drag force in the Cd monitor. Feel free to post the values you used.

A few other things: Extent of the computational domain, boundary conditions at outer boundaries, mesh quality...

Last edited by flotus1; April 18, 2015 at 03:33.
flotus1 is offline   Reply With Quote

Old   April 17, 2015, 19:36
Default
  #17
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
Here is my setup as I have it:

General:
Pressure-Based, Transient, Absolute, Planar
Model:
K-Epsilon (standard with standard wall treatment). I left the values at default.
Material: air
Boundary Conditions:
Inlet- Velocity (1 m/s)
wall- wall type with 0 shear condition
cylinder (object of interest)- no slip wall
Reference Values:
Everything is air properties.

Solution Method: coupled with everything default except 2nd order transient formulation.
Flow courant number: default at 200 (This I am not so sure of its affect, any thoughts?). Everything in the Solutions controls was left default.
Monitors: My drag monitor is printing and plotting for the cylinder wall zone. Force Vector in the X=1.
Initialization: Hybrid Initialization

I am running the calculation at 0.01 second time steps (10 steps total) and I set the Iterations/time step to 100.


As you can see from the pictures. It is pretty crazy. Anybody see anything that I may be doing wrong?

Note the first two iterations went well (actually converged within 60 iterations)

Thanks again everybody
Attached Images
File Type: jpg c1.jpg (19.4 KB, 11 views)
File Type: jpg c2.jpg (14.1 KB, 12 views)
File Type: jpg c3.jpg (59.1 KB, 14 views)
File Type: jpg c4.JPG (63.4 KB, 16 views)
tschultz is offline   Reply With Quote

Old   April 18, 2015, 03:52
Default
  #18
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
Once again, read this thread carefully and follow the procedure outlined there to estimate a suitable time step size and total simulation time.

Quote:
wall- wall type with 0 shear condition
Use symmetry boundary conditions instead.
Zero shear walls and symmetry boundary conditions are not the same when a turbulence model is activated.

Quote:
Reference Values:
Everything is air properties.
The drag coefficient is calculated from this formula:

c_D = \frac{2F_D}{\rho_\text{ref}u_\text{ref}^2A_\text{ref}}

Make sure to set reference density, velocity and area to suitable values.

Quote:
General:
Pressure-Based, Transient, Absolute, Planar
Planar 2D basically means you are simulating a cylinder, not a sphere.

Quote:
Solution Method: coupled with everything default except 2nd order transient formulation.
Use SIMPLE pressure velocity coupling unless you have a very good reason not to do so.


Apart from these issues, we need to see a closeup of the mesh around the "cylinder" wall.
ghost82 likes this.
flotus1 is offline   Reply With Quote

Old   April 18, 2015, 10:15
Default
  #19
New Member
 
Tim
Join Date: Apr 2015
Posts: 13
Rep Power: 11
tschultz is on a distinguished road
Here is a picture of the meshing near the cylinder. I used the inflation feature to increase the density of the mesh near the surface.

I changed the time step to 1.875s modeled after the thread you were involved with. I am trying to run 10 time steps with 75 iterations per time step.

Changed the Method to SIMPLE with second order transient. Turbulence model is still default K-epsilon. And lastly, I changed the boundary condition at the wall to symmetry.

I calculated the Reynolds value based on the reference values and I am looking at something around 7000 (expecting a Cd of between 0.5 and 1.0).

After running the simulation with this setup, I get similarly volatile residual convergence. (see attached) and the Cd convergence plot blew up.

I am doing just the 10 iterations to get a sneak peak at the results. Would you expect a simulation to have unreasonable results in the first few iterations and then settle in over time? Or is this still unprecedented?

For the Inlet, I have the turbulence set: Turbulent intensity= 0.5% and Turbulent Viscosity Ratio = 10. Is this significant?

Thoughts? Thanks again
Attached Images
File Type: jpg c5.jpg (93.6 KB, 23 views)
File Type: jpg c1.jpg (13.3 KB, 13 views)
File Type: jpg c2.jpg (17.3 KB, 15 views)
tschultz is offline   Reply With Quote

Old   April 18, 2015, 10:54
Default
  #20
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 mesh near the cylinder looks weird to say the least.
Since your Reynolds number is rather low, you do not need such a high mesh density near the wall. Reduce the number of cells in the boundary layer untill you can at least see the individual mesh lines in the closeup picture and then post picture here.
Additionally, check maximum skewness value of the cells in the meshing application and post the text message fluent gives you when you click on "mesh" -> "check"

The overall mesh density is rather high especially in regions far away from the cylinder. You can increase the overall mesh size to get faster convergence.

I dont know how you estimated a time step size of 1.875s.
What is the diameter of the cylinder?

It is normal that the results after 10 iterations have nothing to do with the final results of the converged solution. Dont worry about that.
flotus1 is offline   Reply With Quote

Reply


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
Drag Coefficient Convergence Problem John FLUENT 18 June 24, 2023 09:22
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 05:18
problem with saving drag coefficient colopolo FLUENT 5 April 12, 2013 10:59
Calculation of Drag Coefficient, Help Please teek22 CFX 1 April 26, 2012 18:41
Automotive test case vinz OpenFOAM Running, Solving & CFD 98 October 27, 2008 08:43


All times are GMT -4. The time now is 04:27.