CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CCM+ (http://www.cfd-online.com/Forums/star-ccm/)
-   -   how to loop through cells using macro (http://www.cfd-online.com/Forums/star-ccm/125134-how-loop-through-cells-using-macro.html)

shellnuts October 19, 2013 16:47

how to loop through cells using macro
 
How can I loop through all the cells and get the cell centroid coordinates using macro?

cwl October 20, 2013 18:34

What is that you want to get as a final result?

shellnuts October 20, 2013 18:43

I want to create a mapping btw the mesh of my own model written in Fortran and the mesh of STAR-CCM+. Thanks.


Quote:

Originally Posted by cwl (Post 457940)
What is that you want to get as a final result?


cwl October 20, 2013 21:31

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.

rwryne October 21, 2013 10:31

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.


All times are GMT -4. The time now is 11:41.