pub struct Accrete {
pub stellar_mass: f64,
pub dust_density_coeff: f64,
pub k: f64,
pub cloud_eccentricity: f64,
pub b: f64,
pub post_accretion_intensity: u32,
pub planet_a: f64,
pub planet_e: f64,
pub planet_mass: f64,
pub stellar_luminosity: f64,
pub events_log: AccreteEvents,
/* private fields */
}
Expand description
Configuration:
stellar_mass - Primary star mass in solar masses. Default: random f64 in a range of 0.6-1.3 (corresponds main sequence spectral classes of F-G-K)
dust_density_coeff - “A” in Dole’s paper, recommended range according to Dole’s paper is 0.00125-0.0015, aslo noted that binary stars produced by increasing coeff of dust density in cloud (Formation of Planetary Systems by Aggregation: A Computer Simulation by Stephen H. Dole). Default: 0.0015
k - The dust-to-gas ratio 50-100 (dust/gas = K), gas = hydrogen and helium, dust = other. Recommended range: 50.0-100.0 Default: 50.0
cloud_eccentricity - Initial dust cloud cloud_eccentricity. High eccentricity reduce number of planets. Recommended range: 0.15-0.25. Default: 0.20
b - Crit_mass coeff is used as threshold for planet to become gas giant. Recommended range: 1.0e-5 - 1.2e-5 Default: 1.2e-5
post_accretion_intensity - Amount of random planetesimals that will bomb planets of created system after accretion. Default: 1000
Parameters specific for standalone planet generation planet_a - Planet orbital radius in AU. Default: random f64 in a range of 0.3-50.0
planet_e - Planet eccentricity Default: f64 from random_eccentricity function
planet_mass - Planet mass in Earth masses. Default: Random f64 in a range 3.3467202125167E-10 - 500.0
stellar_luminosity - Primary star luminosity. Default: 1.0
events_log - AccreteEvents log. Default: []
Fields
stellar_mass: f64
dust_density_coeff: f64
k: f64
cloud_eccentricity: f64
b: f64
post_accretion_intensity: u32
planet_a: f64
planet_e: f64
planet_mass: f64
stellar_luminosity: f64
events_log: AccreteEvents
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Accrete
impl<'de> Deserialize<'de> for Accrete
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
Auto Trait Implementations
impl RefUnwindSafe for Accrete
impl Send for Accrete
impl Sync for Accrete
impl Unpin for Accrete
impl UnwindSafe for Accrete
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