Programs to define time-dependent voltages or magnetic fields or near-axis electric fields

 

There are two programs for use with CPO2D and CPO3D respectively. These programs are automatically linked (by means of dll files) to CPO2D or CPO3D when the relevant option is called in databuilder (for example when a user-supplied time-dependent voltage is specified.


The 2D program is time2d.cpp and deals only with time-dependent voltages. 

The 3D program is user3d.cpp and deals with three types of user-supplied information: time-dependent voltages, magnetic fields and near-axis electric fields.


These programs are supplied with the CPO packages. Read-only versions are also supplied, called tim2copy.cpp and use3copy.cpp. If the programs are changed then new dll files would have to be created -see the instructions given for the scattering routine.

 

When time-dependent voltages are being used these programs read data from files called time2d.dat and time3d.dat respectively which are also supplied with the CPO packages. Read-only versions are also supplied, called tim2copy.dat and tim3copy.dat.