CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Drag and lift force using OpenFoam14

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2008, 12:08
Default I believe that there will be n
  #21
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
I believe that there will be no need to continue using the old liftDrag implementation in new 1.5-based solvers. Since v1.5 can natively compute the dimensionless force coefficients through functionObjects, it would be wise to validate the new approach.
msrinath80 is offline   Reply With Quote

Old   August 4, 2008, 13:31
Default hi srinath can u please tel
  #22
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 17
mgz1985 is on a distinguished road
hi srinath

can u please tell how to follow what u have mentioned in the above post. I am new to Linux and OpenFOAM. And have a decent command in C++.

I am trying to calculate the lift and drag for an airfoil in openfoam but cant find the tool to do so. I hope u can explain in detail what u mean above by this

'Since v1.5 can natively compute the dimensionless force coefficients through functionObjects, it would be wise to validate the new approach.'

Thanks
mgz1985 is offline   Reply With Quote

Old   August 4, 2008, 13:33
Default Hi, Srinath, I am not su
  #23
Member
 
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 17
ivanwhlau is on a distinguished road
Hi, Srinath,
I am not sure how to do it through functionObjects.
Would you please give me some directions how to set up to calculate force coefficient?
Ivan
ivanwhlau is offline   Reply With Quote

Old   August 4, 2008, 14:56
Default Hi Ivan and Mayank Please l
  #24
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ivan and Mayank

Please look into the following thread, which goes through the functionObject for forces.

http://www.cfd-online.com/cgi-bin/Op...how.cgi?1/8402

Further there is a discussion on modifying the output files to ease the plotting procedure, which you might also find interesting.

Best regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 4, 2008, 16:00
Default Thanks for the link Niels :-)
  #25
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Thanks for the link Niels :-)
msrinath80 is offline   Reply With Quote

Old   August 4, 2008, 22:32
Default Thanks, Niels
  #26
Member
 
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 17
ivanwhlau is on a distinguished road
Thanks, Niels
ivanwhlau is offline   Reply With Quote

Old   March 21, 2013, 05:17
Default
  #27
Member
 
Malik
Join Date: Dec 2012
Location: Austin, USA
Posts: 53
Rep Power: 14
malaboss is on a distinguished road
Quote:
Originally Posted by msrinath80 View Post
Good to know that it compiled without issues. The Drag/Lift computation was primarily done by Frank Bos. Search for his posts in this forum concerning Lift and Drag, you will find many useful threads.

PS: If you need to extract the Lift/Drag coefficients from the log file conveniently, using the foamLog command, you need to add the following 4 lines in your foamLog.db file (which is present in ~/OpenFOAM/OpenFOAM-1.4/bin)

#- Drag coefficient:
dragCoefficient/DragCoefficient = /DragCoefficient =

#- Pressure Drag coefficient:
pressureDragCoefficient/pressureDragCoefficient = /pressureDragCoefficient =

#- Viscous Drag coefficient:
viscDragCoefficient/viscDragCoefficient = /viscDragCoefficient =

#- Lift coefficient:
liftCoefficient/LiftCoefficient = /LiftCoefficient =

Hi all,
I just saw this post and wanted to use it.
You cannot print lift and drag coefficient values like that now, because in the log file they don't appear as "LiftCoeffcient" and "DragCoefficient" anymore.
You need to add :

#- Lift coefficient:
LiftCoefficient/Cl = /Cl =
#- Drag coefficient:
DragCoefficient/Cd = /Cd =

at the end of the file /opt/openfoam211/bin/tools/foamLog.db

If you hear me Srinath, thanks a lot !
malaboss 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
accessing lift fore/drag force in UDF changkiang FLUENT 6 May 11, 2015 16:00
how to set lift and drag coefficients in force mon alagesanj FLUENT 0 November 16, 2008 21:47
Drag & lift force Max CFX 1 September 4, 2008 12:41
finding drag and lift force Deloat CFX 3 February 27, 2008 17:53
Lift and Drag force Dmitriy CFX 4 September 18, 2005 02:00


All times are GMT -4. The time now is 00:41.