CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Looping through Cell Zones in a Journal File

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2013, 23:45
Default Looping through Cell Zones in a Journal File
  #1
New Member
 
Adam
Join Date: Jul 2013
Posts: 1
Rep Power: 0
adam.vaccaro is on a distinguished road
I have a model with 546 cell zones, therefore it isn't reasonable to set the cell zone parameters like material and 'participates in radiation' by hand. The cell zones are named in a systematic way, so I'd like to set the parameters based on the name of the cell zone. Using the TUI, I know the commands to set the parameters on one individual cell zone. What I don't understand is how I would write a journal file to loop through all of the fluid cell zone names.

My thought is that I need to call '/define/b-c/fluid' which returns a list of all of the fluid zone names and then requests the name of the zone you want to modify. Specifically the thing I don't know how to do in Scheme is to use the list returned by the above command as an input to the rest of my journal file. Can I assign that list to a variable? How? If that's possible, then I think I can figure out how to use 'car' and 'cdr' calls to loop through the list of names and parse the text of the name to determine how parameters should be set.

Thanks in advance for the help.

Adam
adam.vaccaro is offline   Reply With Quote

Reply

Tags
cell zone, journal, loop, tui


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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 05:26


All times are GMT -4. The time now is 13:48.