-
Notifications
You must be signed in to change notification settings - Fork 20
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
switchyard from elegant to opal z value #47
Comments
moellep
added a commit
that referenced
this issue
May 26, 2023
- when writing opal input distribution, center particles z at 0, for #47 - when extracting opal total_charge, get value from array, otherwise it appears in GENESIS file as "CHARGE = [...]" - use abs(total_charge) for GENESIS input file, GENESIS doesn't seem to support negative values?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use switchyard to convert output from an elegant sim to opal, it looks like the z value isn't what opal expects.
For example, using this elegant output file (from the Sirepo Los Alamos Proton Storage Ring example).
run_setup.output.sdds.gz
If I look at the first lines of opal.dat, the z value is around 139.36, rather than something closer to 0.
If I try to run an opal sim with that input file, it fails silently almost immediately. If I subtract the mean(z) from that value, it works OK, but that probably isn't the right thing to do.
The text was updated successfully, but these errors were encountered: