|
[Sponsors] |
August 8, 2014, 18:25 |
Journal File
|
#1 |
New Member
Join Date: Mar 2009
Posts: 16
Rep Power: 17 |
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.
|
|
August 11, 2014, 06:23 |
|
#2 |
New Member
Tarjei
Join Date: Aug 2013
Posts: 19
Rep Power: 13 |
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)) ) |
|
Tags |
journal file, loop |
|
|
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 |