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

BM source not adding rays at different energie #215

Open
maltissimo opened this issue Jul 30, 2020 · 1 comment
Open

BM source not adding rays at different energie #215

maltissimo opened this issue Jul 30, 2020 · 1 comment

Comments

@maltissimo
Copy link

Hello,

I'm setting up a beamline with a bending magnet source. I was trying to use the Minimum - maximum energy values to check my mono, but it seems that the source produces pretty much one energy only, i.e. something along the lines of 19999.999 eV instead of the selected 20 kev - 25 keV range.
I confirmed it via a python script attached downstream the source:

test_beam=in_object_1
en_col = (test_beam._beam.getshonecol(11))

for i in range(0, len(en_col)):
if abs(20000 - en_col[i]) >0.001:
print("Found one!", en_col[i], i)

It produces no output

I attach here the .ows file for you to check.

Ciao

Matteo

Syrmep1.0.ows.zip

@srio
Copy link
Member

srio commented Jul 30, 2020

Good discover!
It seems that SHADOW BM cannot generate white radiation when the "Exact" calculation is set (as you did). I did not know that. I would have to check the code to see how it works...
If you are not very far from the critical energy you should use Calculation Mode=Precomputed.
I only used Exact mode for infrared radiation.
Ciao!

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