getElementData
Calculates the electron configuration and valence properties for an element given its atomic number.Parameters
The atomic number of the element (number of protons/electrons)
Returns
The atomic number that was passed in
The electron configuration in standard notation (e.g., “1s2 2s2 2p6 3s2 3p2”)
The number of electrons in the outermost energy level
The number of holes in the valence shell, calculated as
8 - valenceElectronsdetermineMaterial
Determines the semiconductor material type based on the valence electron properties of two elements (host and dopant).Parameters
Element data object containing at minimum a
valenceElectrons property (typically from getElementData)Element data object containing at minimum a
valenceElectrons property (typically from getElementData)Returns
Returns a string describing the semiconductor material type:"Intrínseco (Aislante)"— Both elements have 4 valence electrons (e.g., Si-Si)"Tipo N (Exceso de electrones)"— One element has 4 and the other has 5 valence electrons (e.g., Si-P)"Tipo P (Exceso de huecos)"— One element has 4 and the other has 3 valence electrons (e.g., Si-B)"Ninguno de los anteriores"— Does not match standard semiconductor doping patterns
getElectronsPerLevel
Calculates the distribution of electrons across energy levels (shells) for an element.Parameters
The atomic number of the element
Returns
Returns an object mapping energy level numbers (1-7) to the number of electrons in that level.Number of electrons in the first energy level (K shell)
Number of electrons in the second energy level (L shell)
Number of electrons in the third energy level (M shell)
Number of electrons in the fourth energy level (N shell)
Number of electrons in the fifth energy level (O shell)
Number of electrons in the sixth energy level (P shell)
Number of electrons in the seventh energy level (Q shell)
