أدوات مساعدةلطلبة الماجستير

تحليل أطياف النفاذية والانعكاسية بالبايثون ( تحديث جديد )

UV-Vis transmittance and reflectance analysis with Python

تحليل أطياف النفاذية والانعكاسية بالبايثون

UV-Vis Optical Analyzer · v2.0

أداة تقرأ طيف النفاذية والانعكاسية من مطياف الأشعة فوق البنفسجية والمرئية، وتحسب فجوة الطاقة البصرية وطاقة أورباخ ومعامل الامتصاص والثوابت البصرية، ثم تصدر تقريرًا كاملًا بصيغة PDF.

منحنى تاوك محسوب لمادة فجوتها المباشرة Eg = 3.25 eV مع ذيل امتصاص عرضه 50 meV. الجزء المستقيم المظلل ممدودًا حتى المحور يعطي فجوة الطاقة، والذيل المنحني تحته يعطي طاقة أورباخ.

البرنامج لويندوز 10 أو 11 بنظام 64 بت، وحجمه نحو 73 ميغابايت. قد تظهر نافذة SmartScreen عند أول تشغيل لأن البرنامج غير موقّع رقميًا؛ اختر «مزيد من المعلومات» ثم «تشغيل على أي حال». أما نسخة Colab فتحتاج حساب Google فقط.

تقبل الأداة ملفات نصية (txt وcsv وdat) فيها عمود الطول الموجي مع النفاذية، أو النفاذية والانعكاسية، أو الامتصاصية، ويمكن رفع عدة عينات معًا لمقارنتها.

ماذا تعطيك الأداة

  • فجوة الطاقة البصريةمن منحنى تاوك لأربعة أنواع من الانتقالات، مع خطئها الإحصائي ونافذة الملاءمة المستعملة.
  • طاقة أورباخعرض ذيل الامتصاص الأسّي تحت الحافة، وهي مقياس للاضطراب والعيوب في المادة.
  • معامل الامتصاصمصحّحًا من الضوء المنعكس، ويُحسب بوحدة cm⁻¹ متى أُدخل سمك الغشاء.
  • معامل الانكسارمن الانعكاسية في المنطقة الشفافة، بنموذج غشاء على ركيزة أو سطح واحد لعينة سميكة.
  • الخمود ودالة العزل والموصليةمعامل الخمود k، وجزءا دالة العزل ε₁ وε₂، والموصلية البصرية بوحدة S/cm.
  • تنبيهات تلقائيةتكشف تشبّع الكاشف وتستبعده، وتنبّه إذا كانت النافذة في غير موضعها أو كان معامل الانكسار غير موثوق.
  • تقرير PDFتقرير بهوية المعامل، بالعربية أو بالإنجليزية: الرسوم، وجدول النتائج، وخطوات المعالجة، والتنبيهات، ومصدر كل عينة.
  • ملفات للتحريرجداول القيم لكل طول موجي بصيغة CSV أو Excel، والرسم بصيغة PNG بدقة 300 نقطة في البوصة.

طريقة الاستخدام

  1. جهّز الدفتر

    شغّل الخلية الأولى مرة واحدة، فهي تحمّل خط المعامل وشعاره للتقرير.

  2. ارفع الملفات

    شغّل خلية الأداة واختر ملفًا أو أكثر. تتعرف الأداة على الأعمدة من أسمائها أو من قيمها، وعلى النسب المئوية ووحدة الطول الموجي، وتكتب تحت كل ملف ما قرأته منه، فراجعه قبل أن تكمل.

  3. أدخل بيانات العينة

    اكتب سمك الغشاء نفسه بالنانومتر، لا سمك الغشاء مع الركيزة، واتركه صفرًا إن لم يكن معروفًا. ثم اختر نوع الركيزة ونوع الانتقال.

  4. حلّل وراجع

    اضغط Analyze. تختار الأداة نافذتي تاوك وأورباخ آليًا وتظللهما في الرسم، ويمكنك تحديدهما يدويًا من المؤشرين إن أردت. راجع التنبيهات قبل اعتماد أي رقم.

  5. نزّل النتائج

    نزّل التقرير بالعربية أو بالإنجليزية، أو الجداول، أو الرسم. ومع عدة ملفات يبدأ التقرير بجدول مقارنة بين العينات.

خيارات المعالجة

سمك الغشاءبالنانومتر. لا تحتاجه فجوة الطاقة ولا طاقة أورباخ، أما معامل الامتصاص والخمود ودالة العزل والموصلية فتتناسب معه عكسيًا.
الركيزةكوارتز، أو زجاج عادي، أو بلا ركيزة. الزجاج العادي يمتص تحت نحو 320 nm، فتنبّه الأداة إذا وقعت الحافة في هذا المدى.
نوع الانتقالمباشر مسموح أو غير مباشر مسموح، أو أحد الانتقالين الممنوعين. يغير الأس في منحنى تاوك.
حساب الامتصاصمع تصحيح الانعكاس إذا كان في الملف عمود للانعكاسية، ومن النفاذية وحدها إذا لم يكن.
خط الأساسيطرح الامتصاص الظاهري في المنطقة الشفافة، وهو فقد لا علاقة له بالامتصاص، مثل الانعكاس والتشتت.
معامل انكسار الركيزةالافتراضي 1.46 للكوارتز المصهور، ويُستعمل في حساب معامل الانكسار من الانعكاسية.

القوانين المستعملة

طاقة الفوتون

$$h\nu\,(\text{eV})=\frac{hc}{\lambda}=\frac{1239.84}{\lambda\,(\text{nm})}$$

معامل الامتصاص

الضوء الذي لا ينفذ إما امتُص وإما انعكس، فتصحح الأداة الانعكاس قبل حساب الامتصاص، ثم تقسم على سمك الغشاء d:

$$\alpha d=\ln\frac{(1-R)^2}{T}\qquad\alpha=\frac{\alpha d}{d}$$

وإذا لم تتوفر الانعكاسية فالحساب من النفاذية وحدها، وهو يعدّ الضوء المنعكس امتصاصًا:

$$\alpha d=-\ln T=2.303\,A$$

علاقة تاوك وفجوة الطاقة

$$(\alpha h\nu)^{m}=B\,(h\nu-E_g)$$

الأس m = 2 للانتقال المباشر المسموح، و1/2 لغير المباشر المسموح، و2/3 و1/3 للانتقالين الممنوعين. تُرسم الكمية (αhν)ᵐ مقابل طاقة الفوتون، ويُمد الجزء المستقيم من الحافة حتى يقطع المحور الأفقي، فنقطة القطع هي Eg. ولا يتغير Eg بالسمك، لأن السمك يغير الميل فقط.

طاقة أورباخ

$$\alpha=\alpha_0\exp\!\left(\frac{h\nu}{E_u}\right)\quad\Rightarrow\quad\ln\alpha=\frac{h\nu}{E_u}+\text{const}$$

تُقاس في ذيل الامتصاص تحت الحافة مباشرة، حيث يكون ln α خطًا مستقيمًا مع الطاقة، ومقلوب ميله هو Eu. قيمها المعتادة في الأغشية من عشرات إلى بضع مئات من الميلي إلكترون فولت.

الثوابت البصرية

$$k=\frac{\alpha\lambda}{4\pi}\qquad R=\frac{(n-1)^2+k^2}{(n+1)^2+k^2}$$

المعادلة الثانية لسطح واحد، وتصلح لعينة سميكة قائمة بذاتها. أما الغشاء على ركيزة فالانعكاسية المقيسة تجمع انعكاس وجه الغشاء ووجهي الركيزة، فتحلّ الأداة نموذج الغشاء والركيزة كاملًا لإيجاد n، وفي المنطقة الشفافة فقط.

$$\varepsilon_1=n^2-k^2\qquad\varepsilon_2=2nk\qquad\sigma=\varepsilon_0\,\omega\,\varepsilon_2$$

حيث ε₀ سماحية الفراغ وω = 2πc/λ، فتخرج الموصلية البصرية بوحدة S/m وتعرضها الأداة بوحدة S/cm.

كيف تقرأ النتائج

فجوة الطاقة

القيمة مع خطئها من الملاءمة، ومعها نافذة الملاءمة ومعامل التحديد R². إذا كانت الحافة منحنية كلها ولم تجد الأداة جزءًا مستقيمًا بما يكفي، أخذت أكثر النوافذ استقامة وكتبت أن القيمة تقريبية.

طاقة أورباخ

القيمة الأكبر تعني ذيلًا أعرض، أي اضطرابًا أو عيوبًا أكثر. وإذا خرجت Eu قريبة من فجوة الطاقة نفسها فالنافذة ليست على الذيل، بل على المنطقة الشفافة أو على شريط عيوب، والأداة تنبّه إلى ذلك.

معامل الانكسار

يصح إذا كانت الانعكاسية المقيسة هي الانعكاس الكلي للغشاء مع ركيزته. فإذا زاد n مع الطول الموجي في المنطقة الشفافة، أو كانت الانعكاسية أقل من انعكاسية الركيزة وحدها، نبّهت الأداة إلى أنه غير موثوق لهذه العينة.

