pub struct CosmoOpts {
pub omega_b: Option<f64>,
pub omega_m: Option<f64>,
pub h: Option<f64>,
pub n_eff: Option<f64>,
pub y_p: Option<f64>,
pub t_cmb: Option<f64>,
pub preset: Option<String>,
}Expand description
Cosmology parameters.
Fields§
§omega_b: Option<f64>Fractional baryon density Ω_b (--omega-b). Converted internally
to the physical density ω_b = Ω_b h² before the Cosmology
struct is built.
omega_m: Option<f64>Fractional total matter density Ω_m = Ω_b + Ω_cdm (--omega-m).
Combined with omega_b and h to compute the physical CDM density
ω_cdm = (Ω_m − Ω_b) h².
h: Option<f64>Reduced Hubble parameter h = H₀ / (100 km/s/Mpc) (--h).
n_eff: Option<f64>Effective number of relativistic species N_eff (--n-eff).
y_p: Option<f64>Helium mass fraction Y_p (--y-p).
t_cmb: Option<f64>CMB temperature today, in K (--t-cmb).
preset: Option<String>Named preset (--cosmology) such as default, planck2015,
planck2018. Individual flags above override preset values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CosmoOpts
impl RefUnwindSafe for CosmoOpts
impl Send for CosmoOpts
impl Sync for CosmoOpts
impl Unpin for CosmoOpts
impl UnwindSafe for CosmoOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more