map_force: Apply a map to particles

map_forceR Documentation

Apply a map to particles

Description

In mathematics, maps are a functions that translates its input into new values. In the context of particles a map is a translation function that translates the current particle positions to a new one

Details

Normally a map has no notion of velocity — it simply translates positions. In particles it is possible to decide whether positions should be modified directly or whether the translation magnitude should be added to the velocity verlet using the fixed parameter.

Training parameters

The following parameters defines the training of the force and can be passed along a call to wield()

  • map : A function that accepts the particle position matrix and returns the new positions in the same format.

  • fixed : Logical. Should position be modified directly (TRUE) or should the translation be added to the velocity verlet (FALSE)

See Also

Other forces: center_force, collision_force, field_force, link_force, manybody_force, mean_force, random_force, reset_force, trap_force, x_force, y_force


particles documentation built on Aug. 19, 2022, 5:06 p.m.