Skip to main content

reb_simulation

Struct reb_simulation 

Source
#[repr(C)]
pub struct reb_simulation {
Show 103 fields pub t: f64, pub G: f64, pub softening: f64, pub OMEGA: f64, pub OMEGAZ: f64, pub dt: f64, pub dt_last_done: f64, pub steps_done: u64, pub is_synchronized: c_uint, pub did_modify_particles: c_uint, pub N: usize, pub N_allocated: usize, pub particles: *mut reb_particle, pub N_map: usize, pub map: *mut usize, pub N_var: usize, pub particles_var: *mut reb_particle, pub N_var_config: usize, pub var_config: *mut reb_variational_configuration, pub N_active: usize, pub testparticle_type: c_int, pub testparticle_hidewarnings: c_int, pub name_list: *mut *mut c_char, pub N_name_list: usize, pub name_hash_table: *mut reb_name_hash_item, pub gravity_cs: *mut reb_vec3d, pub N_allocated_gravity_cs: usize, pub tree_root: *mut *mut reb_treecell, pub opening_angle2: f64, pub status: REB_STATUS, pub exact_finish_time: c_int, pub force_is_velocity_dependent: c_int, pub gravity_ignore_terms: reb_simulation__bindgen_ty_1, pub output_timing_last: f64, pub save_messages: c_int, pub messages: *mut *mut c_char, pub messages_var_rescale_warning: c_int, pub messages_timestep_warning: c_int, pub exit_max_distance: f64, pub exit_min_distance: f64, pub usleep: f64, pub display_settings: *mut reb_display_settings, pub display_data: *mut reb_display_data, pub server_data: *mut reb_server_data, pub track_energy_offset: c_int, pub energy_offset: f64, pub walltime: f64, pub walltime_last_step: f64, pub walltime_last_steps: f64, pub walltime_last_steps_sum: f64, pub walltime_last_steps_N: c_int, pub python_unit_l: u32, pub python_unit_m: u32, pub python_unit_t: u32, pub root_size: f64, pub N_root_x: usize, pub N_root_y: usize, pub N_root_z: usize, pub N_ghost_x: c_int, pub N_ghost_y: c_int, pub N_ghost_z: c_int, pub collisions: *mut reb_collision, pub N_allocated_collisions: usize, pub N_collisions: usize, pub N_targets: usize, pub minimum_collision_velocity: f64, pub collisions_plog: f64, pub collisions_log_n: i64, pub calculate_megno: c_int, pub megno_Ys: f64, pub megno_Yss: f64, pub megno_cov_Yt: f64, pub megno_var_t: f64, pub megno_mean_t: f64, pub megno_mean_Y: f64, pub megno_initial_t: f64, pub megno_n: i64, pub rand_seed: c_uint, pub simulationarchive_version: c_int, pub simulationarchive_auto_interval: f64, pub simulationarchive_auto_walltime: f64, pub simulationarchive_auto_step: u64, pub simulationarchive_next: f64, pub simulationarchive_next_step: u64, pub simulationarchive_filename: *mut c_char, pub collision: reb_simulation__bindgen_ty_2, pub integrator: reb_integrator_configuration, pub boundary: reb_simulation__bindgen_ty_3, pub gravity: reb_simulation__bindgen_ty_4, pub gravity_custom: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub odes: *mut *mut reb_ode, pub N_odes: usize, pub N_allocated_odes: usize, pub additional_forces: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub pre_timestep_modifications: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub post_timestep_modifications: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub heartbeat: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub key_callback: Option<unsafe extern "C" fn(r: *mut reb_simulation, key: c_int) -> c_int>, pub coefficient_of_restitution: Option<unsafe extern "C" fn(r: *const reb_simulation, v: f64) -> f64>, pub collision_resolve: Option<unsafe extern "C" fn(r: *mut reb_simulation, arg1: reb_collision) -> REB_COLLISION_RESOLVE_OUTCOME>, pub free_particle_ap: Option<unsafe extern "C" fn(p: *mut reb_particle)>, pub extras_cleanup: Option<unsafe extern "C" fn(r: *mut reb_simulation)>, pub extras: *mut c_void,
}

