choreo.NBodySyst#

class NBodySyst(Py_ssize_t geodim, Py_ssize_t nbody, double[::1] bodymass, double[::1] bodycharge, list Sym_list, inter_law=None, unicode inter_law_str=None, inter_law_param_dict=None, bool ForceGeneralSym=False, bool ForceGreaterNStore=False)#

This class defines a N-body system

Class Constructor

__init__(*args, **kwargs)

Methods Summary

AssertAllBodyConstraintAreRespected

AssertAllSegmGenConstraintsAreRespected

BuildSegmGraph

ChooseInterSegm

ChooseLoopGen

ComputeCenterOfMass

ComputeSymDefault

Compute_forces

Compute_forces_nosym

Compute_forces_vectorized

Compute_forces_vectorized_nosym

Compute_init_pos_mom

Compute_n_sub_fft

Compute_periodicity_default

Compute_velocities

Compute_velocities_vectorized

ConfigureShortcutSym

DescribeSystem

DetectEscape

DetectLoops

DetectSegmRequiresDisp

DetectXlim

Detect_homo_inter_law

FromDict

FromSolutionFile

GatherInterSym

GetFullAABB

GetKrylovJacobian

Get_ODE_def

Get_segmpos_minmax

Init_to_dict

Make_params_bounds

PlotTimeBodyGraph

Segmpos_Descriptor

Set_inter_law

TT_params_to_action_grad

TestActionSame

TestHashSame

Update_ODE_params

Validate_inter_law

Write_Descriptor

__init__

all_coeffs_dense_to_params_noopt

all_coeffs_pos_to_vel_inplace

all_coeffs_to_kin_nrg

all_coeffs_to_kin_nrg_grad

all_coeffs_to_params_noopt

all_pos_to_all_body_pos_noopt

all_to_segm_noopt

allocate_owned_memory

co_in

free_owned_memory

nnz_k

params_basis_pos

params_basis_vel

params_changevar

params_resize

params_to_action

params_to_action_grad

params_to_action_hess

params_to_all_coeffs_dense_noopt

params_to_all_coeffs_noopt

params_to_kin_nrg

params_to_kin_nrg_grad

params_to_pot_nrg

params_to_pot_nrg_grad

params_to_pot_nrg_hess

params_to_segmpos

params_to_segmvel

plot_segmpos_2D

Plots 2D trajectories with one color per body and saves image in file

pos_slice

segm_to_path_stats

segmpos_dparams_to_action_hess

segmpos_params_to_action

segmpos_params_to_action_grad

segmpos_to_all_noopt

segmpos_to_allbody_noopt

segmpos_to_hash

segmpos_to_params

segmpos_to_params_T

Attributes