تشبّع الكاشف: إذا استقرت النفاذية على قيمة دنيا ثابتة فهذا حد الجهاز لا قياس. تظلل الأداة هذه المنطقة وتستبعدها. وإذا وقعت الحافة كلها فيها فلن يُقاس إلا أسفلها، والحل غشاء أرق.

السمك: أدخل سمك الغشاء وحده. القسمة على سمك الغشاء مع الركيزة تعطي معامل امتصاص أصغر بكثير من الحقيقي.

مقارنة مع برنامج Origin

حللنا عينتين من غشاء مرسّب على كوارتز، العينة (0) والعينة (15)، بالأداة وببرنامج Origin، وهذه القيم المستخرجة:

الخاصيةالعينة 0
Origin
العينة 0
الأداة
العينة 15
Origin
العينة 15
الأداة
فجوة الطاقة المباشرة4.26 eV4.27 ± 0.02 eV4.26 eV4.27 ± 0.02 eV
طاقة أورباخلم تُحسب145 ± 4 meVلم تُحسب162 ± 4 meV

جاءت فجوة الطاقة من الأداة مطابقة لقيمة Origin في العينتين، والفرق أقل من 0.01 eV وهو داخل حدود الخطأ. وهي فجوة واسعة تجعل المادة شفافة في المدى المرئي.

وأضافت الأداة حساب طاقة أورباخ، فجاءت أعلى قليلًا في العينة (15). معنى ذلك أن ذيل الامتصاص تحت الحافة اتسع بعد التعديل، وهذا مؤشر على زيادة طفيفة في الاضطراب داخل المادة.

بهذا تصلح الأداة بديلًا مفتوح المصدر لتحليل أطياف النفاذية والانعكاسية، مع تنبيهات عن جودة القياس ومنطقة الملاءمة يتحقق منها الباحث قبل اعتماد النتائج.

ملفات الحسابات في برنامج Originملف مضغوط ZIP تقرير الأداة للعينتينPDF بالإنجليزية
اختبار الأداة على عينات قيمها معروفةأطياف محسوبة بقيم محددة سلفًا، ثم مقارنة ما تستخرجه الأداة بها

حسبنا أربعة أطياف لأغشية على كوارتز بقيم معروفة لفجوة الطاقة وطاقة أورباخ، بنموذج امتصاص فيه حافة وذيل أسّي، مع الانعكاس المتعدد بين الغشاء والركيزة. ثم حللناها بالإعدادات الافتراضية:

العينةEg الحقيقيةEg من الأداةEu الحقيقيةEu من الأداة
انتقال مباشر، نفاذية وانعكاسية4.30 eV4.288 eV120 meV123 meV
انتقال غير مباشر، نفاذية فقط3.20 eV3.188 eV60 meV60 meV
غشاء سميك، الحافة مشبّعة4.30 eV4.15 eV تقريبية120 meV125 meV
ملف امتصاصية بالميكرومتر2.40 eV2.397 eV40 meV44 meV

في العينة المشبّعة لم يُقس إلا أسفل الحافة، فأعطت الأداة قيمة أقل من الحقيقية وكتبت في التقرير أنها تقريبية، وهذا هو السلوك المطلوب.

المراجع

  1. Tauc, J., Grigorovici, R., & Vancu, A. (1966). Optical properties and electronic structure of amorphous germanium. Physica Status Solidi (b), 15(2), 627–637. https://doi.org/10.1002/pssb.19660150224
  2. Urbach, F. (1953). The long-wavelength edge of photographic sensitivity and of the electronic absorption of solids. Physical Review, 92(5), 1324. https://doi.org/10.1103/PhysRev.92.1324
  3. Swanepoel, R. (1983). Determination of the thickness and optical constants of amorphous silicon. Journal of Physics E: Scientific Instruments, 16(12), 1214–1222. https://doi.org/10.1088/0022-3735/16/12/023
  4. Makuła, P., Pacia, M., & Macyk, W. (2018). How to correctly determine the band gap energy of modified semiconductor photocatalysts based on UV–Vis spectra. The Journal of Physical Chemistry Letters, 9(23), 6814–6817. https://doi.org/10.1021/acs.jpclett.8b02892

من أدوات الباحثين في معامل الفيزياء.

UV-Vis transmittance and reflectance analysis with Python

UV-Vis Optical Analyzer · v2.0

A tool that reads transmittance and reflectance spectra from a UV-Vis spectrophotometer, computes the optical band gap, the Urbach energy, the absorption coefficient and the optical constants, and exports a complete PDF report.

