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

Looping through Cell Zones in a Journal File

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 1, 2013, 22: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

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
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 24 August 23, 2015 22:41
Error bulding swak4Foam sfigato OpenFOAM Installation 18 August 22, 2013 12: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
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26


All times are GMT -4. The time now is 20:58.