pub struct System {
pub primary_star: PrimaryStar,
pub planets: Vec<Planetesimal>,
pub cloud_eccentricity: f64,
pub dust_density_coeff: f64,
pub k: f64,
pub b: f64,
pub planetesimal_inner_bound: f64,
pub planetesimal_outer_bound: f64,
pub inner_dust: f64,
pub outer_dust: f64,
pub dust_bands: Vec<DustBand>,
pub dust_left: bool,
}
Fields
primary_star: PrimaryStar
planets: Vec<Planetesimal>
cloud_eccentricity: f64
dust_density_coeff: f64
k: f64
b: f64
planetesimal_inner_bound: f64
planetesimal_outer_bound: f64
inner_dust: f64
outer_dust: f64
dust_bands: Vec<DustBand>
dust_left: bool
Implementations
sourceimpl System
impl System
pub fn set_initial_conditions(
stellar_mass: f64,
dust_density_coeff: f64,
k: f64,
cloud_eccentricity: f64,
b: f64
) -> Self
pub fn distribute_planetary_masses(
&mut self,
rng: &mut dyn RngCore,
events_log: &mut AccreteEvents
)
pub fn post_accretion(
&mut self,
intensity: u32,
rng: &mut dyn RngCore,
events_log: &mut AccreteEvents
)
pub fn process_planets(&mut self, rng: &mut dyn RngCore)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for System
impl<'de> Deserialize<'de> for System
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EventSource for System
impl EventSource for System
fn event(&self, event_type: &str, events_log: &mut AccreteEvents)
sourceimpl From<&'_ System> for AccreteState
impl From<&'_ System> for AccreteState
impl StructuralPartialEq for System
Auto Trait Implementations
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more