plask.phys
¶
Basic physical constants and utility functions.
Constants¶
|
Elementary charge (C) |
|
Electron mass (kg) |
|
Speed of light (m/s) |
|
Vacuum permeability (V·s/(A·m)) |
|
Vacuum permittivity (pF/µm) |
|
Free space impedance (Ω) |
|
Free space impedance (Ω) |
|
Planck constant (J·s) |
|
Planck constant (eV·s) |
|
Stefan-Boltzmann constant (W/(m2·K4)) |
|
Boltzmann constant (J/K) |
|
Boltzmann constant (eV/K) |
Functions¶
|
Compute wavelength for specified photon energy. |
|
Compute photon energy for specified wavelength. |
|
Compute real length of optical wavelength in specified material. |
Descriptions¶
Function Details¶
- plask.phys.eV2nm(eV)¶
Compute wavelength for specified photon energy.
- Parameters:
eV (float) – Photon energy (eV).
- Returns:
Wavelength (nm).
- Return type:
float
- plask.phys.nm2eV(nm)¶
Compute photon energy for specified wavelength.
- Parameters:
nm (float) – Wavelength (eV).
- Returns:
Photon energy (nm).
- Return type:
float
- plask.phys.wl(mat, lam, T=300.0)¶
Compute real length of optical wavelength in specified material.
This is utility function that computes the physical length of a single wavelength in specified material. Its main purpose is easier design of DBR stacks.
If you are using it with custom materials, make sure that it does provide
nr()
method.- Parameters:
mat (material.Material or str) – Material to compute physical wavelength in.
lam (float) – Free-space wavelength to scale for material mat (nm).
T (float) – Temperature at which material refractive index is retrieved.
- Returns:
Real length of the one wavelength in the material (µm).
- Return type:
float