Skip to main content

Module ffi

Module ffi 

Source
Expand description

Raw FFI bindings to the ASSIST C library.

assist_ephem and assist_extras are treated as opaque types. Field access goes through thin C helpers compiled in helpers.c. REBOUND types (reb_simulation, reb_particle) come from librebound_sys::ffi and are re-exported here so ASSIST FFI signatures resolve transparently.

Structs§

assist_ephem
Opaque ASSIST ephemeris data.
assist_extras
Opaque ASSIST extras (attaches ASSIST forces to a REBOUND simulation).
reb_particle
REBOUND particle: position, velocity, acceleration, mass, radius, hash.
reb_simulation
Opaque REBOUND simulation.

Constants§

ASSIST_BODY_EARTH
ASSIST_BODY_JUPITER
ASSIST_BODY_MARS
ASSIST_BODY_MERCURY
ASSIST_BODY_MOON
ASSIST_BODY_NEPTUNE
ASSIST_BODY_NPLANETS
ASSIST_BODY_PLUTO
ASSIST_BODY_SATURN
ASSIST_BODY_SUN
ASSIST_BODY_URANUS
ASSIST_BODY_VENUS
ASSIST_ERROR_AST_FILE
ASSIST_ERROR_EPHEM_FILE
ASSIST_FORCES_DEFAULT
Default force flags: Sun + planets + asteroids + Earth J2/J3/J4 + Sun J2 + GR (EIH).
ASSIST_FORCE_ASTEROIDS
ASSIST_FORCE_EARTH_HARMONICS
ASSIST_FORCE_GR_EIH
ASSIST_FORCE_GR_POTENTIAL
ASSIST_FORCE_GR_SIMPLE
ASSIST_FORCE_NON_GRAVITATIONAL
ASSIST_FORCE_PLANETS
ASSIST_FORCE_SUN
ASSIST_FORCE_SUN_HARMONICS
ASSIST_SUCCESS
REB_GRAVITY_BASIC
REB_GRAVITY_NONE
REB_INTEGRATOR_IAS15
REB_INTEGRATOR_WHFAST
REB_STATUS_COLLISION
REB_STATUS_ENCOUNTER
REB_STATUS_ESCAPE
REB_STATUS_GENERIC_ERROR
REB_STATUS_NO_PARTICLES
REB_STATUS_RUNNING
REB_STATUS_SIGINT
REB_STATUS_SUCCESS
REB_STATUS_USER

Functions§

assist_attach
assist_detach
assist_ephem_create
assist_ephem_free
assist_free
assist_get_particle
assist_get_particle_with_error
assist_integrate_or_interpolate
assist_rs_ephem_cache_reset
assist_rs_ephem_get_au
assist_rs_ephem_get_c_au_per_day
assist_rs_ephem_get_clight
assist_rs_ephem_get_emrat
assist_rs_ephem_get_jd_ref
assist_rs_ephem_get_re
assist_rs_ephem_get_re_eq
assist_rs_ephem_set_jd_ref
assist_rs_extras_get_alpha
assist_rs_extras_get_forces
assist_rs_extras_get_geocentric
assist_rs_extras_get_nk
assist_rs_extras_get_nm
assist_rs_extras_get_nn
assist_rs_extras_get_particle_params
assist_rs_extras_get_r0
assist_rs_extras_set_alpha
assist_rs_extras_set_forces
assist_rs_extras_set_geocentric
assist_rs_extras_set_nk
assist_rs_extras_set_nm
assist_rs_extras_set_nn
assist_rs_extras_set_particle_params
assist_rs_extras_set_r0
assist_rs_ias15_zero_state
assist_rs_sim_get_N
assist_rs_sim_get_N_active
assist_rs_sim_get_N_var
assist_rs_sim_get_dt
assist_rs_sim_get_exact_finish_time
assist_rs_sim_get_extras
assist_rs_sim_get_force_is_velocity_dependent
assist_rs_sim_get_gravity
assist_rs_sim_get_ias15_adaptive_mode
assist_rs_sim_get_ias15_epsilon
assist_rs_sim_get_ias15_iterations_max_exceeded
assist_rs_sim_get_ias15_min_dt
assist_rs_sim_get_integrator
assist_rs_sim_get_particles
assist_rs_sim_get_status
assist_rs_sim_get_steps_done
assist_rs_sim_get_t
assist_rs_sim_set_N_active
assist_rs_sim_set_dt
assist_rs_sim_set_exact_finish_time
assist_rs_sim_set_gravity
assist_rs_sim_set_ias15_adaptive_mode
assist_rs_sim_set_ias15_epsilon
assist_rs_sim_set_ias15_min_dt
assist_rs_sim_set_integrator
assist_rs_sim_set_t
reb_integrator_ias15_reset
reb_simulation_add
reb_simulation_add_variation_1st_order
reb_simulation_create
reb_simulation_free
reb_simulation_integrate
reb_simulation_step
reb_simulation_synchronize