|
[Sponsors] |
October 19, 2013, 16:47 |
how to loop through cells using macro
|
#1 |
New Member
wei
Join Date: Apr 2010
Posts: 6
Rep Power: 16 |
How can I loop through all the cells and get the cell centroid coordinates using macro?
|
|
October 20, 2013, 18:34 |
|
#2 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17 |
What is that you want to get as a final result?
|
|
October 20, 2013, 18:43 |
|
#3 |
New Member
wei
Join Date: Apr 2010
Posts: 6
Rep Power: 16 |
||
October 20, 2013, 21:31 |
|
#4 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17 |
This realy seems to require a java macro (first i hoped Field Function would help) that i am not good at. So - no ideas to be honest.
|
|
October 21, 2013, 10:31 |
|
#5 |
Senior Member
Ryne Whitehill
Join Date: Aug 2009
Posts: 312
Rep Power: 18 |
Unless you really need it in Java, I'd just use a table. Set up a Table under tools with the components of centroid and export as a CSV.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] how should we remove the Concave cells from the mesh? | s.m | OpenFOAM Meshing & Mesh Conversion | 20 | March 5, 2020 16:35 |
how to loop over cells in a customised way ( UDM usage ) | Ananthakrishnan | Fluent UDF and Scheme Programming | 13 | July 15, 2013 19:49 |
Possible to loop a face thread inside a cell thread loop? | MarcusW | FLUENT | 3 | March 7, 2012 06:32 |
physical boundary error!! | kris | Siemens | 2 | August 3, 2005 00:32 |
face loop over cells | Szabolcs Varga | FLUENT | 1 | September 30, 2004 23:18 |