Fields§

§t: f64§G: f64§softening: f64§OMEGA: f64§OMEGAZ: f64§dt: f64§dt_last_done: f64§steps_done: u64§is_synchronized: c_uint§did_modify_particles: c_uint§N: usize§N_allocated: usize§particles: *mut reb_particle§N_map: usize§map: *mut usize§N_var: usize§particles_var: *mut reb_particle§N_var_config: usize§var_config: *mut reb_variational_configuration§N_active: usize§testparticle_type: c_int§testparticle_hidewarnings: c_int§name_list: *mut *mut c_char§N_name_list: usize§name_hash_table: *mut reb_name_hash_item§gravity_cs: *mut reb_vec3d§N_allocated_gravity_cs: usize§tree_root: *mut *mut reb_treecell§opening_angle2: f64§status: REB_STATUS§exact_finish_time: c_int§force_is_velocity_dependent: c_int§gravity_ignore_terms: reb_simulation__bindgen_ty_1§output_timing_last: f64§save_messages: c_int§messages: *mut *mut c_char§messages_var_rescale_warning: c_int§messages_timestep_warning: c_int§exit_max_distance: f64§exit_min_distance: f64§usleep: f64§display_settings: *mut reb_display_settings§display_data: *mut reb_display_data§server_data: *mut reb_server_data§track_energy_offset: c_int§energy_offset: f64§walltime: f64§walltime_last_step: f64§walltime_last_steps: f64§walltime_last_steps_sum: f64§walltime_last_steps_N: c_int§python_unit_l: u32§python_unit_m: u32§python_unit_t: u32§root_size: f64§N_root_x: usize§N_root_y: usize§N_root_z: usize§N_ghost_x: c_int§N_ghost_y: c_int§N_ghost_z: c_int§collisions: *mut reb_collision§N_allocated_collisions: usize§N_collisions: usize§N_targets: usize§minimum_collision_velocity: f64§collisions_plog: f64§collisions_log_n: i64§calculate_megno: c_int§megno_Ys: f64§megno_Yss: f64§megno_cov_Yt: f64§megno_var_t: f64§megno_mean_t: f64§megno_mean_Y: f64§megno_initial_t: f64§megno_n: i64§rand_seed: c_uint§simulationarchive_version: c_int§simulationarchive_auto_interval: f64§simulationarchive_auto_walltime: f64§simulationarchive_auto_step: u64§simulationarchive_next: f64§simulationarchive_next_step: u64§simulationarchive_filename: *mut c_char§collision: reb_simulation__bindgen_ty_2§integrator: reb_integrator_configuration§boundary: reb_simulation__bindgen_ty_3§gravity: reb_simulation__bindgen_ty_4§gravity_custom: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§odes: *mut *mut reb_ode§N_odes: usize§N_allocated_odes: usize§additional_forces: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§pre_timestep_modifications: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§post_timestep_modifications: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§heartbeat: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§key_callback: Option<unsafe extern "C" fn(r: *mut reb_simulation, key: c_int) -> c_int>§coefficient_of_restitution: Option<unsafe extern "C" fn(r: *const reb_simulation, v: f64) -> f64>§collision_resolve: Option<unsafe extern "C" fn(r: *mut reb_simulation, arg1: reb_collision) -> REB_COLLISION_RESOLVE_OUTCOME>§free_particle_ap: Option<unsafe extern "C" fn(p: *mut reb_particle)>§extras_cleanup: Option<unsafe extern "C" fn(r: *mut reb_simulation)>§extras: *mut c_void

Trait Implementations§

Source§

impl Clone for reb_simulation

Source§

fn clone(&self) -> reb_simulation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for reb_simulation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for reb_simulation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.