Computed Tauc plot of a material with a direct gap Eg = 3.25 eV and a 50 meV absorption tail. The shaded straight part, extrapolated to the axis, gives the band gap; the curved tail below it gives the Urbach energy.

The program runs on 64-bit Windows 10 or 11 and is about 73 MB. SmartScreen may warn on the first run because the program is not digitally signed; choose “More info” then “Run anyway”. The Colab version needs only a Google account.

The tool accepts text files (txt, csv, dat) with a wavelength column and transmittance, or transmittance and reflectance, or absorbance. Several samples can be uploaded together and compared.

What the tool gives you

  • Optical band gapFrom the Tauc plot for four transition types, with its statistical uncertainty and the fit window used.
  • Urbach energyThe width of the exponential absorption tail below the edge, a measure of disorder and defects.
  • Absorption coefficientCorrected for reflected light, in cm⁻¹ once the film thickness is entered.
  • Refractive indexFrom the reflectance in the transparent region, with a film-on-substrate model or a single surface for a thick sample.
  • Extinction, dielectric function, conductivityThe extinction coefficient k, the two parts ε₁ and ε₂, and the optical conductivity in S/cm.
  • Automatic warningsDetector saturation is detected and left out; a misplaced window or an unreliable refractive index is flagged.
  • PDF reportA branded report in English or Arabic: figures, results table, processing steps, warnings and the source of each sample.
  • Editable filesPer-wavelength tables as CSV or Excel, and the figure as a 300 dpi PNG.

How to use it

  1. Prepare the notebook

    Run the first cell once. It loads the lab typeface and logo for the report.

  2. Upload the files

    Run the tool cell and choose one or more files. The tool recognises the columns by name or by their values, as well as percentages and the wavelength unit, and prints what it read under each file; check it before you continue.

  3. Enter the sample data

    Type the thickness of the film itself in nanometres, not film plus substrate, and leave it at zero if unknown. Then choose the substrate and the transition type.

  4. Analyse and check

    Press Analyze. The tool chooses the Tauc and Urbach windows automatically and shades them in the figure; you can set them by hand with the sliders. Read the warnings before you use any number.

  5. Download

    Download the report in English or Arabic, the tables or the figure. With several files the report opens with a comparison table of the samples.

Processing options

Film thicknessIn nanometres. The band gap and the Urbach energy do not need it; the absorption coefficient, extinction, dielectric function and conductivity scale with its inverse.
SubstrateQuartz, ordinary glass or none. Ordinary glass absorbs below about 320 nm, so the tool warns when the edge falls there.
TransitionDirect or indirect allowed, or one of the two forbidden transitions. It sets the exponent of the Tauc plot.
AbsorptionReflection-corrected when the file has a reflectance column, from transmittance alone when it does not.
BaselineSubtracts the apparent absorption of the transparent region, a loss that is not absorption, such as reflection and scattering.
Substrate indexDefault 1.46 for fused quartz, used to find the refractive index from the reflectance.

Equations used

Photon energy

$$h\nu\,(\text{eV})=\frac{hc}{\lambda}=\frac{1239.84}{\lambda\,(\text{nm})}$$

Absorption coefficient

Light that is not transmitted is either absorbed or reflected, so the tool corrects for reflection first and then divides by the film thickness d:

$$\alpha d=\ln\frac{(1-R)^2}{T}\qquad\alpha=\frac{\alpha d}{d}$$

Without reflectance the calculation uses transmittance alone, which counts reflected light as absorbed:

$$\alpha d=-\ln T=2.303\,A$$

Tauc relation and band gap

$$(\alpha h\nu)^{m}=B\,(h\nu-E_g)$$

The exponent is m = 2 for a direct allowed transition, 1/2 for an indirect allowed one, and 2/3 or 1/3 for the forbidden ones. (αhν)ᵐ is plotted against photon energy and the straight part of the edge is extrapolated to the horizontal axis; the intercept is Eg. The thickness changes only the slope, so Eg does not depend on it.

Urbach energy

$$\alpha=\alpha_0\exp\!\left(\frac{h\nu}{E_u}\right)\quad\Rightarrow\quad\ln\alpha=\frac{h\nu}{E_u}+\text{const}$$

It is measured in the absorption tail just below the edge, where ln α is a straight line in energy; the inverse slope is Eu. Typical values in films range from tens to a few hundred meV.

Optical constants

$$k=\frac{\alpha\lambda}{4\pi}\qquad R=\frac{(n-1)^2+k^2}{(n+1)^2+k^2}$$

