adding semi-python version of displacement field calcs