pub struct ElectronTemperature {
pub rho_e: f64,
}Expand description
State of the electron temperature solver.
Fields§
§rho_e: f64Current T_e/T_z ratio
Implementations§
Source§impl ElectronTemperature
impl ElectronTemperature
Sourcepub fn theta_e_with(&self, theta_z_val: f64) -> f64
pub fn theta_e_with(&self, theta_z_val: f64) -> f64
θ_e from a precomputed θ_z value (cosmology-aware).
Pass cosmo.theta_z(z) so a non-default T_CMB is honoured.
Sourcepub fn update_equilibrium(&mut self, x_grid: &[f64], n_full: &[f64])
pub fn update_equilibrium(&mut self, x_grid: &[f64], n_full: &[f64])
Set ρ_e from the full Compton-equilibrium form I₄/(4G₃).
Not used by the production solver. The full form has ~0.1%
numerical error from near-cancellation of the two integrals, which
swamps the O(10⁻⁵) physical distortion signal. Retained only as a
reference for off-path tests and verification; the solver uses the
perturbative update in solver::compute_hubble_coefficients instead.
Trait Implementations§
Source§impl Clone for ElectronTemperature
impl Clone for ElectronTemperature
Source§fn clone(&self) -> ElectronTemperature
fn clone(&self) -> ElectronTemperature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElectronTemperature
impl Debug for ElectronTemperature
Auto Trait Implementations§
impl Freeze for ElectronTemperature
impl RefUnwindSafe for ElectronTemperature
impl Send for ElectronTemperature
impl Sync for ElectronTemperature
impl Unpin for ElectronTemperature
impl UnwindSafe for ElectronTemperature
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