IMPACT T
Data Types | Modules | Functions/Subroutines | Variables
Data.f90 File Reference

Data Types

type  dataclass::fielddata
 

Modules

module  dataclass
 This class stores the rf cavity data Ez, Ez', Ez'' on the axis; Fourier coefficients of Ez on the axis; Ez(r,z), Er(r,z), Htheta(r,z) on the r-z grid plane; and Ex(x,y,z), Ey(x,y,z), Ez(x,y,z), Bx(x,y,z), By(x,y,z), Bz(x,y,z) on uniform x, y, z grid, and Br(r,z) and Bz(r,z) on the r-z grid.
 

Functions/Subroutines

subroutine dataclass::init_data ()
 Initialize the data storage arrays. More...
 
subroutine dataclass::destruct_data ()
 
subroutine dataclass::read1_data (ifile)
 read in the discrete field data Ez(0,z), Ez'(0,z), Ez''(0,z) distribution along axis zdat from files "rfdatax or rfdataxx or rfdataxxx". More...
 
subroutine dataclass::read2_data (ifile)
 read in discrete Ez(r,z), Er(r,z) and Btheta(r,z) rf data from files "1Tx.T7 or 1Txx.T7 or 1Txxx.T7. Here, the grid is uniform in r and z. More...
 
subroutine dataclass::read3_data (ifile)
 readin the Fourier coefficients of the RF field from files "rfdatax or rfdataxx or rfdataxxx". More...
 
subroutine dataclass::read4_data (ifile)
 read in discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z), Bx(x,y,z), By(x,y,z), Bz(x,y,z) rf data from files "1Tx.T7 or 1Txx.T7 or 1Txxx.T7. Here, the grid is uniform in x, y and z. More...
 
subroutine dataclass::initt_data (this)
 
subroutine dataclass::destructt_data (this)
 
subroutine dataclass::read1t_data (this, ifile)
 readin the Fourier coefficients of the RF field from files "rfdatax or rfdataxx or rfdataxxx". More...
 
subroutine dataclass::read1tdata_data (this, ifile)
 readin the Fourier coefficients of the RF field from files "rfdatax or rfdataxx or rfdataxxx". More...
 
subroutine dataclass::read2t_data (this, ifile)
 read in discrete Ez(r,z), Er(r,z) and Btheta(r,z) rf data from files "1Tx.T7 or 1Txx.T7 or 1Txxx.T7. Here, the grid is uniform in r and z. More...
 
subroutine dataclass::read4t_data (this, ifile)
 read in analytical function coefficients of Ex(x,y,z), Ey(x,y,z), Ez(x,y,z), Bx(x,y,z), By(x,y,z), Bz(x,y,z) rf data from "rfdatax or rfdataxx or rfdataxxx". More...
 
subroutine dataclass::read2tsol_data (this, ifile)
 read in discrete Bz(r,z), Br(r,z) data from files "1Tx.T7 or 1Txx.T7 or 1Txxx.T7 for solenoid. Here, the grid is uniform in r and z. More...
 
subroutine dataclass::read3t_data (this, ifile)
 read in discrete complex Ex(x,y,z), Ey(x,y,z), Ez(x,y,z), Bx(x,y,z), By(x,y,z), Bz(x,y,z) rf data from files "1Tx.T7 or 1Txx.T7 or 1Txxx.T7. Here, the grid is uniform in x, y and z. This field can be used to model the traveling wave structure More...
 

Variables

integer dataclass::ndata
 practical number of grid data on the axis or Fourier coefficients. More...
 

using the x-y-z field data (Ex,Ey,Ez,Bx,By,Bz) directly.

integer dataclass::nxintvrfg = 1
 number of grid points along x, y, and z direction. More...
 
integer dataclass::nyintvrfg = 1
 number of grid points along x, y, and z direction. More...
 
integer dataclass::nzintvrfg = 1
 number of grid points along x, y, and z direction. More...
 
double precision dataclass::xmaxrfg
 range in x, y, and zdirections. More...
 
double precision dataclass::xminrfg
 range in x, y, and zdirections. More...
 
double precision dataclass::ymaxrfg
 range in x, y, and zdirections. More...
 
double precision dataclass::yminrfg
 range in x, y, and zdirections. More...
 
double precision dataclass::zmaxrfg
 range in x, y, and zdirections. More...
 
double precision dataclass::zmin
 range in x, y, and zdirections. More...
 
double precision, dimension(:,:,:), allocatable dataclass::exgrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 
double precision, dimension(:,:,:), allocatable dataclass::eygrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 
double precision, dimension(:,:,:), allocatable dataclass::ezgrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 
double precision, dimension(:,:,:), allocatable dataclass::bxgrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 
double precision, dimension(:,:,:), allocatable dataclass::bygrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 
double precision, dimension(:,:,:), allocatable dataclass::bzgrid
 discrete Ex(x,y,z), Ey(x,y,z), Ez(x,y,z) and Bx(x,y,z), By(x,y,z), and Bz(x,y,z) rf data. Here, the grid is uniform in x, y and z. More...
 

using the r-z field data (Er,Ez,Htheta) directly.

integer dataclass::nrintvrf = 1
 number of grid points along r direction. More...
 
integer dataclass::nzintvrf = 1
 number of grid points along z direction. More...
 
double precision dataclass::rmaxrf
 range in r and z directions. More...
 
double precision dataclass::rminrf
 range in r and z directions. More...
 
double precision dataclass::zmaxrf
 range in r and z directions. More...
 
double precision dataclass::zminrf
 range in r and z directions. More...
 
double precision, dimension(:,:), allocatable dataclass::ezdata
 discrete Ez(r,z), Er(r,z) and Htheta(r,z) rf data. Here, the grid is uniform in r and z. More...
 
double precision, dimension(:,:), allocatable dataclass::erdata
 discrete Ez(r,z), Er(r,z) and Htheta(r,z) rf data. Here, the grid is uniform in r and z. More...
 
double precision, dimension(:,:), allocatable dataclass::btdata
 discrete Ez(r,z), Er(r,z) and Htheta(r,z) rf data. Here, the grid is uniform in r and z. More...
 

using only on-axis field data and its derivities.

integer, parameter dataclass::ndataini = 5000
 initial number of grid points on the axis. More...
 
double precision, dimension(ndataini) dataclass::zdat
 discrete Ez(0,z), Ez'(0,z), Ez''(0,z) rf data. More...
 
double precision, dimension(ndataini) dataclass::edat
 discrete Ez(0,z), Ez'(0,z), Ez''(0,z) rf data. More...
 
double precision, dimension(ndataini) dataclass::epdat
 discrete Ez(0,z), Ez'(0,z), Ez''(0,z) rf data. More...
 
double precision, dimension(ndataini) dataclass::eppdat
 discrete Ez(0,z), Ez'(0,z), Ez''(0,z) rf data. More...
 

using the Fourier coefficients

double precision, dimension(ncoeff) dataclass::fcoef
 
integer, parameter dataclass::ncoeff = 401
 number of Fourier expansion coefficients. More...
 

Data Type Documentation

◆ dataclass::fielddata

type dataclass::fielddata
Data Fields
double precision, dimension(:,:), pointer brdatat discrete Ezt(r,z,i), Ert(r,z,i) and Btheta(r,z,i) rf data. Here, the grid is uniform in r and z.
double precision, dimension(:,:), pointer btdatat discrete Ezt(r,z,i), Ert(r,z,i) and Btheta(r,z,i) rf data. Here, the grid is uniform in r and z.
double complex, dimension(:,:,:), pointer bxgridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double complex, dimension(:,:,:), pointer bygridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double precision, dimension(:,:), pointer bzdatat discrete Ezt(r,z,i), Ert(r,z,i) and Btheta(r,z,i) rf data. Here, the grid is uniform in r and z.
double complex, dimension(:,:,:), pointer bzgridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double precision, dimension(:), pointer coefbx coefficients for analytical function description of the rf data.
double precision, dimension(:), pointer coefby coefficients for analytical function description of the rf data.
double precision, dimension(:), pointer coefbz coefficients for analytical function description of the rf data.
double precision, dimension(:), pointer coefex coefficients for analytical function description of the rf data.
double precision, dimension(:), pointer coefey coefficients for analytical function description of the rf data.
double precision, dimension(:), pointer coefez coefficients for analytical function description of the rf data.
double precision, dimension(:,:), pointer erdatat discrete Ezt(r,z,i), Ert(r,z,i) and Btheta(r,z,i) rf data. Here, the grid is uniform in r and z.
double complex, dimension(:,:,:), pointer exgridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double complex, dimension(:,:,:), pointer eygridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double precision, dimension(:,:), pointer ezdatat discrete Ezt(r,z,i), Ert(r,z,i) and Btheta(r,z,i) rf data. Here, the grid is uniform in r and z.
double complex, dimension(:,:,:), pointer ezgridt discrete Ex(x,y,z,i), Ey(x,y,z,i), Ez(x,y,z,i) and Bx(x,y,z,i), By(x,y,z,i), and Bz(x,y,z,i) rf data. Here, the grid is uniform in x, y and z.
double precision, dimension(401) fcoeft practical number of grid data on the axis or Fourier coefficients.
double precision, dimension(4, 10002) fcoeftdata here, maximum data point is 5000 for E field or B field.
integer ncbx number of coefficients in Bx.
integer ncby number of coefficients in By.
integer ncbz number of coefficients in Bz.
integer ncex number of coefficients in Ex.
integer ncey number of coefficients in Ey.
integer ncez number of coefficients in Ez.
integer ndatat
integer nrintvrft number of grid points along r direction.
integer nxintvrfgt number of grid points along x, y, and z direction.
integer nyintvrfgt number of grid points along x, y, and z direction.
integer nzintvrfgt number of grid points along x, y, and z direction.
integer nzintvrft number of grid points along z direction.
double precision rmaxrft range in r and z directions.
double precision rminrft range in r and z directions.
double precision xmaxrfgt range in x, y, and zdirections.
double precision xminrfgt range in x, y, and zdirections.
double precision ymaxrfgt range in x, y, and zdirections.
double precision yminrfgt range in x, y, and zdirections.
double precision zmaxrfgt range in x, y, and zdirections.
double precision zmaxrft range in r and z directions.
double precision zminrfgt range in x, y, and zdirections.
double precision zminrft range in r and z directions.