This code computes the complex dielectric constant (i.e. relative permittivity) and the refractive index of various metals using either the Lorentz-Drude (LD) or the Drude model (D) as a function of input light wavelength.
Additionally, it may compute the dielectric constant of pure water using a Debye-Lorentz model.
Choice of materials: silver, aluminum, gold, copper, chromium, nickel, tungsten, titanium, beryllium, palladium, platinum, triply distilled water.
Reference: Bora Ung and Yunlong Sheng, Interference of surface waves in a metallic nanoslit, Optics Express 15, 1182-1190 (2007).
Bora Ung (2023). Drude-Lorentz and Debye-Lorentz models for the dielectric constant of metals and water (https://www.mathworks.com/matlabcentral/fileexchange/18040-drude-lorentz-and-debye-lorentz-models-for-the-dielectric-constant-of-metals-and-water), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Updated the value of the physical constant "ehbar" to a more accurate one. Thanks to A. Webster for the tip!
A coding error in the previous version is corrected in this version.
Added a new material (pure water) whose dielectric constant is computed via the Debye-Lorentz model. References are also updated.
Added some small changes to improve the overall performance. Included a screenshot to show the comparison between the Drude, Lorentz-Drude and exact experimental values of the permittivity of silver.