Push immersed boundary method into function.

Remove the ibm from main file and push the method into the function ibm()
loacted in the file src/ibm.py.