-
Notifications
You must be signed in to change notification settings - Fork 28
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-parallel rays for source broadening #139
Comments
I've run the example A similar picture I see for the example of 2D bent crystal Linear source distributions of GeometricSource (RTFM) are defined by |
Yes, I updated the geometry to my specific problem, and I forgot to update the value for What is the physical meaning of From
So it appears to be something like the size of the crystal divided by the distance traversed between source and detector on the Rowland Circle. This looks almost like a solid angle, but not quite. |
As a follow-up question. Is there a way to extract the plotted data into numpy arrays for further analysis? If I defined I am mainly interested in this for simulating the dispersion of the spectrometer and then fitting the dispersion curve with some function. |
Please tell what is unclear in the above-cited docs.
|
For example, the docs for GeometricSource just says
So from the docs, all I know is that Thanks! I'll take a look at implementing an |
The workflow is outlined right in the next section under |
Okay, so I can now extract things like intensity and angle of rays incident at the detector. Is there a way to extract the photon energy (or energies) of the rays which hit a specific "pixel" at the detector plane? Would this be what is called the 4D mutual intensity? |
To analyze beams on a specific plane, we create a screen there and use its pixels for histogramming the beams. All rays coming to a particular pixel lose their identity and are averaged over the pixel. Energy is averaged as well in the sense of color mixture. If you don't want histogramming, you can do your own analysis at the end of
What this? Please ask again. |
Extracting the averaged photon energy as binned from the histogram should be fine for my purposes. Is there a specific method or attribute I can use in Oh, I was wondering whether the method for 4D mutual intensity is a method for extracting either the individual photon energies of the rays or the average (histogram binned) energy or whether it does something else entirely. |
Mutual intensity is used in coherence applications, this is not your case. |
There is maybe some connection through |
I got something close to what I want by using Would there be a way for me to generate my own matplotlib plot under Do you have any suggestions on what is the most simple way to do this using your code? |
You're trying to solve an undefined problem. The color mixing in our plots is done in the sense of RGB addition and is good for visual representation only. In general, you have a whole spectrum per pixel. I suggest studying monochromatic cases at a scanned single photon energy. |
I agree, the RGB method would be too poorly defined. Is there a similar mixing for |
I've been making a simulation for a Johann spectrometer based on the example in the repository, and I noticed that the rays from the GeometricSource to the crystal are parallel. Like so:
![image](https://user-images.githubusercontent.com/28945309/230848515-9b71f1b1-8ebd-4b99-91b9-40b85d231bd1.png)
When I reduce this to a simple example of a GeometricSource and a detector it confirms that the rays do not diverge, and the size of the source is simply imprinted directly onto the detector
Is there a way to simulate diverging (non-parallel) rays in order to simulate line broadening due to the finite size of the source?
The text was updated successfully, but these errors were encountered: