wrote functions for calculating force due to traction
need to check for compiler errors
*UNTESTED*
fixed all warnings and errors generated by clang