electronics.carrier_concentration¶
Functions¶
|
This function can calculate any one of the three - |
Module Contents¶
- electronics.carrier_concentration.carrier_concentration(electron_conc: float, hole_conc: float, intrinsic_conc: float) tuple ¶
This function can calculate any one of the three - 1. Electron Concentration 2, Hole Concentration 3. Intrinsic Concentration given the other two. Examples - >>> carrier_concentration(electron_conc=25, hole_conc=100, intrinsic_conc=0) (‘intrinsic_conc’, 50.0) >>> carrier_concentration(electron_conc=0, hole_conc=1600, intrinsic_conc=200) (‘electron_conc’, 25.0) >>> carrier_concentration(electron_conc=1000, hole_conc=0, intrinsic_conc=1200) (‘hole_conc’, 1440.0) >>> carrier_concentration(electron_conc=1000, hole_conc=400, intrinsic_conc=1200) Traceback (most recent call last):
…
ValueError: You cannot supply more or less than 2 values >>> carrier_concentration(electron_conc=-1000, hole_conc=0, intrinsic_conc=1200) Traceback (most recent call last):
…
ValueError: Electron concentration cannot be negative in a semiconductor >>> carrier_concentration(electron_conc=0, hole_conc=-400, intrinsic_conc=1200) Traceback (most recent call last):
…
ValueError: Hole concentration cannot be negative in a semiconductor >>> carrier_concentration(electron_conc=0, hole_conc=400, intrinsic_conc=-1200) Traceback (most recent call last):
…
ValueError: Intrinsic concentration cannot be negative in a semiconductor