Skip to main content

rill_core_model/
constants.rs

1//! Physical constants and numerical tolerances used throughout the crate.
2
3/// Boltzmann constant (J/K).
4pub const BOLTZMANN: f64 = 1.380649e-23;
5
6/// Elementary charge (C).
7pub const ELECTRON_CHARGE: f64 = 1.60217662e-19;
8
9/// Convergence tolerance for Newton-Raphson iteration (dimensionless).
10pub const NEWTON_TOLERANCE: f64 = 1e-9;