pub struct OpticalBandgap {
pub energies_ev: Vec<f64>,
pub alphas: Vec<f64>,
}Expand description
Tauc-plot analysis for direct optical bandgap.
For a direct-bandgap semiconductor: (α·hν)² ∝ (hν − E_g). The bandgap E_g is extracted by linear extrapolation to the energy axis.
Fields§
§energies_ev: Vec<f64>Photon energies hν (eV).
alphas: Vec<f64>Absorption coefficients α (m⁻¹).
Implementations§
Source§impl OpticalBandgap
impl OpticalBandgap
Sourcepub fn new(energies_ev: Vec<f64>, alphas: Vec<f64>) -> Self
pub fn new(energies_ev: Vec<f64>, alphas: Vec<f64>) -> Self
Construct from paired energy / absorption vectors.
Sourcepub fn from_wavelengths(wavelengths_nm: &[f64], alphas: &[f64]) -> Self
pub fn from_wavelengths(wavelengths_nm: &[f64], alphas: &[f64]) -> Self
Build from wavelength (nm) and absorption coefficient (m⁻¹) vectors.
Sourcepub fn tauc_direct(&self) -> Vec<(f64, f64)>
pub fn tauc_direct(&self) -> Vec<(f64, f64)>
Tauc variable: y_i = (α·hν)² for direct bandgap.
Sourcepub fn estimate_bandgap(&self) -> Option<f64>
pub fn estimate_bandgap(&self) -> Option<f64>
Estimate the bandgap by finding the linear onset region in the Tauc plot.
Fits a line to the steepest-slope segment and extrapolates to y = 0.
Returns None if the data is insufficient.
Trait Implementations§
Source§impl Clone for OpticalBandgap
impl Clone for OpticalBandgap
Source§fn clone(&self) -> OpticalBandgap
fn clone(&self) -> OpticalBandgap
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OpticalBandgap
impl RefUnwindSafe for OpticalBandgap
impl Send for OpticalBandgap
impl Sync for OpticalBandgap
impl Unpin for OpticalBandgap
impl UnsafeUnpin for OpticalBandgap
impl UnwindSafe for OpticalBandgap
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