Follow the guide @ http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-6/CentOS_SL_RHEL#CentOS_6.10_.28without_SCL.29
#Using node for faster compile
qsub -I -l nodes=2:ppn=16,walltime=00:120:00 -q workq -A hpc_startup_xjwang
#enable module
sh /usr/local/packages/Modules/module_setup.sh