oasys-kit / ShadowOui-Advanced-Tools

Advanced Simulation Tools for ShadowOui
Other
1 stars 1 forks source link

power density loop doesn't seem to work for BM #7

Closed maltissimo closed 8 months ago

maltissimo commented 8 months ago

Good Morning, and Happy New Year!

I discovered this morning that the Power density Loop doesn't work for BM. I attach the .ows file here for your convenience. What I see is that the energy in the Shadow BM widget does not change at every loop step, while the MC seed does. I tried mimicking the 2020 paper, and used the XOPPY BM widget as input, set as below: image

But the Power Density Loop Point sees this: image

I thought the 2 things are correlated. I also tried to save the I tried to save the ph/s/0.1%bw file from the XOPPY widget, but the issue stay the same: the energy in the BM widget does not change.

BM Power Loop.ows.zip

lucarebuffi commented 8 months ago

As the title of the related paper says, the thermal load loop set of widgets for UNDULATOR SOURCES, only:

https://scripts.iucr.org/cgi-bin/paper?S160057752000778X

It won't work for BM.

Moreover, you don't need a loop for the BM: you just attach a Power Density (BM) wherever you want on your beam line and input to it the Xoppy BM widget directly. The Shadow BM source and the XOPPY BM must be, of course, consistent with each other.

Please contact me directly next time.