You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Automation of Mesh Creation Process

For this research project, flocculation tank with different geometric properties will be evaluated. In order to prevent the tedious process of generating mesh from scratch, use of journal script for automating the mesh creation process is inevitable. 

In general, Gambit is used for creating mesh. It logs every single action that you do when you are using the program in a journal file.   This journal file is very useful as it enables the user to  troubleshoot the code if the problem arise. 

By changing the appropriate geometry parameters into variables,  we would then be able to create mesh with different geometry by changing the value of the variables.

For flocculation tank with 5 baffles turning, the script file can be accessed here.


Figure above shows flocculation tank with 5 turning. 

Using the script provided, the user just have to change the parameter of baffle spacings, clearance height and flocculation tank height. Upon changing those parameter, the user can execute Gambit and run the journal files for mesh generation.

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 herehere.


  • No labels