You might want to check the training material prepared by Stefan Radl here HERE.
Please note:
OPENFOAM® (also OpenFOAM®) is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM software. This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software via www.openfoam.com, and owner of the OPENFOAM® and OpenCFD® trade marks. Please note the regulations shown here: www.openfoam.com/legal/trademark-policy.php