reb_simulation

Struct reb_simulation 

Source
#[repr(C)]
pub struct reb_simulation {
Show 107 fields pub t: f64, pub G: f64, pub softening: f64, pub dt: f64, pub dt_last_done: f64, pub steps_done: u64, pub N: c_uint, pub N_var: c_int, pub N_var_config: c_uint, pub var_config: *mut reb_variational_configuration, pub var_rescale_warning: c_int, pub N_active: c_int, pub testparticle_type: c_int, pub testparticle_hidewarnings: c_int, pub particle_lookup_table: *mut reb_hash_pointer_pair, pub hash_ctr: c_int, pub N_lookup: c_int, pub N_allocated_lookup: c_int, pub N_allocated: c_uint, pub particles: *mut reb_particle, pub gravity_cs: *mut reb_vec3d, pub N_allocated_gravity_cs: c_int, pub tree_root: *mut *mut reb_treecell, pub tree_needs_update: c_int, pub opening_angle2: f64, pub status: REB_STATUS, pub exact_finish_time: c_int, pub force_is_velocity_dependent: c_uint, pub gravity_ignore_terms: c_uint, pub output_timing_last: f64, pub save_messages: c_int, pub messages: *mut *mut c_char, pub exit_max_distance: f64, pub exit_min_distance: f64, pub usleep: f64, 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 boxsize: reb_vec3d, pub boxsize_max: f64, pub root_size: f64, pub N_root: c_int, pub N_root_x: c_int, pub N_root_y: c_int, pub N_root_z: c_int, pub N_ghost_x: c_int, pub N_ghost_y: c_int, pub N_ghost_z: c_int, pub collision_resolve_keep_sorted: c_int, pub collisions: *mut reb_collision, pub N_allocated_collisions: c_int, pub minimum_collision_velocity: f64, pub collisions_plog: f64, pub max_radius0: f64, pub max_radius1: 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_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_1, pub integrator: reb_simulation__bindgen_ty_2, pub boundary: reb_simulation__bindgen_ty_3, pub gravity: reb_simulation__bindgen_ty_4, pub ri_sei: reb_integrator_sei, pub ri_whfast: reb_integrator_whfast, pub ri_whfast512: reb_integrator_whfast512, pub ri_saba: reb_integrator_saba, pub ri_ias15: reb_integrator_ias15, pub ri_mercurius: reb_integrator_mercurius, pub ri_janus: reb_integrator_janus, pub ri_eos: reb_integrator_eos, pub ri_bs: reb_integrator_bs, pub odes: *mut *mut reb_ode, pub N_odes: c_int, pub N_allocated_odes: c_int, pub ode_warnings: c_int, 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 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) -> c_int>, 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§dt: f64§dt_last_done: f64§steps_done: u64§N: c_uint§N_var: c_int§N_var_config: c_uint§var_config: *mut reb_variational_configuration§var_rescale_warning: c_int§N_active: c_int§testparticle_type: c_int§testparticle_hidewarnings: c_int§particle_lookup_table: *mut reb_hash_pointer_pair§hash_ctr: c_int§N_lookup: c_int§N_allocated_lookup: c_int§N_allocated: c_uint§particles: *mut reb_particle§gravity_cs: *mut reb_vec3d§N_allocated_gravity_cs: c_int§tree_root: *mut *mut reb_treecell§tree_needs_update: c_int§opening_angle2: f64§status: REB_STATUS§exact_finish_time: c_int§force_is_velocity_dependent: c_uint§gravity_ignore_terms: c_uint§output_timing_last: f64§save_messages: c_int§messages: *mut *mut c_char§exit_max_distance: f64§exit_min_distance: f64§usleep: f64§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§boxsize: reb_vec3d§boxsize_max: f64§root_size: f64§N_root: c_int§N_root_x: c_int§N_root_y: c_int§N_root_z: c_int§N_ghost_x: c_int§N_ghost_y: c_int§N_ghost_z: c_int§collision_resolve_keep_sorted: c_int§collisions: *mut reb_collision§N_allocated_collisions: c_int§minimum_collision_velocity: f64§collisions_plog: f64§max_radius0: f64§max_radius1: 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_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_1§integrator: reb_simulation__bindgen_ty_2§boundary: reb_simulation__bindgen_ty_3§gravity: reb_simulation__bindgen_ty_4§ri_sei: reb_integrator_sei§ri_whfast: reb_integrator_whfast§ri_whfast512: reb_integrator_whfast512§ri_saba: reb_integrator_saba§ri_ias15: reb_integrator_ias15§ri_mercurius: reb_integrator_mercurius§ri_janus: reb_integrator_janus§ri_eos: reb_integrator_eos§ri_bs: reb_integrator_bs§odes: *mut *mut reb_ode§N_odes: c_int§N_allocated_odes: c_int§ode_warnings: c_int§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)>§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) -> c_int>§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 · 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.