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: f64dust_density_coeff: f64k: f64cloud_eccentricity: f64b: f64post_accretion_intensity: u32planet_a: f64planet_e: f64planet_mass: f64stellar_luminosity: f64events_log: AccreteEvents

Implementations

Generate planetary system.

Generate planet.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.