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

how to loop through cells using macro

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 7
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
Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 51
Rep Power: 5
cwl is on a distinguished road
Send a message via Skype™ to cwl
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: 7
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
Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 51
Rep Power: 5
cwl is on a distinguished road
Send a message via Skype™ to cwl
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
Super Moderator
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 9
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how should we remove the Concave cells from the mesh? s.m OpenFOAM Mesh Utilities 19 January 22, 2015 06:47
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 07:32
physical boundary error!! kris CD-adapco 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 03:52.