bpmsimulation/get_dipole_amp.c

Go to the documentation of this file.
00001 
00005 #include <bpm/bpm_messages.h>
00006 #include <bpm/bpm_simulation.h>
00007 #include <math.h>
00008 #include <bpm/bpm_nr.h>
00009 
00023 int get_dipole_amp( double bunchcharge, double bunchlength,
00024                     double pos, double possens,
00025                     double slope, double slopesens,
00026                     double tilt, double tiltsens,
00027                     complex_t *Amp ){
00028 
00029 
00030   Amp->re =        ( pos   * possens   ) * bunchcharge;
00031   Amp->im = (-1) * ( slope * slopesens ) * bunchcharge;
00032   //need to add the tilt
00033 
00034   return BPM_SUCCESS;
00035 }
00036 
00037 // end of file

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1