CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Calculating Lift and Drag in Paraview (paraFoam)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By louisgag
  • 1 Post By drrbradford

Reply
 
LinkBack Thread Tools Display Modes
Old   May 24, 2011, 22:11
Default Calculating Lift and Drag in Paraview (paraFoam)
  #1
Member
 
Scott
Join Date: Sep 2009
Posts: 41
Rep Power: 7
scott is on a distinguished road
Hi there,

I have a body that I wish to extract the lift and drag forces for in Paraview.

I assume that this can be achieved using the calculator but I cannot work it out. Could someone please give me some pointers on this.

Basically I need to calculate the normals for each surface, then find the pressure on each surface in the components of X (or Y or Z, depending on if it is Drag, Lift or side force), then intergrate these values for the whole body to get the Force value.

If someone has a procedure for something like this then please let me know!

Thanks for your help,

Scott
scott is offline   Reply With Quote

Old   May 25, 2011, 02:49
Default
  #2
Member
 
Scott
Join Date: Sep 2009
Posts: 41
Rep Power: 7
scott is on a distinguished road
I found a solution:

Extract Surfaces
Generate Surface Normals
Use the calculator to multiply pressure by the surface normals (Normals*p)

This then prints the values in the data tab at the right in three columns, one for each normal direction.

I then integrate these to get total forces on the area using Integrate Variables.

Let me know if you see any problems with this approach!

Cheers,

Scott
scott is offline   Reply With Quote

Old   July 18, 2011, 15:17
Default
  #3
New Member
 
Join Date: Aug 2010
Posts: 15
Rep Power: 6
CThib is on a distinguished road
Hey Scott,

I am trying to do the same thing and am attempting your approach. I was just wondering if you've made any more progress since you posted. I'd like to collaborate with you if possible.
CThib is offline   Reply With Quote

Old   July 18, 2011, 17:33
Default
  #4
New Member
 
Join Date: Aug 2010
Posts: 15
Rep Power: 6
CThib is on a distinguished road
Scott,

Where (and how) do you calculate the area of each panel? I'm struggling finding a particularly good way of doing this. Right now I'm performing a similar calculation in Fortran, but I would prefer to do this in paraview.
CThib is offline   Reply With Quote

Old   September 12, 2011, 10:28
Default
  #5
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 31
Rep Power: 7
drrbradford is on a distinguished road
Any advances on this? Also, how would you go about including the effect of skin friction? I guess the wallShearStress post-pro function would be a start.
drrbradford is offline   Reply With Quote

Old   January 3, 2014, 04:19
Default lift and drag coeffs in paraview
  #6
Member
 
arash mahboubi
Join Date: Jun 2013
Location: Iran
Posts: 37
Rep Power: 4
arashfluid is on a distinguished road
Send a message via Yahoo to arashfluid
Hi
How can I calculate lift and drag coefficient in paraview?
I've run an oscillating airfoil with pitching motion.I've calculated lift and drag coefficient through libforces in controlDict, but the values ​​are wrong. I want to calculate them in paraview and plot them over the time or angle.
Please tell me how to do this?
arashfluid is offline   Reply With Quote

Old   March 27, 2014, 12:38
Default
  #7
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Québec, QC, Canada
Posts: 208
Rep Power: 9
louisgag is on a distinguished road
Send a message via ICQ to louisgag
In 2D, you might want to try something like this in paraview on the surfaces you want to evaluate,

1. filter: generate surface normals (disable splitting, activate compute cell normals)
2. filter: calculator using something like this for moments : Normals_Y*p*yourDensity*(yourCoRx-16) + Normals_X*p*yourDensity*(yourCoRy-coordsY) replacing yourDensity and yourCoR* by appropriate values or simplify it to get forces
3. filter: integrate variables and look for the results of the integration in the table that appears

in the end this procedure gives you sum_cells(P*rho*A*norm_y)

I think this can be easily adapted to 3D.

cheers
Ruli and arashfluid like this.
louisgag is offline   Reply With Quote

Old   April 16, 2014, 07:13
Default
  #8
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 31
Rep Power: 7
drrbradford is on a distinguished road
I've had some success working with cell data (as opposed to point data) on 3D surface meshes, if it's of use:

Cell area can be obtained using the Mesh Quality filter and the Area option. Use the Point Data to Cell Data on your pressure data. Then use Generate Surface Normals (may need to Extract Surface first) with the Compute Cell Nomals option enabled. Pop these into a calculator using the Cell Data mode and that should have you on the right track for the pressure side of things.
arashfluid likes this.
drrbradford is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculating drag and lift in fluent morteza08 FLUENT 4 December 13, 2012 16:34
Reference Area for Calculating Lift and Drag Coefficient of 3D wing mahbub03 Main CFD Forum 3 May 19, 2011 00:21
Lift and Drag Monitor Point Values Converging to Zero Josh CFX 24 May 9, 2011 10:38
Correct lift but wrong pressure drag - possible? zx Main CFD Forum 4 July 27, 2007 23:38
Fluid mechanics / drag & lift Jamcam Main CFD Forum 0 October 31, 2002 05:39


All times are GMT -4. The time now is 08:46.