choreo.NBodySyst.__init__#

NBodySyst.__init__()#

Defines a N-Body System.

See also

Parameters:
  • geodim (int, optional) – Number of dimensions of ambiant space. Typically 2 or 3, but can be any positive integer. By default: 2.

  • nbody (int, optional) – Number of bodies in the system, by default 2.

  • bodymass (numpy.ndarray(shape = (nbody), dtype = np.float64), optional) – Masses of the bodies in the system, by default numpy.ones.

  • bodycharge (numpy.ndarray(shape = (nbody), dtype = np.float64), optional) – Charges of the bodies, by default numpy.ones.

  • Sym_list (list, optional) – List of a priori symmetries in the system, by default [].

  • inter_law (optional) – Function defining the interaction law, by default None.

  • inter_law_str (str, optional) – Description of the interaction law dictating the dynamics of the system, by default None.

  • inter_law_param_dict (dict, optional) – Parameters pertaining to the interaction law, by default None.

  • ForceGeneralSym (bool, optional) – Whether to force the symmetries to be treated in full generality when computing positions or velocities from parameters (and vice-versa, both in direct or adjoint mode), or to try an optimized route instead. Most users should leave this option to its default value, which is False.

  • ForceGreaterNStore (bool, optional) – Whether to force the number of stored segment positions to be increased, even though the symmetries might not require it. Most users should leave this option to its default value, which is False.