The second equation holds for a single surface, such as a thick free-standing sample. For a film on a substrate the measured reflectance adds the film surface and both faces of the substrate, so the tool solves the full film-and-substrate model for n, in the transparent region only.

$$\varepsilon_1=n^2-k^2\qquad\varepsilon_2=2nk\qquad\sigma=\varepsilon_0\,\omega\,\varepsilon_2$$

Here ε₀ is the vacuum permittivity and ω = 2πc/λ, so the optical conductivity comes out in S/m; the tool shows it in S/cm.

How to read the results

Band gap

The value with its fit uncertainty, the fit window and the coefficient of determination R². If the whole edge is curved and no part is straight enough, the tool takes the straightest window and marks the value as approximate.

Urbach energy

A larger value means a wider tail, that is more disorder or defects. If Eu comes out close to the band gap itself, the window is not on the tail but on the transparent region or a defect band, and the tool says so.

Refractive index

Valid when the measured reflectance is the total reflectance of the film and its substrate. If n rises with wavelength in the transparent region, or the reflectance is below that of the bare substrate, the tool warns that it is not reliable for that sample.

Detector saturation: when the transmittance sits on a constant minimum, that is the instrument limit, not a measurement. The tool shades that region and leaves it out. If the whole edge falls in it, only its foot is measured; a thinner film solves this.

Thickness: enter the thickness of the film alone. Dividing by film plus substrate gives an absorption coefficient far smaller than the real one.

Comparison with Origin

Two samples of a film deposited on quartz, sample (0) and sample (15), were analysed with the tool and with Origin. These are the extracted values:

PropertySample 0
Origin
Sample 0
Tool
Sample 15
Origin
Sample 15
Tool
Direct band gap4.26 eV4.27 ± 0.02 eV4.26 eV4.27 ± 0.02 eV
Urbach energynot computed145 ± 4 meVnot computed162 ± 4 meV

The band gap from the tool matches Origin in both samples; the difference is below 0.01 eV, within the uncertainty. It is a wide gap that makes the material transparent in the visible range.

The tool adds the Urbach energy, which is slightly higher in sample (15): the absorption tail below the edge widened after the modification, a sign of a small increase in disorder in the material.

The tool is therefore an open-source alternative for analysing transmittance and reflectance spectra, with warnings on measurement quality and fit region for the researcher to check before using the results.

Origin calculation filesZIP archive Tool report for both samplesPDF
Testing the tool on samples with known valuesSpectra computed from preset values, then compared with what the tool extracts

We computed four spectra of films on quartz with known band gap and Urbach energy, using an absorption model with an edge and an exponential tail, including multiple reflections between film and substrate. They were analysed with the default settings:

SampleTrue EgTool EgTrue EuTool Eu
Direct, T and R4.30 eV4.288 eV120 meV123 meV
Indirect, T only3.20 eV3.188 eV60 meV60 meV
Thick film, saturated edge4.30 eV4.15 eV approx.120 meV125 meV
Absorbance file in µm2.40 eV2.397 eV40 meV44 meV

In the saturated sample only the foot of the edge was measured, so the tool gave a lower value and marked it as approximate in the report, which is the intended behaviour.

References

  1. Tauc, J., Grigorovici, R., & Vancu, A. (1966). Optical properties and electronic structure of amorphous germanium. Physica Status Solidi (b), 15(2), 627–637. https://doi.org/10.1002/pssb.19660150224
  2. Urbach, F. (1953). The long-wavelength edge of photographic sensitivity and of the electronic absorption of solids. Physical Review, 92(5), 1324. https://doi.org/10.1103/PhysRev.92.1324
  3. Swanepoel, R. (1983). Determination of the thickness and optical constants of amorphous silicon. Journal of Physics E: Scientific Instruments, 16(12), 1214–1222. https://doi.org/10.1088/0022-3735/16/12/023
  4. Makuła, P., Pacia, M., & Macyk, W. (2018). How to correctly determine the band gap energy of modified semiconductor photocatalysts based on UV–Vis spectra. The Journal of Physical Chemistry Letters, 9(23), 6814–6817. https://doi.org/10.1021/acs.jpclett.8b02892

Part of the research tools of Phy-Lab.

اظهر المزيد

محمد بن سعد الميلبي

مؤسس مبادرة معامل الفيزياء | مطور حلول رقمية بالذكاء اصطناعي في مجال الفيزياء التعلمية والتحليل العلمي

أ.د.مصطفي اللبان

عضو شرف -مستشار تحليل البيانات العلمية

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

زر الذهاب إلى الأعلى