Catalyst
Catalyst
CATALYST
CASE SETUP AND
MORPHING FOR OPENFOAM
Table of Contents
1. Introduction ............................................................................................................................. 2
1.1. Prerequisites ................................................................................................................... 2
1.2. Case description .............................................................................................................. 2
1.3. Data files and preparation ................................................................................................ 2
2. Setup the solver controls and boundary conditions ................................................................... 3
3. Output OpenFOAM case ....................................................................................................... 18
4. Run the OpenFOAM case...................................................................................................... 20
4.1 Run the case in serial mode ............................................................................................ 20
4.2 Run the case in parallel mode ......................................................................................... 20
5. Morph the model ................................................................................................................... 21
6. Output the points of the morphed model ................................................................................. 26
7. Conclusion ............................................................................................................................ 27
It is recommended that you copy these files in your working directory, so that you do not change the
original files.
For reference, in the same directory, there are two files “catalyst_OF_v40_setup.ansa” and
“catalyst_morphed.ansa” which contain the results of this tutorial.
The case setup is demonstrated for the porousSimpleFoam solver and for OpenFOAM v4.0.
“interior_upstream_cat” and
“interior_downstream_cat” should be set to
type “internal”.
Press “OK”.
Click Apply.
Click OK.
Press ALL.
The solver info and boundary conditions have been defined. Next, you will output the OpenFOAM
case. Save the file.
Note: At this point it is important to mention that the whole OpenFOAM case setup can be perfomed
fully automatically through the use of the User Defined Function SetUpOFCase. It is accessible by
clicking on User Script Buttons and selecting the function found in the TOOLS_DECKS section.
1) Navigate to the folder where you have output the case and initialize the flowfield with
potentialFoam in order to help solution convergence, by typing:
The -writep argument, will initialize also pressure (p) along with velocity (U) and flux (phi), while
the tee -a command will store the solution output in a text file (potentialFoam.log).
2) Then, start the solver, again storing the solution output in a log file by typing the following
command:
The simulation will start, reporting the current iteration and residuals along with other information.
decomposePar
This will split the case in so many subdomains as defined in the decomposeParDict file which is
created by ANSA and can be found in the “system” subfolder of the case.
2) Initialize the flowfield by running potentialFoam in parallel:
In our case we are using four processors as specified in the decomposeParDict file.
3) Start the solver in parallel by typing:
Press OK.
Press OK again in
the confirmation
window.