Class PoissonSolverFFT3D#
Defined in File PoissonSolverFFT3D.hh
Inheritance Relationships#
Base Type#
public PoissonSolver3D(Class PoissonSolver3D)
Class Documentation#
-
class PoissonSolverFFT3D : public PoissonSolver3D#
The PoissonSolverFFT3D class calculates electrostatic potential of a 3D charge distribution using 3D FFT approach.
Public Functions
-
PoissonSolverFFT3D(int xSize, int ySize, int zSize)#
Constructor with sizes only
-
PoissonSolverFFT3D(int xSize, int ySize, int zSize, double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)#
Constructor wit sizes and limits
-
virtual ~PoissonSolverFFT3D()#
Destructor
-
void setNumberOfExternalBunches(int nBunches)#
Set number of bunches from both sides for space charge calculations
-
void setSpacingOfExternalBunches(double lambda)#
Set distance between external bunches - period
-
int getNumberOfExternalBunches()#
Get number of bunches from both sides for space charge calculations
-
double getSpacingOfExternalBunches()#
Get distance between bunches
-
virtual void setGridX(double xMin, double xMax)#
Sets x-grid. This method is virtual, because the setting of limits may involve some subclass specific actions.
-
virtual void setGridY(double yMin, double yMax)#
Sets y-grid. This method is virtual, because the setting of limits may involve some subclass specific actions.
-
virtual void setGridZ(double zMin, double zMax)#
Sets z-grid. This method is virtual, because the setting of limits may involve some subclass specific actions.
-
void setGridXYZ(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)#
-
void updateGreenFunction()#
Updates the Green function FFT
-
PoissonSolverFFT3D(int xSize, int ySize, int zSize)#