Short manual on how to use the field conversion code "Poisson_To_TRACK" on this page:
http://www.phy.anl.gov/atlas/TRACK/Trackv39/Windows/Field-Conversion/Poisson_To_TRACK/
I recommed that you use the full geometry in Poisson, not 1/2 or 1/4 assuming symmetry.
The lines in the input file "poisson_to_track.dat" are as follows:
(There is a short description in front of the input value on the same line)
line-1: Name of file to read = Poisson output file name
line-2: Input Field type: 0:E, 1:B. This is a flag to tell the code if the field
from Poisson is E or B. Later we'll add the possibility of combining two files
one for E and one for B to produce a single file for elements with both fields.
line-3: Input Field symmetry key in Z. This is in case the field files were
generated using given symmetries in Poisson otherwise set it to 0.
The possible values are
0: No symmetry in Z
1: Odd symmetry for the input field in the Z direction: F(-z) = -F(z).
2: Even symmetry for the input field in the Z direction: F(-z) = F(z).
But you better calculate the full geometry with Poisson and use 0 to avoid
confusion.
line-4: Track Field file number: 1,2,... This is the extension or the number "nn" of
the output file eh_EMS.#nn = TRACK input.
line-5: Track Field file format: 0, 1 or 2. Now we have only the binary format
available, that is 0. We'll add other formats later.
line-6: Track Field symmetry keys in X, Y & Z. If the geometry is symmetric we can take
advantage of that to have a finer field grid in TRACK. But you better use 0,0,0
to avoid confusion.
line-7: Element/Field length in cm. This is the field length in cm to consider in the
output file. This allows some flexibility to adjust the element length in TRACK.
line-8: Element/Field aperture in cm. This is the field aperture in cm to consider in the
output file. This allows some flexibility to adjust the element aperture in TRACK.
line-9: Electric field normalization for Emax=1. This is a scaling factor to normalize
the max E field to 1. The real field strength should be input in the
corresponding element line in the "sclinac.dat" file when runing TRACK.
line-10: Magnetic field normalization for Bmax=1. This is the same as line-9 but for
B field.
Please let me know if there is a problem with the code, or if you run into trouble when
using symmetries for the input or output field files.
This Example: A Solenoid field file generated by Poisson using Z symmetry.