CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

how to loop through cells using macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2013, 16:47
Default how to loop through cells using macro
  #1
New Member
 
wei
Join Date: Apr 2010
Posts: 6
Rep Power: 16
shellnuts is on a distinguished road
How can I loop through all the cells and get the cell centroid coordinates using macro?
shellnuts is offline   Reply With Quote

Old   October 20, 2013, 18:34
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17
cwl is on a distinguished road
What is that you want to get as a final result?
cwl is offline   Reply With Quote

Old   October 20, 2013, 18:43
Default
  #3
New Member
 
wei
Join Date: Apr 2010
Posts: 6
Rep Power: 16
shellnuts is on a distinguished road
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 View Post
What is that you want to get as a final result?
shellnuts is offline   Reply With Quote

Old   October 20, 2013, 21:31
Default
  #4
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17
cwl is on a distinguished road
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.
cwl is offline   Reply With Quote

Old   October 21, 2013, 10:31
Default
  #5
Senior Member
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 312
Rep Power: 18
rwryne is on a distinguished road
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.
rwryne is offline   Reply With Quote

Reply


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
[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


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