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

How does Fluent calculate lift&drag coefficients?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Zbynek

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2016, 13:53
Default How does Fluent calculate lift&drag coefficients?
  #1
New Member
 
Join Date: May 2016
Posts: 4
Rep Power: 10
Fluidiculous is on a distinguished road
Hi all,

I took a quick peek through the search function and didn't see a similar question so I apologize if it's been asked before.
I am doing a very simple 2D simulation of uniform flow over a bluff body. It is essentially a rectangular domain with constant flow coming in from the left and leaving on the right side. In the middle of the rectangular domain I have my bluff body. For this simulation I have activated the lift and drag coefficient monitors on the walls of the bluff body, which I have in a txt file. I was wondering how exactly Fluent calculates these coefficients?

Is there a way to monitor the shear forces and lift forces on the walls of the bluff body as I run this simulation? I assume I would need a UDF to extract these values at every time step and see if they agree with the coefficients Fluent provides, but I am not that familiar with UDFs. I have made UDFs to implement specific velocity profiles onto inlets, which I can just throw in a UDF into the boundary condition, but there isn't an option for UDFs in "wall" boundary conditions, so I am confused as to how I can monitor the variables involved in the coefficient calculations. I assume you can find the pressure on the surfaces and then integrate over the area to find the normal forces, but when I go into the surface monitor box, I'm confused as to what "Report Type" to select.

Thank you very much!

Edit #1: I should make my question clearer. When calculating the drag coefficient does fluent use only the variable values provided in the "Reference Values" tab or does it calculate the values from the solution itself?

Last edited by Fluidiculous; June 28, 2016 at 17:32.
Fluidiculous is offline   Reply With Quote

Old   June 29, 2016, 05:33
Default
  #2
Member
 
Join Date: Jun 2016
Posts: 66
Rep Power: 11
Zbynek is on a distinguished road
The Reference values are used in the formulae to calculate the drag, lift or moment coefficients. So if you change these Reference values, the values of the computed coefficients change.

Density, velocity, length, area - these appear in the denominators of the formulae of the coefficients and you set these in Reference values. What is computed by the solver are the values of the forces (nominators of the formulae).
user01 likes this.
Zbynek is offline   Reply With Quote

Old   June 29, 2016, 14:48
Default
  #3
New Member
 
Join Date: May 2016
Posts: 4
Rep Power: 10
Fluidiculous is on a distinguished road
Quote:
Originally Posted by Zbynek View Post
The Reference values are used in the formulae to calculate the drag, lift or moment coefficients. So if you change these Reference values, the values of the computed coefficients change.

Density, velocity, length, area - these appear in the denominators of the formulae of the coefficients and you set these in Reference values. What is computed by the solver are the values of the forces (nominators of the formulae).
Hi Zbynek,

Thanks for clearing that up. Further on the topic I was wondering how I could possibly monitor the force values on a specific boundary for each time-step (pressure & shear)?

I assume I could do it in several ways, either through the monitoring feature somehow or through using UDFs to extract the forces on each face through a f_loop. How would I go about doing this for each method?

I looked around the forums for UDFs that monitor forces and tweaked one of my own, but I'm not sure how to implement it into Fluent. For specifying velocity profiles on boundaries I used to write a UDF and implement it as a boundary condition in the "Velocity-Inlet" tab, whereas for the walls which I wish to monitor there isn't such option. For the UDF I wrote for forces, I specified the thread ID of the wall I wish to monitor so I thought I could simply compile it into fluent and run the simulation, but it is not outputting a data file nor any messages.

Thanks!
Fluidiculous is offline   Reply With Quote

Old   June 29, 2016, 16:48
Default
  #4
New Member
 
Join Date: May 2016
Posts: 4
Rep Power: 10
Fluidiculous is on a distinguished road
Hi,

Sorry for the double post. I found why my code was not working properly.
After compiling the file, I had to go to Define>User-Defined>Function Hooks... and then implement my "DEFINE_EXECUTE_AT_END" code to the Execute At End option, and now it is writing a data file with the desired values. But I have no clue why I needed to do this. I couldn't find any proper tutorials for these features, could someone point me in the right direction?

I was also wondering if there was a way to use a monitoring built-in feature from Fluent so that I can compare values (monitoring shear/viscous forces). Any help or directions to the proper tutorials would be deeply appreciated!

Thanks!
Fluidiculous is offline   Reply With Quote

Old   June 30, 2016, 05:41
Default
  #5
Member
 
Join Date: Jun 2016
Posts: 66
Rep Power: 11
Zbynek is on a distinguished road
You can monitor the quantity values on surfaces very easily. Just go to Monitors and in the window Surface Monitors you can choose what you want to monitor. As for forces or moments, it is available just in one window above in Residuals, Statistic and Force Monitors. Click on Create and choose what you need.

You can monitor the values also using a UDF. As you said correctly, EXECUTE_AT_END is the choice here. This macro executes the code at the end of each iteration (for steady-state calculations) or time step (unsteady). You can find a lot of info about UDF in the Fluent Customization Manual (I think it used to be called Fluent UDF Manual). Fluent has a very good documentation so you can usually find what you need in the guides that are provided alongside the software itself.

Btw. the forces or moments evaluation can be done in CFD-Post as well.
Zbynek is offline   Reply With Quote

Old   July 2, 2016, 02:36
Default
  #6
New Member
 
RAJA PRATHAP
Join Date: Jul 2016
Posts: 2
Rep Power: 0
rajaprathap is on a distinguished road
hi,
iam trying to simulate flow over 2d airfoil,but the values obtained for drag coeffecient are negative..how to sort out this prblm
rajaprathap 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
How does fluent calculate the total enthalpy? bap FLUENT 0 June 22, 2016 11:55
How to calculate the torque in transient Ansys Fluent dynamic FLUENT 3 January 27, 2016 06:10
How to calculate heat transfer coefficient in FLUENT? ReVl27 FLUENT 3 November 12, 2015 01:44
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
how does Fluent calculate the pressure and viscous force vector? Ralf Schmidt FLUENT 2 May 17, 2010 16:49


All times are GMT -4. The time now is 10:35.