python script that caclulates the velocityprofile of a system state