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

Macro existing for calculating a cell surface?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 10, 2010, 15:50
Post Macro existing for calculating a cell surface?
  #1
New Member
 
Join Date: Jun 2010
Posts: 14
Rep Power: 15
maximeg is on a distinguished road
Hi everyone!

I'm a starter at openFOAM and I'd like to calculate the circulation around a 2D vortex (the simulation is done and I already have the coordinates of the point of maximum vorticity (<=> vortex center)).

To do so, I need to integrate the surface of cells in order to get a disc surrounding the vortex, and then sum up the product of each cell surface by the vorticity to get the final circulation:
"gamma(circulation)=sum(wi(vorticity at cell i) x Ai(surface of cell i))"

Is there a macro already existing allowing you to calculate the surface of each cell? I didn't find anything on the forum concerning that.
I would like to avoid doing something like that:
CellSurface(i)=[y(i+1)-y(i)].[x(i+1)-x(i)]

Thanks in advance for you're help!

Maxime
maximeg is offline   Reply With Quote

 

Tags
cell


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
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
Cell ID macro ?!?!?!?!?! bohis FLUENT 1 November 14, 2008 08:26
UDF macro for surface tension coefficient Frederik FLUENT 2 May 30, 2005 10:54
Macro for velocity on the face of the cell Dragos FLUENT 0 April 7, 2005 11:12
cell to cell relation CMB Siemens 1 December 4, 2003 04:05


All times are GMT -4. The time now is 05:06.