kklmn / xrt

Package xrt (XRayTracer) is a python software library for ray tracing and wave propagation in x-ray regime. It is primarily meant for modeling synchrotron sources, beamlines and beamline elements.
MIT License
83 stars 30 forks source link

Help on the class MonoCrystal (CrystalFromCell) #201

Open songpeixuan22 opened 1 week ago

songpeixuan22 commented 1 week ago

Hi, I doubt whether my understandings of the class MonoCrystal is right.

Nmax: int Specifies the highest order of reflection to be calculated.” Does "Nmax" refer to the "n" in the Bragg formula $d\sin \theta = n\lambda$ ?

And I wonder how to rotate the whole crystal in the coordinate, and does the thickness influence the XRD pattern?

Thanks!

songpeixuan22 commented 1 week ago
联想截图_20240906224901 联想截图_20240907163913 联想截图_20240907164114

With the parameters, when Nmax=1, I got the first continuous pattern; when Nmax=3, I got the discrete dots. It makes me so confused.