...
For this research project, flocculation tank with different geometric properties will be evaluated. Before we can achieve an optimal geometry, we would probably going through a lot of repetitive process of creating a mesh meshes using Gambit. In order to prevent the tedious process of generating mesh from scratch, use of journal script for automating the mesh creation process is inevitable.
...
Similarly, a script in FLUENT can process a completed mesh, and automatically set up the solver, initial conditions, fluid properties, convergence criteria, and save the convergence solution data file to be analyzed later. The incomplete script can be accessed here.
In Depth Explanation of Changing Journal Files
Following is the sample of the heading of the journal file that was added by user to declare the value of the variables.
/clearance height
$ch = 0.1
/flocculator height
$fh = 0.5
/create baffle spacing
$bs1 = 0.1
$bs2 = 0.1
$bs3 = 0.1
$bs4 = 0.1
$bs5 = 0.1
$bs6 = 0.1
/create x-coordinate
$w0 = 0
$b1 = $w0+$bs1
$b2 = $b1+$bs2
$b3 = $b2+$bs3
$b4 = $b3+$bs4
$b5 = $b4+$bs5
$w6 = $b5+$bs6
/create y-coordinate
$y1 = $ch
$y2 = $fh-$ch
Note that '/' means commenting on the code.
Note also that the parameters that we added are ch = 0.1, fh = 0.5, bs = 0.1.
Note also that a '$' is added in front of those parameters to make it as variables recognizable by Gambit.
Note also Gambit recognize mathematical operators.
By changing the appropriate coordinates of the geometry further down the script files to parameters of $ch, $fh, $bs, we only need to change the value of those parameters at the beginning of the journal and we are done creating geometry that we desired.