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

Journal File

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tarjeiba

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2014, 18:25
Default Journal File
  #1
New Member
 
Join Date: Mar 2009
Posts: 16
Rep Power: 17
Sashankh is on a distinguished road
How can I create a loop in a journal file so that I can read files with different names (logically ordered, e.g. file1, file2, ...)? Thanks.
Sashankh is offline   Reply With Quote

Old   August 11, 2014, 06:23
Default
  #2
New Member
 
Tarjei
Join Date: Aug 2013
Posts: 19
Rep Power: 13
tarjeiba is on a distinguished road
Since the journal files merely are an ordered list of TUI commands, it is not possible to make loops in these. You have two options, create one long journal file (you cannot load a journal file from within a separate journal file), which you can do fairly easily using Bash or Python or another scripting language.

The second option is to use Fluent's implemented Scheme language to load and alter the cases. From learncax.com I found the following example, where 150 iso-surfaces are created:

Code:
(Do ((x 1 (+ x 1))) ((> x 150))
 (Ti-menu-load-string (format #f "surface/iso-surface z-coordinate z-plane-~a () () ~a" x x))
 )
You can thereby create a large loop that opens a case file, runs the case, gathers results etc., before returning to the beginning of the loop with the next case.
Sashankh likes this.
tarjeiba is offline   Reply With Quote

Reply

Tags
journal file, loop


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] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


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