. /opt/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
This command must be issued every time a new session is opened if the first command in the previous session is not chosen.