While investigating effects of space charge in presence of placements and field errors in accumulator ring lattice for long term tracking, I am encountering error message after few turns and the PyORBIT stops. The error messages are either
- SpaceChargeCalc2p5D::bunchAnalysis(bunch,...)
The bunch min and max sizes are wrong! Cannot calculate space charge!
x min =1.79769e+308 max=-1.79769e+308
y min =1.79769e+308 max=-1.79769e+308
z min =1.79769e+308 max=-1.79769e+308
Stop.
or
- Grid1D::getIndAndWZ Wrong z value. It should not happen. Stop.
The initial beam distribution used for tracking is KV in transverse and uniform in longitudinal plane . The errors in lattice elements are Gaussian with sigma values that are typical observed values in practice and no correction scheme is applied. No aperture restriction are applied in lattice. SpaceChargeCalc2p5D (no boundary) and LspaceChargeCalc are used for space charge calculations.
I could not understand whether the error message is due to some flaw in PyORBIT or something unusual is happening with beam distribution while tracking. I am attaching file I have used for tracking.
Lattice_and_other_files.zip