IMPACT T
Data Types | Functions/Subroutines | Variables
emfldclass Module Reference

This class contains discrete EM field data (as a function of x,y,z) or (r,z) and analytical representation of EM field data (user can supply the function form). The linear transfer map is also computed base on the field on the axis. More...

Data Types

type  emfld
 
interface  getparam_emfld
 
interface  setparam_emfld
 

Functions/Subroutines

subroutine construct_emfld (this, numseg, nmpstp, type, blength)
 
subroutine setparam1_emfld (this, i, value)
 
subroutine setparam2_emfld (this, values)
 
subroutine setparam3_emfld (this, numseg, nmpstp, type, blength)
 
subroutine getparam1_emfld (this, i, blparam)
 
subroutine getparam2_emfld (this, blparams)
 
subroutine getparam3_emfld (this, blength, bnseg, bmapstp, btype)
 
subroutine maplinear_emfld (t, tau, xm, this, refpt, Bchg, Bmass)
 
subroutine rk6i_emfld (h, ns, t, y, nvar, this, Bchg, Bmass)
 
subroutine intfunc1_emfld (t, y, f, this, Bchg, Bmass)
 
subroutine getaxflde_emfld (z, this, ez1, ezp1, ezpp1)
 interpolate the field from the EMfld rf cavity onto bunch location. More...
 
subroutine getaxfldefc_emfld (z, this, ez1, ezp1, ezpp1)
 get external RF field on axis from analytical function Here, we have used a Fouier expansion representation of external field. Users should supply the field function as they want. More...
 
subroutine getfld_emfld (pos, extfld, this)
 get external field Ex, Ey, Ez, Bx, Bx, Bz at given position x, y, z, t from analytical function. Here we have used Fourier expansion of function. The user should supply his own analytical function if needed. More...
 
subroutine getflderrold_emfld (pos, extfld, this)
 get external field with displacement and rotation errors. More...
 
subroutine getflderr_emfld (pos, extfld, this, dx, dy, anglex, angley,
 get external field with displacement and rotation errors. More...
 
subroutine getfld6_emfld (this, z, extfld6)
 get the discrete Er,Etheta,Ez, Br, Btheta, Bz as a function or "r" at given "z". More...
 
subroutine getfld6err_emfld (this, pos, extfld, dx, dy, anglex, angley,
 
subroutine getfld6xyz_emfld (this, z, extfld6xyz)
 get the discrete Ex,Ey,Ez, Bx, By, Bz as a function of x and y at given "z". More...
 
subroutine getfld6xyzerr_emfld (this, pos, extfld, dx, dy, anglex, angl
 

Variables

integer, parameter, private nparam = 13
 

Detailed Description

This class contains discrete EM field data (as a function of x,y,z) or (r,z) and analytical representation of EM field data (user can supply the function form). The linear transfer map is also computed base on the field on the axis.

Author
Ji Qiang

Data Type Documentation

◆ emfldclass::emfld

type emfldclass::emfld
Data Fields
integer itype
double precision length
integer mapstp
integer nseg
double precision, dimension(nparam) param

Function/Subroutine Documentation

◆ construct_emfld()

subroutine emfldclass::construct_emfld ( type (emfld), intent(out)  this,
integer, intent(in)  numseg,
integer, intent(in)  nmpstp,
integer, intent(in)  type,
double precision, intent(in)  blength 
)

◆ getaxflde_emfld()

subroutine emfldclass::getaxflde_emfld ( double precision, intent(in)  z,
type (emfld), intent(in)  this,
double precision, intent(out)  ez1,
double precision, intent(out)  ezp1,
double precision, intent(out)  ezpp1 
)

interpolate the field from the EMfld rf cavity onto bunch location.

Here is the caller graph for this function:

◆ getaxfldefc_emfld()

subroutine emfldclass::getaxfldefc_emfld ( double precision, intent(in)  z,
type (emfld), intent(in)  this,
double precision, intent(out)  ez1,
double precision, intent(out)  ezp1,
double precision, intent(out)  ezpp1 
)

get external RF field on axis from analytical function Here, we have used a Fouier expansion representation of external field. Users should supply the field function as they want.

Here is the caller graph for this function:

◆ getfld6_emfld()

subroutine emfldclass::getfld6_emfld ( type (emfld), intent(in)  this,
double precision, intent(in)  z,
  extfld6 
)

get the discrete Er,Etheta,Ez, Br, Btheta, Bz as a function or "r" at given "z".

◆ getfld6err_emfld()

subroutine emfldclass::getfld6err_emfld ( type (emfld), intent(in)  this,
double precision, dimension(4), intent(in)  pos,
double precision, dimension(6), intent(out)  extfld,
double precision, intent(in)  dx,
double precision, intent(in)  dy,
double precision, intent(in)  anglex,
double precision, intent(in)  angley 
)

◆ getfld6xyz_emfld()

subroutine emfldclass::getfld6xyz_emfld ( type (emfld), intent(in)  this,
double precision, intent(in)  z,
double precision, dimension(6,nxintvrfg+1,nyintvrfg+1), intent(out)  extfld6xyz 
)

get the discrete Ex,Ey,Ez, Bx, By, Bz as a function of x and y at given "z".

◆ getfld6xyzerr_emfld()

subroutine emfldclass::getfld6xyzerr_emfld ( type (emfld), intent(in)  this,
double precision, dimension(4), intent(in)  pos,
double precision, dimension(6), intent(out)  extfld,
double precision, intent(in)  dx,
double precision, intent(in)  dy,
double precision, intent(in)  anglex,
  angl 
)

◆ getfld_emfld()

subroutine emfldclass::getfld_emfld ( double precision, dimension(4), intent(in)  pos,
double precision, dimension(6), intent(out)  extfld,
type (emfld), intent(in)  this 
)

get external field Ex, Ey, Ez, Bx, Bx, Bz at given position x, y, z, t from analytical function. Here we have used Fourier expansion of function. The user should supply his own analytical function if needed.

Here is the caller graph for this function:

◆ getflderr_emfld()

subroutine emfldclass::getflderr_emfld ( double precision, dimension(4), intent(in)  pos,
double precision, dimension(6), intent(out)  extfld,
type (emfld), intent(in)  this,
double precision, intent(in)  dx,
double precision, intent(in)  dy,
double precision, intent(in)  anglex,
double precision, intent(in)  angley 
)

get external field with displacement and rotation errors.

Here is the caller graph for this function:

◆ getflderrold_emfld()

subroutine emfldclass::getflderrold_emfld ( double precision, dimension(4), intent(in)  pos,
double precision, dimension(6), intent(out)  extfld,
type (emfld), intent(in)  this 
)

get external field with displacement and rotation errors.

◆ getparam1_emfld()

subroutine emfldclass::getparam1_emfld ( type (emfld), intent(in)  this,
integer, intent(in)  i,
double precision, intent(out)  blparam 
)

◆ getparam2_emfld()

subroutine emfldclass::getparam2_emfld ( type (emfld), intent(in)  this,
double precision, dimension(:), intent(out)  blparams 
)

◆ getparam3_emfld()

subroutine emfldclass::getparam3_emfld ( type (emfld), intent(in)  this,
double precision, intent(out)  blength,
integer, intent(out)  bnseg,
integer, intent(out)  bmapstp,
integer, intent(out)  btype 
)

◆ intfunc1_emfld()

subroutine emfldclass::intfunc1_emfld ( double precision, intent(in)  t,
double precision, dimension(:), intent(in)  y,
double precision, dimension(:), intent(out)  f,
type (emfld), intent(in)  this,
double precision, intent(in)  Bchg,
double precision, intent(in)  Bmass 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ maplinear_emfld()

subroutine emfldclass::maplinear_emfld ( double precision, intent(in)  t,
double precision, intent(in)  tau,
double precision, dimension(6,6), intent(out)  xm,
type (emfld), intent(in)  this,
double precision, dimension(6), intent(inout)  refpt,
double precision, intent(in)  Bchg,
double precision, intent(in)  Bmass 
)
Here is the call graph for this function:

◆ rk6i_emfld()

subroutine emfldclass::rk6i_emfld ( double precision, intent(in)  h,
integer, intent(in)  ns,
double precision, intent(inout)  t,
double precision, dimension(nvar), intent(inout)  y,
integer, intent(in)  nvar,
type (emfld), intent(in)  this,
double precision, intent(in)  Bchg,
double precision, intent(in)  Bmass 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setparam1_emfld()

subroutine emfldclass::setparam1_emfld ( type (emfld), intent(inout)  this,
integer, intent(in)  i,
double precision, intent(in)  value 
)

◆ setparam2_emfld()

subroutine emfldclass::setparam2_emfld ( type (emfld), intent(inout)  this,
double precision, dimension(:), intent(in)  values 
)

◆ setparam3_emfld()

subroutine emfldclass::setparam3_emfld ( type (emfld), intent(inout)  this,
integer, intent(in)  numseg,
integer, intent(in)  nmpstp,
integer, intent(in)  type,
double precision, intent(in)  blength 
)

Variable Documentation

◆ nparam

integer, parameter, private emfldclass::nparam = 13
private