Author: Erik B Knudsen, Peter Christiansen and Peter Willendrup
Date: July 2011
Region with a tabled magnetic field read from file.
The magnetic field is read from a text file where it is
specified as a point cloud with N rows of 6 columns:
x y z Bx By Bz
the B field map is resampled with Stepx*Stepy*Stepz points.
Use Stepx=Stepy=Stepz=0 to skip resampling and use the table as is.
The regions itself may be either a 3D rectangular block, a cylinder with axis along y,
or spherical. Interpolation is done between data-points.
Parameters in boldface are required;
the others are optional.
Width of opening.
Height of opening.
Length of field.
Radius of field if it is cylindrical or spherical.
File where the magnetic field is tabulated.
default on GPU
[ ] Choice of interpolation method "kdtree" (default on CPU) / "regular"