Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-periodic multilayer film #203

Open
wlw13579 opened this issue Sep 12, 2024 · 3 comments
Open

Non-periodic multilayer film #203

wlw13579 opened this issue Sep 12, 2024 · 3 comments

Comments

@wlw13579
Copy link

Hello, your xrt software is very good, especially in the multilayer simulation gave me a lot of help, but I found that I can not simulate non-periodic multilayers in the process of using, how can I simulate, or can you add this function, I think it is very useful for most researchers!

@kklmn
Copy link
Owner

kklmn commented Sep 12, 2024

Hi,
This functionality is already there. Subclass from Multilayer and override its methods get_b_thickness() and get_t_thickness() as needed. These two thicknesses can vary in all three dimensions.

@wlw13579
Copy link
Author

Thank you very much, do you mean that when I generate the code through the “generate python script” function in xrtQook, I can add “get_b_thickness” to the code and modify the original multilayer part, or do I just modify the “get_b_thickness” subfunction in “material.py or do I just modify the “get_b_thickness” subfunction of “material.py” to do so?

@kklmn
Copy link
Owner

kklmn commented Sep 12, 2024

A much cleaner way of overriding class methods is not doing it in place in the original library but in a user module that imports that library.

xrtQook wasn't prepared for importing custom materials, only custom optical elements were possible. Now I've also enabled custom materials, see here. You need to update xrt from GH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants