|
[Sponsors] |
Macro existing for calculating a cell surface? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 10, 2010, 15:50 |
Macro existing for calculating a cell surface?
|
#1 |
New Member
Join Date: Jun 2010
Posts: 14
Rep Power: 15 |
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 |
|
Tags |
cell |
|
|
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 |