Added functionality for calcBeamDeflection