{"action":"opened","issue":{"url":"https://api.github.com/repos/radiasoft/sirepo/issues/246","repository_url":"https://api.github.com/repos/radiasoft/sirepo","labels_url":"https://api.github.com/repos/radiasoft/sirepo/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/radiasoft/sirepo/issues/246/comments","events_url":"https://api.github.com/repos/radiasoft/sirepo/issues/246/events","html_url":"https://github.com/radiasoft/sirepo/issues/246","id":167936227,"number":246,"title":"SRW - problem with amplitude in Intensity Report (calculator mode)","user":{"login":"mrakitin","id":13209176,"avatar_url":"https://avatars.githubusercontent.com/u/13209176?v=3","gravatar_id":"","url":"https://api.github.com/users/mrakitin","html_url":"https://github.com/mrakitin","followers_url":"https://api.github.com/users/mrakitin/followers","following_url":"https://api.github.com/users/mrakitin/following{/other_user}","gists_url":"https://api.github.com/users/mrakitin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrakitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrakitin/subscriptions","organizations_url":"https://api.github.com/users/mrakitin/orgs","repos_url":"https://api.github.com/users/mrakitin/repos","events_url":"https://api.github.com/users/mrakitin/events{/privacy}","received_events_url":"https://api.github.com/users/mrakitin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T19:29:59Z","updated_at":"2016-07-27T19:29:59Z","closed_at":null,"body":"The amplitude in the Intensity report does not change with the change of distance from the source in the calculator mode.\r\n\r\nSteps to reproduce:\r\n- Go to https://alpha.sirepo.com/find-by-name/srw/calculator/Undulator%20Radiation.\r\n- Click `Discard Changes to Example` button.\r\n- Set the following parameters of the idealized undulator:\r\n - Period [mm]: 57\r\n - Length [m]: 1.4\r\n - Vertical Magnetic Field [T]: 0.25\r\n- Set the following parameters in the Single-Electron Spectrum Report:\r\n - Distance From Source [m]: 30\r\n - Final Photon Energy [eV]: 1000\r\n- Select the peak of the harmonic (should be 795.68 eV with the intensity 2.325e+14).\r\n- Set the following parameters of the Intensity Report:\r\n - Distance From Source [m]: 30\r\n - Photon Energy [eV]: 795.68\r\n - Sampling Method: Manual\r\n - Range of Position [mm]: 12 x 12\r\n- Notice the value of the amplitude is more than 4e+14 (should be comparable with the intensity in the Single-Electron Spectrum Report):\r\n![intensityreport](https://cloud.githubusercontent.com/assets/13209176/17189256/a3d205da-540e-11e6-8938-14c5d3be991b.png)\r\n- Change distance to 500 m in the Intensity Report and observe no change in the intensity value:\r\n![intensityreport_500m](https://cloud.githubusercontent.com/assets/13209176/17189311/f5cfd38a-540e-11e6-8470-04c064aaa8c4.png)\r\n"}}
{"actor":{"display_login":"mrakitin"}}