Lagrangian dynamics simulation package