Calculation of Reflectance and transmittance.

9 views
Skip to first unread message

Mahreen Fatima

unread,
Jan 30, 2025, 8:40:17 PMJan 30
to Smuthi
Hello Everyone, 

I hope everyone will be fine. I have started my work on the SMUTHI for reflectance and transmittance calculation, but I am a beginner at this. I am facing lots of difficulties, such as saving data and many more. 
is there anyone who can help me with the basics? and saved file information. 


Regards, 
Mahreen 

Amos Egel

unread,
Jan 31, 2025, 2:53:34 AMJan 31
to Mahreen Fatima, Smuthi

Hello Mahreen,

welcome to the community and thank you for your interest in the Smuthi package.

Smuthi is a Python package. Its results typically are real or complex Python numbers or real or complex numpy arrays in Python. When running a Smuthi script, you can use any Python functions and additional packages to manipulate, plot or store the data generated with Smuthi.

In general, I recommend to take an online tutorial in the Python programming language, if you have not yet done so. Python programming skills will help with using Smuthi and are a useful skill in general.

To answer your question: If you have a Python variable called "results" containing your result data (e.g., a reflectance value), you can store it to a file with the commands:

with open('my_results.dat', 'w') as file:
    file.write(str(results))

If you have other more specific questions, feel free to ask back.

Regards, Amos

--
Smuthi project repository: https://gitlab.com/AmosEgel/smuthi
Online documentation https://smuthi.readthedocs.io/en/latest/
---
You received this message because you are subscribed to the Google Groups "Smuthi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smuthi+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smuthi/f6a868e7-fc0c-44d5-9f6f-f8322e8d17e8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages