CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Liftdrag calculation (https://www.cfd-online.com/Forums/openfoam-post-processing/61319-liftdrag-calculation.html)

marco July 17, 2005 17:36

I am a new user and I am doing
 
I am a new user and I am doing some bench tests on a 0012 naca airfoil 2D simulation. Could you better explain me how LiftDrag postprocessing utility calculate drag and lift coefficient ?
More in detail: the coefficient are referred to "body axis" or "wind axis" (like is usual in aeronautic field)?
The program has an output of 1 value for drag and 3 values for lift: I expected only 2 values for lift (Cl_y and Cl_z) where Cl_z is =0 for 2D case.
How openFoam calculate the reference area ?
I' ve the airfoil aligned with xyz geometric axis and I change the angle of attack changing the U-components values.
Thank you

mattijs July 18, 2005 05:40

There is no concept of body ax
 
There is no concept of body axis or wind axis in liftDrag.

reference inlet velocity: average of all fixedValue
boundaries.

Per wall patch
--------------
- reference area: area of patch in direction of inlet velocity. Hopefully this is the frontal area.

- reference length: length/width of patch in direction of inlet velocity.

marco July 18, 2005 17:54

OK, so if I well understand dr
 
OK, so if I well understand drag coefficient is on X direction.
But which is the meanings of the 3 lift coefficient value ?

maritozzo September 23, 2005 09:54

CIAO MARCO TI HO MANDATO UN em
 
CIAO MARCO TI HO MANDATO UN email anch'io sto facendo la stessa cosa peṛho dei problemi con le condizioni al contorn e quelle iniziali mi puoi dare una mano?

ariorus December 12, 2005 06:22

Hi everybody. I've just beg
 
Hi everybody.

I've just begun to use OpenFoam and I'm doing bench tests similar to Marco's ones.

I have the same doubts about the meaning of the three components of lift...

Moreover in my cases (even in simpler laminar cases without any turbulence model)
I always get 0 for the drag coefficient and also the stresses at the walls are 0, even if velocity gradients at the walls are not 0.

I tried to use both simpleFoam and icoFoam solvers.

Thank you for any suggestion.

Ros.

ham June 19, 2006 01:20

Hello I also have the same q
 
Hello
I also have the same question about three components of lift?

I have heard somewhere that the "liftDrag" utility is not to be trusted. He told me to write my own code instead. Anyone know anything about the reliability in liftDrag?

To write my own code I need to know the syntax for a few things I guess(I know programming but not the C++ syntax):

1. I need to find somekind of index for the face I want to calculate for?

2. Then I need the pressure and skin friction for this face?

3. I maybe need the length/area of each cell so I can integrate?


Thank you

ariorus June 19, 2006 05:21

Hello, I suggest you to try
 
Hello,

I suggest you to try writing your own code, so that you have full control on what you're actually computing.

What I did is to start from the liftdrag utility modifying it according to my needs.
All the basic steps are in there and the code is pretty clear.
(Look also at the library OpenFOAM-1.2/src/postProcessing/incompressible/liftDrag).

In my opinion if you really want to exploit OF you have to learn a little of c++ and to write sometime few lines of code. Otherwise it is better to use other tools.

Ros.

ham June 19, 2006 05:26

Hi Ok, thats sounds like o
 
Hi

Ok, thats sounds like o good way to start!

I agree with your opinion. Lets begin some writing codes...

Thanx

ham June 19, 2006 05:29

Wrong order of words in the la
 
Wrong order of words in the last sentence...
I am too tired, I blame it on the WC in football. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

/M

fabian_korn March 21, 2008 04:32

Hi to everybody, i am calc
 
Hi to everybody,

i am calculatian a flow around a cylinder with Re is between 100 and 500.

When i run the liftDrag tool the results are completly wrong, i get a drag coeff. of around -22 and also my reference length and Area are a little bit wrong.
Reference length is 4,26 instead of 5.
The liftDrag tool runs at 2D cases with a wide mesh correctly.
Thanks for helping me

mehulkumar March 6, 2009 09:51

Hi friends I am new user to r
 
Hi friends
I am new user to rhoSonicFoam.
I am solving inviscid Compressible flow past an airfoil.
I want to calculate Cd-Cl value but it shows err that "No valid model for viscous stress calculation."
So, can you suggest me what step should I follow?

Thanks...


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