mpacts.commands.force.constraints. force_controlled_displacement

In order to be able to use this module import it like this:

import mpacts.commands.force.constraints.force_controlled_displacement
#or assign it to a shorter name
import mpacts.commands.force.constraints.force_controlled_displacement as for
mpacts.commands.force.constraints.force_controlled_displacement.ForceControlledDisplacement(name, mysim, F_array, x_array, v, min_value, Kp, Kd=0, Ki=0, index_list=[])

Attempts to control the displacement of ‘x_array’with the velocity ‘v’ by setting the ‘F_array’.

Parameters: -name Name prepended to all commands made here. -mysim simulation object (required for time-step!) -F_array force array to be set -x_array position array to be controlled -v velocity with which ‘x_array’ should be displaced -min_value where to stop the displacement; property of the LinearChangeCommand used -Kp proporional gain -Kd derivative gain -Ki integrative gain -index_list particle indices to which the commands should apply.