test_NBodySyst#

Tests properties of choreo.NBodySyst

test_create_destroy

Tests initialization and destruction of NBodySyst.

test_all_pos_to_segmpos

Tests whether all_pos and segmpos agree.

test_all_vel_to_segmvel

Tests whether all_vel and segmvel agree.

test_segmpos_to_all_pos

Tests going from segmpos to all_pos and back.

test_capture_co

Checks consistency of parameters definition for \(c_o\).

test_round_trips_pos

Tests whether several ways of going back and forth in the chain param_buf => segmpos indeed give the same result.

test_round_trips_vel

Tests whether several ways of going back and forth in the chain param_buf => segmvel indeed give the same result.

test_changevars

Tests properties of change of variables of parameters.

test_params_segmpos_dual

Tests invariance of dot product by the transformation params => segmpos.

test_kin

Tests computation of kinetic energy.

test_pot

Tests computation of potential energy.

test_action

Tests computation of the action.

test_resize

Tests nested properties of Fourier spaces on positions.

test_action_indep_resize

Tests that action is left similar by resizing.

test_repeatability

Tests that computing params_buf => segmpos twice give the same result.

test_ForceGeneralSym

Tests that computations results are independant of choreo.NBodySyst.ForceGeneralSym().

test_ForceGreaterNstore

Tests that computations results are independant of choreo.NBodySyst.ForceGreaterNStore().

test_fft_backends

Tests that computations results are independant of choreo.NBodySyst.fft_backend().

test_action_cst_sym_pairs

Tests that computations results are independant of the prescribed symmetries.

test_custom_inter_law

Tests that custom interaction laws are correctly handled.

test_periodicity_default

Tests that Fourier periodic solutions have zero periodicity default.

test_ODE_vs_spectral

Tests that the Fourier periodic spectral solver agrees with the time forward Runge-Kutta solver.