Challenge the talent inside you, participate in Animate 2024!     Click here for details.

Using Template files in PyFoam - English

2386 visits



Outline:

- PyFoam template files - Syntax of template files - Mechanism of variable substitution in template files - Python code inside template files - Calculate the coordinates for Wedge15Ma5 case - Template file to calculate the coordinates - Substitute values in the Wedge15Ma5 - Python commands to generate the blockMeshDict file - Generating the blockMeshDict file - Varying the values in the template file