Steps to run the case :- 

1) Open the run directory as per your console using the command: cd $FOAM_RUN.

2) Then direct to the case file using the command: cd <casefilename>.

3) run command : "blockMesh" //to create and mesh the geometry from the blockMeshDict,

After successfully running the blockMesh command enter the next command.

4) run command : "topoSet" //to generate region sets,

5) run command : "splitMeshRegions -cellZones -overwrite" //split a single mesh into multiple region meshes based on cellZones

6) run command : "decomposePar -allRegions" //parallel domain decomposition for every region

7) run command : "mpirun -np 4 chtMultiRegionFoam -parallel" //to solve the case using chtMultiRegionFoam in parallel with 8 processors,

After running the above command the simulation will start to run, after completion of simulation type. 

8) run command : "paraFoam" //to open ParaView directly on decomposed results for viewing/post-processing,

9) run command : "reconstructPar -allRegions" //merge the decomposed processor results back into single unified region folders for all regions

Next run the paraFoam and see the contours and other results. 

Note: Allrun file provided may not work on every OpenFOAM version. If you encounter issues, delete processor* folders and follow the commands mentioned above.

ELSE

1) run command: ./Allrun //to run all the commands automatically through a script,

After running the above command the simulation will start to run, after simulation completes, type 

2) run command : "paraFoam" //to open ParaView for viewing the results,

Next run the paraFoam and see the contours and other results as necessary.



.... Common Errors ......

If you experience errors, check the version of OpenFOAM you're using, as it may differ from the version the case was originally set up for. 

Solutions to other common errors can be obtained in CFD groups/blog posts etc. Documentation on OpenFOAM solvers and boundary conditions can help explain a lot.
