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

reference area

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2010, 07:53
Default reference area
  #1
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 16
andrea.pasquali is on a distinguished road
Hi,
Is there in OF a code to calculate the frontal area "Aref" (for example the car frontal area) to calculate Cx and Cz using "forceCoeffs" function?

Thanks,
Andrea
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   February 14, 2010, 09:33
Default liftDrag
  #2
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 16
andrea.pasquali is on a distinguished road
Hello,
I found "liftDrag" application for OF1.4.
I try to compile it on my OF 1.6.x without success...
Does any version exist for OF1.6 or 1.6.x ?
Does this application calculate the frontal area "Aref" ?

Thanks for any help!

Andrea
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   May 5, 2010, 10:41
Default
  #3
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi Andrea,

I am also looking for a way to easily calculate the frontal area of a complex 3D body. So far, it seems the only way to do it would be to sum the (area vectors dot the normal vector) on a whole physical surface and ignore negative values (to avoid having a zero total area!).

The code involved would look something like
Code:
mesh.Sf().boundaryField()
but I don't have time to do it at the moment.
and a loop like
Code:
forAllConstIter(labelHashSet, patchSet_, iter)
I'm just inspriring myself from the forces code....

Best regards,

-Louis
louisgag is offline   Reply With Quote

Old   May 17, 2010, 20:13
Lightbulb
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
I have looked into it some more and here's the exact command that will give you the frontal area (in x-direction)...

Code:
Info << "***********" << ( sumMag(Sfb[patchi].component(vector::X))/2 ) << "***************" << endl;
I'll get back with an actualy utility for this if I find the time to make one,


-Louis

EDIT: that formula only works if the part has no concavity (ie: holes inside) because this would count areas that should not be counted...

Last edited by louisgag; May 18, 2010 at 16:19.
louisgag is offline   Reply With Quote

Old   June 10, 2010, 02:20
Default
  #5
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
in the meantime, just do like this:
http://www.discretizer.org/node/20

Björn
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   August 4, 2010, 16:55
Default
  #6
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
thanks for this very useful link. Just a note, if your shape contains some concavities you need to select cells through (or actually skip the extract selection step) and then divide the final result by two.

Cheers,

-Louis
louisgag is offline   Reply With Quote

Old   August 5, 2010, 04:31
Default reference area
  #7
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
hi louisgag,

Total area can be calculated using the liftdrag utility in OpenFOAM 1.4.1 by running liftDrag and put the same area at the end of controlDict of OpenFOAM 1.6....

Regards,

Naveen
naveen is offline   Reply With Quote

Old   August 5, 2010, 13:00
Default
  #8
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Thanks Naveen.
louisgag 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
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
CFX Solver Memory Error mike CFX 1 March 19, 2008 07:22
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34
Building OpenFoAm on SGI Altix 64bits anne OpenFOAM Installation 8 June 15, 2006 09:27


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