
[Sponsors] 
March 14, 2010, 07:03 
Calculating pressure coefficient in OpenFoam

#1 
Senior Member
KGN
Join Date: Oct 2009
Location: Chennai, India
Posts: 102
Rep Power: 9 
Hi all,
I am simulating flow around Onera M6 wing. How to calculate pressure coefficient around the wing. Also I want to plot Pressure coefficient at various positions along the length of the wing. how to do it paraview. regards mecbe 

December 11, 2010, 07:09 

#2 
New Member

Hi, if you want to calculate the Cp for later calculate Cl, Cd and Cm, you can do it very simply just adding a few lines in the controlDict file, otherwise I don´t know how to calculate the Cp.
Regards DM. 

January 27, 2011, 16:40 

#3 
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo  Brazil
Posts: 104
Rep Power: 8 
In Paraview is easy.
 Extract Block (the body or wing)  Plot on Plane Intersection So it is done! However, I do not know how to do it with sampling tools of openfoam at command line. Can anyone help? 

January 28, 2011, 02:51 
Calculating pressure coefficient in OpenFoam

#5 
Senior Member
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 10 
hi all,
If you want to calculate the Cp from paraview, do the following procedure 1) convert the simulated results into vtk format 2) install the binary pack of paraview (later versions like 3.4, 3.6 or 3.8) 3) open the converted vtk format of the patches you want to calculate Cp (like wing, airfoil) in paraview 4) In paraview, at the left hand side, there is a function called split vertical command, click on that and click on spreadsheet view 5) after opening spread sheet view select the cells option or point option in paraview on right side of the paraview window 6) in that you wil get the pressures on all the cells on your patch 7) in the paraview window there is an option called file>export (export this into cvs file format) 8) open this cvs format in excell sheet and perform the calculations by using the formula Cp=(pp0)/0.5*rho*v*v for 1 cell and drag all the values there...you wil get cp values for your patch Regards Naveen.K.M CFD Engineer National Aerospace Laboratories Bangalore 

January 28, 2011, 04:27 

#6 
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 448
Rep Power: 13 
hi,
regarding the last post: you might want to check for the "calculator" tool ... so you can perform your desired calculus within paraView. neebwie 

February 16, 2011, 06:39 

#7 
Member
Join Date: Oct 2010
Location: Naples
Posts: 50
Rep Power: 8 
[QUOTE=naveen;292587]hi all,
4) In paraview, at the left hand side, there is a function called split vertical command, click on that and click on spreadsheet view sorry, where are these functions?? i can't find them 

February 16, 2011, 06:51 

#8 
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 448
Rep Power: 13 
for me this option is on the top right of my 3D screen (looks like an open book)
Last edited by mvoss; February 16, 2011 at 09:28. 

April 15, 2012, 17:36 

#9 
New Member
Martin
Join Date: Dec 2011
Posts: 2
Rep Power: 0 
hi naveen
i am simulating a membrane wing and looking at its aerodynamics . i was wondering how to plot Cp with openfoam itself? have u got any idea about that? regards martin 

April 28, 2013, 09:49 
how could we draw this cp value then?

#11  
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 
Quote:
would you please tell us after doing this steps, how could we draw the value of "cp" as you know these value are foe y axis, what about x axis? what should we put for x axis to draw the pressureCoeffs? i am confused, please help me 

April 28, 2013, 23:40 
Calculating pressure coefficient in OpenFoam

#12 
Senior Member
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 10 
hi saeidehmohamadim,
In the cvs format you have the values for x axis, check the column by name po (this as same value as x axis) ie chord length wise dimensions.... 

April 29, 2013, 12:03 

#13  
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 
Quote:
in the .CSV file i have a column with name "p" and also have 3 column with name "point:0" , "point:1" , "point:3" , which point should i use for drawing my pressurecoeffs? i put my .csv file in the attachment, would you please look at it and tell me what should i do? i really don't know,thanks a lot again Last edited by s.m; April 30, 2013 at 01:17. 

April 29, 2013, 23:34 
Calculating pressure coefficient in OpenFoam

#14 
Senior Member
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 10 
dear saeidehmohamadim,
You should take the pressure values on only on the airfoil surface from the paraview (.csv) format on.you should take the slice position on the airfoil because it wil be 3D. Can you tell how many points are there in the airfoil surface then i can tell how to plot the cp vs. x/c for airfoil. 

April 30, 2013, 09:10 

#15  
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 
Quote:
please tell me how to plot the cp vs. x/c for airfoil, thanks a gain 

April 30, 2013, 09:50 

#16  
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 
Quote:
i have a question about the 8) step: i read in a forum; the pressure value that openFoam gives us after finishing the analysis, is "p/rho" not only "p", is it right? now my question is, as i solve the incompressible flow over an airfoil, so the pressure that i give after finishing the analysis is "gauge pressure", therefore the theoretical formula for cp that is " cp=(ppinf)/(0.5*rho*Uinlet^2) " is reduced for my analysis to " cp=(p guage)/(0.5*Uinlet^2) ?? thanks a lot for kind helping 

August 2, 2013, 04:54 

#17 
New Member
Luis Felipe Paulinyi
Join Date: Feb 2013
Location: Southampton, UK
Posts: 4
Rep Power: 6 
Dear saeidehmohamadi,
I believe you are right, you shall use cp=(p guage)/(0.5*Uinlet^2) sincerely, Paulinyi 

August 2, 2013, 04:58 

#18 
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 

August 19, 2013, 11:27 

#19 
New Member
faraz
Join Date: May 2013
Posts: 7
Rep Power: 6 
hello s.m can you please tell me here what do you really mean by p gauge i mean when calculating through paraView. thanks !


August 19, 2013, 12:02 

#20  
Senior Member
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7 
Quote:
Hi For the incompressible analysis in openFoam, the pressure that is given after finishing the analysis is "gauge pressure" , means "pressure/rho" because in this analysis openFoam set "gauge pressure /rho" in 0 folder. But for compressible analysis openFoam set "absolute pressure" in 0 folder, and it also give you "absolute pressure after finishing the analysis, what you see in the paraview. 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
"Pressure Inlet" Boundary Setup  Wijaya  FLUENT  15  May 18, 2016 10:08 
Calculation of the Governing Equations  Mihail  CFX  7  September 7, 2014 06:27 
How to get the time spaceaverage of Pressure Coefficient in FLUENT?  ivanbuz  FLUENT  1  August 9, 2009 14:35 
Pressure Coefficient Viscous Coefficient  gunposer  FLUENT  0  June 15, 2009 07:10 
Does star cd takes reference pressure?  monica  CDadapco  1  April 19, 2007 11:26 