OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <OpalData.h>
Public Types | |
enum | UnitState_t { units = 0, unitless = 1 } |
typedef AbstractParticle< T, Dim >::ParticlePos_t | ParticlePos_t |
typedef AbstractParticle< T, Dim >::ParticleIndex_t | ParticleIndex_t |
typedef AbstractParticle< T, Dim >::UpdateFlags | UpdateFlags_t |
typedef AbstractParticle< T, Dim >::Position_t | Position_t |
typedef std::pair< Vector_t, Vector_t > | VectorPair_t |
Public Member Functions | |
PartBunchBase (AbstractParticle< T, Dim > *pb) | |
virtual | ~PartBunchBase () |
PartBunchBase (AbstractParticle< T, Dim > *pb, const PartData *ref) | |
PartBunchBase (const PartBunchBase &rhs)=delete | |
virtual void | initialize (FieldLayout_t *fLayout)=0 |
bool | getIfBeamEmitting () |
int | getLastEmittedEnergyBin () |
size_t | getNumberOfEmissionSteps () |
int | getNumberOfEnergyBins () |
void | Rebin () |
void | setEnergyBins (int numberOfEnergyBins) |
bool | weHaveEnergyBins () |
void | switchToUnitlessPositions (bool use_dt_per_particle=false) |
void | switchOffUnitlessPositions (bool use_dt_per_particle=false) |
void | setDistribution (Distribution *d, std::vector< Distribution * > addedDistributions, size_t &np) |
bool | isGridFixed () |
bool | hasBinning () |
void | setTEmission (double t) |
double | getTEmission () |
bool | doEmission () |
bool | weHaveBins () const |
void | setPBins (PartBins *pbin) |
void | setPBins (PartBinsCyc *pbin) |
size_t | emitParticles (double eZ) |
Emit particles in the given bin i.e. copy the particles from the bin structure into the particle container. More... | |
void | updateNumTotal () |
void | rebin () |
int | getNumBins () |
int | getLastemittedBin () |
void | setLocalBinCount (size_t num, int bin) |
void | calcGammas () |
Compute the gammas of all bins. More... | |
void | calcGammas_cycl () |
double | getBinGamma (int bin) |
Get gamma of one bin. More... | |
virtual void | setBinCharge (int bin, double q) |
Set the charge of one bin to the value of q and all other to zero. More... | |
virtual void | setBinCharge (int bin) |
Set the charge of all other the ones in bin to zero. More... | |
size_t | calcNumPartsOutside (Vector_t x) |
returns the number of particles outside of a box defined by x More... | |
void | calcLineDensity (unsigned int nBins, std::vector< double > &lineDensity, std::pair< double, double > &meshInfo) |
calculates the 1d line density (not normalized) and append it to a file. More... | |
void | setBeamFrequency (double v) |
virtual void | boundp () |
void | boundp_destroy () |
size_t | boundp_destroyT () |
size_t | destroyT () |
virtual double | getPx (int i) |
virtual double | getPy (int i) |
virtual double | getPz (int i) |
virtual double | getPx0 (int i) |
virtual double | getPy0 (int i) |
virtual double | getX (int i) |
virtual double | getY (int i) |
virtual double | getZ (int i) |
virtual double | getX0 (int i) |
virtual double | getY0 (int i) |
virtual void | setZ (int i, double zcoo) |
void | get_bounds (Vector_t &rmin, Vector_t &rmax) |
void | getLocalBounds (Vector_t &rmin, Vector_t &rmax) |
std::pair< Vector_t, double > | getBoundingSphere () |
std::pair< Vector_t, double > | getLocalBoundingSphere () |
void | push_back (OpalParticle p) |
void | set_part (FVector< double, 6 > z, int ii) |
void | set_part (OpalParticle p, int ii) |
OpalParticle | get_part (int ii) |
void | maximumAmplitudes (const FMatrix< double, 6, 6 > &D, double &axmax, double &aymax) |
Return maximum amplitudes. More... | |
void | setdT (double dt) |
double | getdT () const |
void | setT (double t) |
void | incrementT () |
double | getT () const |
double | get_sPos () |
void | set_sPos (double s) |
double | get_gamma () const |
double | get_meanKineticEnergy () const |
Vector_t | get_origin () const |
Vector_t | get_maxExtent () const |
Vector_t | get_centroid () const |
Vector_t | get_rrms () const |
Vector_t | get_rprms () const |
Vector_t | get_rmean () const |
Vector_t | get_prms () const |
Vector_t | get_pmean () const |
Vector_t | get_pmean_Distribution () const |
Vector_t | get_emit () const |
Vector_t | get_norm_emit () const |
Vector_t | get_halo () const |
virtual Vector_t | get_hr () const |
double | get_Dx () const |
double | get_Dy () const |
double | get_DDx () const |
double | get_DDy () const |
virtual void | set_meshEnlargement (double dh) |
void | gatherLoadBalanceStatistics () |
size_t | getLoadBalance (int p) const |
void | get_PBounds (Vector_t &min, Vector_t &max) const |
void | calcBeamParameters () |
void | calcBeamParametersInitial () |
double | getCouplingConstant () const |
void | setCouplingConstant (double c) |
void | setCharge (double q) |
void | setChargeZeroPart (double q) |
void | setMass (double mass) |
double | getEkin () const |
Need Ek for the Schottky effect calculation (eV) More... | |
double | getWorkFunctionRf () const |
Need the work function for the Schottky effect calculation (eV) More... | |
double | getLaserEnergy () const |
Need the laser energy for the Schottky effect calculation (eV) More... | |
double | getCharge () const |
get the total charge per simulation particle More... | |
double | getChargePerParticle () const |
get the macro particle charge More... | |
virtual void | setSolver (FieldSolver *fs) |
bool | hasFieldSolver () |
std::string | getFieldSolverType () const |
Return the fieldsolver type if we have a fieldsolver. More... | |
void | setStepsPerTurn (int n) |
int | getStepsPerTurn () const |
void | setGlobalTrackStep (long long n) |
step in multiple TRACK commands More... | |
long long | getGlobalTrackStep () const |
void | setLocalTrackStep (long long n) |
step in a TRACK command More... | |
void | incTrackSteps () |
long long | getLocalTrackStep () const |
void | setNumBunch (short n) |
short | getNumBunch () const |
void | setTotalNumPerBunch (size_t numpart, short n) |
size_t | getTotalNumPerBunch (short n) const |
void | setLocalNumPerBunch (size_t numpart, short n) |
size_t | getLocalNumPerBunch (short n) const |
void | countTotalNumPerBunch () |
void | setGlobalMeanR (Vector_t globalMeanR) |
Vector_t | getGlobalMeanR () |
void | setGlobalToLocalQuaternion (Quaternion_t globalToLocalQuaternion) |
Quaternion_t | getGlobalToLocalQuaternion () |
void | setSteptoLastInj (int n) |
int | getSteptoLastInj () |
double | calcMeanPhi () |
calculate average angle of longitudinal direction of bins More... | |
bool | resetPartBinID2 (const double eta) |
reset Bin[] for each particle according to the method given in paper PAST-AB(064402) by G. Fubiani et al. More... | |
bool | resetPartBinBunch () |
double | getdE () |
virtual double | getGamma (int i) |
virtual double | getBeta (int i) |
virtual void | actT () |
const PartData * | getReference () const |
double | getEmissionDeltaT () |
Quaternion_t | getQKs3D () |
void | setQKs3D (Quaternion_t q) |
Vector_t | getKs3DRefr () |
void | setKs3DRefr (Vector_t r) |
Vector_t | getKs3DRefp () |
void | setKs3DRefp (Vector_t p) |
void | iterateEmittedBin (int binNumber) |
void | calcEMean () |
void | correctEnergy (double avrgp) |
Inform & | print (Inform &os) |
virtual void | runTests () |
virtual void | do_binaryRepart () |
virtual void | resetInterpolationCache (bool clearCache=false) |
virtual VectorPair_t | getEExtrema ()=0 |
calculates back the max/min of the efield on the grid More... | |
virtual double | getRho (int x, int y, int z)=0 |
virtual void | computeSelfFields ()=0 |
virtual void | computeSelfFields (int bin)=0 |
virtual void | computeSelfFields_cycl (double gamma)=0 |
virtual void | computeSelfFields_cycl (int bin)=0 |
virtual void | swap (unsigned int i, unsigned int j) |
virtual void | setBCAllPeriodic () |
virtual void | setBCAllOpen () |
virtual void | setBCForDCBeam () |
virtual FieldLayout_t & | getFieldLayout ()=0 |
size_t | getTotalNum () const |
void | setTotalNum (size_t n) |
void | setLocalNum (size_t n) |
size_t | getLocalNum () const |
size_t | getDestroyNum () const |
size_t | getGhostNum () const |
unsigned int | getMinimumNumberOfParticlesPerCore () const |
void | setMinimumNumberOfParticlesPerCore (unsigned int n) |
ParticleLayout< T, Dim > & | getLayout () |
const ParticleLayout< T, Dim > & | getLayout () const |
bool | getUpdateFlag (UpdateFlags_t f) const |
void | setUpdateFlag (UpdateFlags_t f, bool val) |
ParticleBConds< Position_t, Dimension > & | getBConds () |
void | setBConds (const ParticleBConds< Position_t, Dimension > &bc) |
bool | singleInitNode () const |
void | resetID () |
void | update () |
void | update (const ParticleAttrib< char > &canSwap) |
void | createWithID (unsigned id) |
void | create (size_t M) |
void | globalCreate (size_t np) |
void | destroy (size_t M, size_t I, bool doNow=false) |
void | performDestroy (bool updateLocalNum=false) |
void | ghostDestroy (size_t M, size_t I) |
FMatrix< double, 2 *Dim, 2 *Dim > | getSigmaMatrix () |
double | getQ () const |
Access to reference data. More... | |
double | getM () const |
double | getP () const |
double | getE () const |
ParticleType::type | getPType () const |
double | getInitialBeta () const |
double | getInitialGamma () const |
void | resetQ (double q) |
void | resetM (double m) |
void | setPType (ParticleType::type) |
Static Public Attributes | |
static const unsigned | Dimension = Dim |
Protected Member Functions | |
size_t | calcMoments () |
void | calcMomentsInitial () |
double | calculateAngle (double x, double y) |
angle range [0~2PI) degree More... | |
Protected Attributes | |
IpplTimings::TimerRef | boundpTimer_m |
IpplTimings::TimerRef | boundpBoundsTimer_m |
IpplTimings::TimerRef | boundpUpdateTimer_m |
IpplTimings::TimerRef | statParamTimer_m |
IpplTimings::TimerRef | histoTimer_m |
const PartData * | reference |
UnitState_t | unit_state_ |
UnitState_t | stateOfLastBoundP_ |
double | centroid_m [2 *Dim] |
holds the centroid of the beam More... | |
FMatrix< double, 2 *Dim, 2 *Dim > | moments_m |
6x6 matrix of the moments of the beam More... | |
double | dt_m |
holds the timestep in seconds More... | |
double | t_m |
holds the actual time of the integration More... | |
double | eKin_m |
mean energy of the bunch (MeV) More... | |
double | dE_m |
energy spread of the beam in MeV More... | |
double | spos_m |
the position along design trajectory More... | |
Vector_t | globalMeanR_m |
Quaternion_t | globalToLocalQuaternion_m |
Vector_t | rmax_m |
maximal extend of particles More... | |
Vector_t | rmin_m |
minimal extend of particles More... | |
Vector_t | rrms_m |
rms beam size (m) More... | |
Vector_t | prms_m |
rms momenta More... | |
Vector_t | rmean_m |
mean position (m) More... | |
Vector_t | pmean_m |
mean momenta More... | |
Vector_t | eps_m |
rms emittance (not normalized) More... | |
Vector_t | eps_norm_m |
rms normalized emittance More... | |
Vector_t | halo_m |
Vector_t | rprms_m |
rms correlation More... | |
double | Dx_m |
dispersion x & y More... | |
double | Dy_m |
double | DDx_m |
derivative of the dispersion More... | |
double | DDy_m |
Vector_t | hr_m |
meshspacing of cartesian mesh More... | |
Vektor< int, 3 > | nr_m |
meshsize of cartesian mesh More... | |
FieldSolver * | fs_m |
stores the used field solver More... | |
double | couplingConstant_m |
double | qi_m |
int | distDump_m |
counter to store the distribution dump More... | |
int | fieldDBGStep_m |
double | dh_m |
Mesh enlargement. More... | |
double | tEmission_m |
in % how much the mesh is enlarged More... | |
std::unique_ptr< double[]> | bingamma_m |
holds the gamma of the bin More... | |
std::unique_ptr< size_t[]> | binemitted_m |
int | stepsPerTurn_m |
steps per turn for OPAL-cycl More... | |
long long | localTrackStep_m |
step in a TRACK command More... | |
long long | globalTrackStep_m |
if multiple TRACK commands More... | |
short | numBunch_m |
current bunch number More... | |
std::vector< size_t > | bunchTotalNum_m |
number of particles per bunch More... | |
std::vector< size_t > | bunchLocalNum_m |
int | SteptoLastInj_m |
std::unique_ptr< size_t[]> | globalPartPerNode_m |
Distribution * | dist_m |
bool | dcBeam_m |
double | periodLength_m |
std::shared_ptr < AbstractParticle< T, Dim > > | pbase |
Private Member Functions | |
virtual void | updateDomainLength (Vektor< int, 3 > &grid)=0 |
virtual void | updateFields (const Vector_t &hr, const Vector_t &origin) |
void | setup (AbstractParticle< T, Dim > *pb) |
Class: DataSink.
This class acts as an observer during the calculation. It generates diagnostic output of the accelerated beam such as statistical beam descriptors of particle positions, momenta, beam phase space (emittance) etc. These are written to file at periodic time steps during the calculation.
This class also writes the full beam phase space to an H5 file at periodic time steps in the calculation (this period is different from that of the statistical numbers).
Class also writes processor load balancing data to file to track parallel calculation efficiency.
Definition at line 29 of file OpalData.h.
typedef AbstractParticle<T, Dim>::ParticleIndex_t PartBunchBase< T, Dim >::ParticleIndex_t |
Definition at line 33 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::ParticlePos_t PartBunchBase< T, Dim >::ParticlePos_t |
Definition at line 32 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::Position_t PartBunchBase< T, Dim >::Position_t |
Definition at line 35 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::UpdateFlags PartBunchBase< T, Dim >::UpdateFlags_t |
Definition at line 34 of file PartBunchBase.h.
typedef std::pair<Vector_t, Vector_t> PartBunchBase< T, Dim >::VectorPair_t |
Definition at line 37 of file PartBunchBase.h.
enum PartBunchBase::UnitState_t |
Enumerator | |
---|---|
units | |
unitless |
Definition at line 41 of file PartBunchBase.h.
|
explicit |
Definition at line 18 of file PartBunchBase.hpp.
References Options::asciidump, PartBunchBase< T, Dim >::boundpBoundsTimer_m, PartBunchBase< T, Dim >::boundpTimer_m, PartBunchBase< T, Dim >::boundpUpdateTimer_m, PartBunchBase< T, Dim >::distrCreate_m, PartBunchBase< T, Dim >::distrReload_m, IpplInfo::getNodes(), IpplTimings::getTimer(), PartBunchBase< T, Dim >::globalPartPerNode_m, PartBunchBase< T, Dim >::histoTimer_m, PartBunchBase< T, Dim >::lossDs_m, PartBunchBase< T, Dim >::pmsg_m, PartBunchBase< T, Dim >::selfFieldTimer_m, PartBunchBase< T, Dim >::setup(), and PartBunchBase< T, Dim >::statParamTimer_m.
|
inlinevirtual |
Definition at line 47 of file PartBunchBase.h.
PartBunchBase< T, Dim >::PartBunchBase | ( | AbstractParticle< T, Dim > * | pb, |
const PartData * | ref | ||
) |
Definition at line 108 of file PartBunchBase.hpp.
References Hypervolume::ref, and PartBunchBase< T, Dim >::reference.
|
delete |
|
virtual |
Definition at line 1841 of file PartBunchBase.hpp.
Referenced by RFCavity::addKT().
|
virtual |
In case of dcBeam_m && hr_m < 0 this is the first call to boundp and we have to set hr completely i.e. x,y and z.
Reimplemented in AmrPartBunch.
Definition at line 537 of file PartBunchBase.hpp.
References abs(), Physics::e, endl(), level1(), max(), Attrib::Distribution::R, IpplTimings::startTimer(), IpplTimings::stopTimer(), sum(), and WARNMSG.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), ParallelCyclotronTracker::deleteParticle(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), and MultiBunchHandler::readBunch().
void PartBunchBase< T, Dim >::boundp_destroy | ( | ) |
delete particles which are too far away from the center of beam
Definition at line 622 of file PartBunchBase.hpp.
References abs(), INFORM_ALL_NODES, Attrib::Distribution::R, Options::remotePartDel, IpplTimings::startTimer(), and IpplTimings::stopTimer().
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
size_t PartBunchBase< T, Dim >::boundp_destroyT | ( | ) |
This is only temporary in order to get the collimator and pepperpot working
Definition at line 731 of file PartBunchBase.hpp.
References endl(), INFORM_ALL_NODES, level3(), ne(), and reduce().
Referenced by ParallelTTracker::computeExternalFields().
void PartBunchBase< T, Dim >::calcBeamParameters | ( | ) |
Definition at line 1259 of file PartBunchBase.hpp.
References allreduce(), Dim, dot(), OpalData::getInstance(), max(), pow(), sqrt(), IpplTimings::startTimer(), and IpplTimings::stopTimer().
Referenced by GreenWakeFunction::apply(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), ParallelCyclotronTracker::deleteParticle(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::initDistInGlobalFrame(), MultiBunchHandler::injectBunch(), TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), P3MPoissonSolver::test(), ThickTracker::update_m(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
void PartBunchBase< T, Dim >::calcBeamParametersInitial | ( | ) |
Definition at line 1346 of file PartBunchBase.hpp.
References Physics::c, Dim, max(), IpplInfo::myNode(), and sqrt().
Referenced by TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::calcEMean | ( | ) |
Definition at line 1866 of file PartBunchBase.hpp.
References dot(), reduce(), and sqrt().
Referenced by ParallelTTracker::dumpStats(), Distribution::injectBeam(), and ThickTracker::update_m().
void PartBunchBase< T, Dim >::calcGammas | ( | ) |
Compute the gammas of all bins.
Definition at line 371 of file PartBunchBase.hpp.
References abs(), dot(), endl(), ERRORMSG, OpalData::getInstance(), INFOMSG, level2(), Hypervolume::n, reduce(), and sqrt().
Referenced by ParallelTTracker::computeSpaceChargeFields().
void PartBunchBase< T, Dim >::calcGammas_cycl | ( | ) |
Definition at line 418 of file PartBunchBase.hpp.
References allreduce(), dot(), endl(), INFOMSG, Hypervolume::n, and sqrt().
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
void PartBunchBase< T, Dim >::calcLineDensity | ( | unsigned int | nBins, |
std::vector< double > & | lineDensity, | ||
std::pair< double, double > & | meshInfo | ||
) |
calculates the 1d line density (not normalized) and append it to a file.
DETAILED TODO
Definition at line 496 of file PartBunchBase.hpp.
References Attrib::Distribution::R, and reduce().
Referenced by GreenWakeFunction::apply(), CSRIGFWakeFunction::calculateLineDensity(), and CSRWakeFunction::calculateLineDensity().
double PartBunchBase< T, Dim >::calcMeanPhi | ( | ) |
calculate average angle of longitudinal direction of bins
Definition at line 1651 of file PartBunchBase.hpp.
References endl(), INFOMSG, Physics::pi, and reduce().
|
protected |
Definition at line 1943 of file PartBunchBase.hpp.
References allreduce(), Dim, OpalData::getInstance(), Options::haloShift, and Attrib::Distribution::R.
|
protected |
Definition at line 2057 of file PartBunchBase.hpp.
References Dim.
size_t PartBunchBase< T, Dim >::calcNumPartsOutside | ( | Vector_t | x | ) |
returns the number of particles outside of a box defined by x
Definition at line 463 of file PartBunchBase.hpp.
References abs(), gather(), IpplInfo::getNodes(), and Attrib::Distribution::R.
Referenced by StatWriter::write().
|
protected |
angle range [0~2PI) degree
Definition at line 2101 of file PartBunchBase.hpp.
References atan2(), and Physics::two_pi.
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by ParallelTTracker::computeSpaceChargeFields().
|
pure virtual |
/brief used for self fields with binned distribution
Implemented in PartBunch, and AmrPartBunch.
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
void PartBunchBase< T, Dim >::correctEnergy | ( | double | avrgp | ) |
Definition at line 1887 of file PartBunchBase.hpp.
References dot(), reduce(), and sqrt().
void PartBunchBase< T, Dim >::countTotalNumPerBunch | ( | ) |
Definition at line 1588 of file PartBunchBase.hpp.
References allreduce(), and PAssert_LT.
Referenced by ParallelCyclotronTracker::initDistInGlobalFrame().
void PartBunchBase< T, Dim >::create | ( | size_t | M | ) |
Definition at line 2319 of file PartBunchBase.hpp.
Referenced by Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Stripper::doCheck(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), SecondaryEmissionPhysics::nSec(), and MultiBunchHandler::readBunch().
void PartBunchBase< T, Dim >::createWithID | ( | unsigned | id | ) |
Definition at line 2314 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::addBackToBunch().
void PartBunchBase< T, Dim >::destroy | ( | size_t | M, |
size_t | I, | ||
bool | doNow = false |
||
) |
Definition at line 2329 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), and ParallelTTracker::evenlyDistributeParticles().
size_t PartBunchBase< T, Dim >::destroyT | ( | ) |
Definition at line 789 of file PartBunchBase.hpp.
References INFORM_ALL_NODES, ne(), and reduce().
Referenced by ParallelTTracker::computeExternalFields().
|
virtual |
Reimplemented in PartBunch, and AmrPartBunch.
Definition at line 241 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::doBinaryRepartition(), and ParallelCyclotronTracker::repartition().
bool PartBunchBase< T, Dim >::doEmission | ( | ) |
Definition at line 288 of file PartBunchBase.hpp.
Referenced by ParallelSliceTracker::execute(), and ParallelTTracker::prepareEmission().
size_t PartBunchBase< T, Dim >::emitParticles | ( | double | eZ | ) |
Emit particles in the given bin i.e. copy the particles from the bin structure into the particle container.
Definition at line 322 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::emitParticles().
void PartBunchBase< T, Dim >::gatherLoadBalanceStatistics | ( | ) |
Definition at line 1236 of file PartBunchBase.hpp.
References gather(), and IpplInfo::getNodes().
Referenced by LBalWriter::write(), and StatWriter::write().
void PartBunchBase< T, Dim >::get_bounds | ( | Vector_t & | rmin, |
Vector_t & | rmax | ||
) |
Definition at line 918 of file PartBunchBase.hpp.
References allreduce(), Dim, and min().
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), GreenWakeFunction::apply(), BeamStripping::checkBeamStripping(), ParallelTTracker::computeExternalFields(), CCollimator::doFinaliseCheck(), Septum::doPreCheck(), Stripper::doPreCheck(), Probe::doPreCheck(), CCollimator::doPreCheck(), ThickTracker::dump_m(), ParallelTTracker::execute(), and ParallelTTracker::writePhaseSpace().
Vector_t PartBunchBase< T, Dim >::get_centroid | ( | ) | const |
Definition at line 1136 of file PartBunchBase.hpp.
Referenced by Ring::apply(), ParallelTTracker::computeSpaceChargeFields(), MultiBunchHandler::injectBunch(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_DDx | ( | ) | const |
Definition at line 1218 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_DDy | ( | ) | const |
Definition at line 1224 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_Dx | ( | ) | const |
Definition at line 1206 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_Dy | ( | ) | const |
Definition at line 1212 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_emit | ( | ) | const |
Definition at line 1182 of file PartBunchBase.hpp.
Referenced by H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_gamma | ( | ) | const |
Definition at line 1112 of file PartBunchBase.hpp.
References Physics::e.
Referenced by ThickTracker::update_m(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_halo | ( | ) | const |
Definition at line 1194 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
|
virtual |
Reimplemented in AmrPartBunch.
Definition at line 1200 of file PartBunchBase.hpp.
Referenced by H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
Vector_t PartBunchBase< T, Dim >::get_maxExtent | ( | ) | const |
Definition at line 1130 of file PartBunchBase.hpp.
Referenced by StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
double PartBunchBase< T, Dim >::get_meanKineticEnergy | ( | ) | const |
Definition at line 1118 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), CSRIGFWakeFunction::calculateGreenFunction(), ParallelTTracker::dumpStats(), Expressions::getEkin(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_norm_emit | ( | ) | const |
Definition at line 1188 of file PartBunchBase.hpp.
Referenced by StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_origin | ( | ) | const |
Definition at line 1124 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::stillAlive(), H5PartWrapperForPT::writeStepData(), H5PartWrapperForPC::writeStepData(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
OpalParticle PartBunchBase< T, Dim >::get_part | ( | int | ii | ) |
Definition at line 1028 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by ThinTracker::applyDrift(), Tracker::applyDrift(), Tracker::applyTransform(), TrackSave::execute(), MapIntegrator::trackBunch(), MPSplitIntegrator::trackBunch(), ThinTracker::visitBeamBeam(), ThinTracker::visitCorrector(), ThinTracker::visitRBend(), ThinTracker::visitRFCavity(), ThinTracker::visitSBend(), ThinTracker::visitSeparator(), and ThinTracker::visitSolenoid().
void PartBunchBase< T, Dim >::get_PBounds | ( | Vector_t & | min, |
Vector_t & | max | ||
) | const |
Definition at line 1253 of file PartBunchBase.hpp.
References bounds().
Referenced by H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_pmean | ( | ) | const |
Definition at line 1166 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_pmean_Distribution | ( | ) | const |
Definition at line 1172 of file PartBunchBase.hpp.
Referenced by ParallelSliceTracker::execute(), ParallelTTracker::execute(), and ThickTracker::execute().
Vector_t PartBunchBase< T, Dim >::get_prms | ( | ) | const |
Definition at line 1160 of file PartBunchBase.hpp.
Referenced by StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_rmean | ( | ) | const |
Definition at line 1154 of file PartBunchBase.hpp.
Referenced by StatWriter::write(), ParallelSliceTracker::writePhaseSpace(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_rprms | ( | ) | const |
Definition at line 1148 of file PartBunchBase.hpp.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_rrms | ( | ) | const |
Definition at line 1142 of file PartBunchBase.hpp.
Referenced by MultiBunchHandler::injectBunch(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_sPos | ( | ) |
get the spos of the primary beam
none |
Definition at line 1100 of file PartBunchBase.hpp.
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), BeamStrippingPhysics::apply(), Monitor::applyToReferenceParticle(), Distribution::doRestartOpalCycl(), ParallelTTracker::execute(), ParallelCyclotronTracker::initDistInGlobalFrame(), Monitor::initialise(), ParallelCyclotronTracker::saveInjectValues(), ThickTracker::update_m(), MemoryWriter::write(), StatWriter::write(), MemoryProfiler::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
|
inline |
Definition at line 432 of file PartBunchBase.h.
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 1835 of file PartBunchBase.hpp.
Referenced by TravelingWave::addKR(), RFCavity::addKR(), Multipole::addKR(), Solenoid::addKT(), Multipole::addKT(), and RBend::addKT().
double PartBunchBase< T, Dim >::getBinGamma | ( | int | bin | ) |
Get gamma of one bin.
Definition at line 445 of file PartBunchBase.hpp.
Referenced by AmrBoxLib::computeSelfFields_cycl().
std::pair< Vector_t, double > PartBunchBase< T, Dim >::getBoundingSphere | ( | ) |
double PartBunchBase< T, Dim >::getCharge | ( | ) | const |
get the total charge per simulation particle
Definition at line 1456 of file PartBunchBase.hpp.
References sum().
Referenced by StatWriter::write(), DataSink::writeImpactStatistics(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
double PartBunchBase< T, Dim >::getChargePerParticle | ( | ) | const |
get the macro particle charge
Definition at line 1462 of file PartBunchBase.hpp.
Referenced by GreenWakeFunction::apply(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), Distribution::injectBeam(), Multipole::isFocusing(), and DataSink::writeImpactStatistics().
double PartBunchBase< T, Dim >::getCouplingConstant | ( | ) | const |
Definition at line 1395 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getdE | ( | ) |
Definition at line 1811 of file PartBunchBase.hpp.
Referenced by StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
size_t PartBunchBase< T, Dim >::getDestroyNum | ( | ) | const |
Definition at line 2236 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getdT | ( | ) | const |
Definition at line 1076 of file PartBunchBase.hpp.
Referenced by BeamStrippingPhysics::apply(), Corrector::apply(), CollimatorPhysics::apply(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), ParallelSliceTracker::autophaseCavities(), ParallelTTracker::autophaseCavities(), ParallelCyclotronTracker::bgf_main_collision_test(), Bend2D::calculateBendAngle(), Bend2D::calculateRefTrajectory(), ParallelSliceTracker::changeDT(), ParallelTTracker::changeDT(), ParallelSliceTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), Distribution::createBoundaryGeometry(), BoundaryGeometry::createParticlesOnSurface(), BoundaryGeometry::createPriPart(), Distribution::createPriPart(), ThickTracker::dump_m(), Distribution::emitParticles(), ParallelTTracker::emitParticles(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), Corrector::goOnline(), RBend3D::initialise(), ParallelCyclotronTracker::initializeTracking_m(), SecondaryEmissionPhysics::nSec(), ParallelTTracker::prepareEmission(), ParallelTTracker::selectDT(), ParallelTTracker::setTime(), P3MPoissonSolver::test(), ParallelSliceTracker::timeIntegration(), ParallelTTracker::timeIntegration2(), ParallelSliceTracker::updateReferenceParticle(), ParallelTTracker::updateReferenceParticle(), ParallelTTracker::updateRefToLabCSTrafo(), StatWriter::write(), ParallelSliceTracker::writePhaseSpace(), and ParallelTTracker::writePhaseSpace().
double PartBunchBase< T, Dim >::getE | ( | ) | const |
Definition at line 1783 of file PartBunchBase.hpp.
|
pure virtual |
calculates back the max/min of the efield on the grid
Implemented in PartBunch, and AmrPartBunch.
double PartBunchBase< T, Dim >::getEkin | ( | ) | const |
Need Ek for the Schottky effect calculation (eV)
Definition at line 1430 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getEmissionDeltaT | ( | ) |
Definition at line 1854 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::prepareEmission(), ParallelSliceTracker::selectDT(), and ParallelTTracker::selectDT().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
std::string PartBunchBase< T, Dim >::getFieldSolverType | ( | ) | const |
Return the fieldsolver type if we have a fieldsolver.
Definition at line 1495 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 1829 of file PartBunchBase.hpp.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), Multipole::addKR(), RBend::addKR(), Solenoid::addKT(), RFCavity::addKT(), and Multipole::addKT().
size_t PartBunchBase< T, Dim >::getGhostNum | ( | ) | const |
Definition at line 2241 of file PartBunchBase.hpp.
Vector_t PartBunchBase< T, Dim >::getGlobalMeanR | ( | ) |
Definition at line 1620 of file PartBunchBase.hpp.
Quaternion_t PartBunchBase< T, Dim >::getGlobalToLocalQuaternion | ( | ) |
Definition at line 1633 of file PartBunchBase.hpp.
long long PartBunchBase< T, Dim >::getGlobalTrackStep | ( | ) | const |
Definition at line 1522 of file PartBunchBase.hpp.
Referenced by Monitor::applyToReferenceParticle(), Distribution::doRestartOpalT(), ThickTracker::dump_m(), ParallelTTracker::dumpStats(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
bool PartBunchBase< T, Dim >::getIfBeamEmitting | ( | ) |
Definition at line 119 of file PartBunchBase.hpp.
References reduce().
Referenced by ParallelTTracker::emitParticles(), ParallelSliceTracker::selectDT(), and ParallelTTracker::selectDT().
double PartBunchBase< T, Dim >::getInitialBeta | ( | ) | const |
Definition at line 1817 of file PartBunchBase.hpp.
Referenced by ThickTracker::advanceDispersion_m(), and ThickTracker::updateParticle_m().
double PartBunchBase< T, Dim >::getInitialGamma | ( | ) | const |
Definition at line 1823 of file PartBunchBase.hpp.
Referenced by Distribution::createOpalCycl(), and ThickTracker::updateParticle_m().
Vector_t PartBunchBase< T, Dim >::getKs3DRefp | ( | ) |
Vector_t PartBunchBase< T, Dim >::getKs3DRefr | ( | ) |
double PartBunchBase< T, Dim >::getLaserEnergy | ( | ) | const |
Need the laser energy for the Schottky effect calculation (eV)
Definition at line 1447 of file PartBunchBase.hpp.
int PartBunchBase< T, Dim >::getLastemittedBin | ( | ) |
Definition at line 354 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m(), and ParallelCyclotronTracker::deleteParticle().
int PartBunchBase< T, Dim >::getLastEmittedEnergyBin | ( | ) |
Definition at line 133 of file PartBunchBase.hpp.
References reduce().
Referenced by ParallelTTracker::computeSpaceChargeFields().
ParticleLayout< T, Dim > & PartBunchBase< T, Dim >::getLayout | ( | ) |
Definition at line 2266 of file PartBunchBase.hpp.
Referenced by AmrBoxLib::create(), AmrYtWriter::writeBunch(), and AmrYtWriter::writeParticles_m().
const ParticleLayout< T, Dim > & PartBunchBase< T, Dim >::getLayout | ( | ) | const |
Definition at line 2271 of file PartBunchBase.hpp.
size_t PartBunchBase< T, Dim >::getLoadBalance | ( | int | p | ) | const |
Definition at line 1247 of file PartBunchBase.hpp.
Referenced by LBalWriter::write().
std::pair< Vector_t, double > PartBunchBase< T, Dim >::getLocalBoundingSphere | ( | ) |
Definition at line 973 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeParticleMatterInteraction().
void PartBunchBase< T, Dim >::getLocalBounds | ( | Vector_t & | rmin, |
Vector_t & | rmax | ||
) |
Definition at line 939 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
size_t PartBunchBase< T, Dim >::getLocalNum | ( | ) | const |
Definition at line 2230 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::addBackToBunch(), ThickTracker::advanceParticles_m(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), GreenWakeFunction::apply(), P3MPoissonSolver::applyConstantFocusing(), ThinTracker::applyDrift(), Tracker::applyDrift(), Monitor::applyToReferenceParticle(), Tracker::applyTransform(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanP(), ParallelCyclotronTracker::calcMeanR(), ParallelTTracker::changeDT(), BeamStripping::checkBeamStripping(), ParallelCyclotronTracker::checkNumPart(), P3MPoissonSolver::compute_temperature(), P3MPoissonSolver::computeAvgSpaceChargeForces(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createOpalCycl(), Distribution::createPriPart(), ParallelCyclotronTracker::deleteParticle(), Septum::doCheck(), Stripper::doCheck(), Probe::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), TrackSave::execute(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::globalToLocal(), Degrader::goOnline(), BeamStripping::initialise(), MultiBunchHandler::injectBunch(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::localToGlobal(), SecondaryEmissionPhysics::nSec(), AmrBoxLib::postRegrid_m(), ParallelCyclotronTracker::push(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), ParallelCyclotronTracker::rotateAroundX(), ParallelCyclotronTracker::rotateAroundZ(), ParallelCyclotronTracker::rotateWithQuaternion(), MultiBunchHandler::saveBunch(), BeamStrippingPhysics::secondaryParticles(), ParallelCyclotronTracker::seoMode_m(), ParallelTTracker::setTime(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), ParallelTTracker::timeIntegration2(), MapIntegrator::trackBunch(), MPSplitIntegrator::trackBunch(), ParallelTTracker::transformBunch(), ThickTracker::update_m(), ThinTracker::visitBeamBeam(), ThinTracker::visitCorrector(), ThinTracker::visitRBend(), ThinTracker::visitRFCavity(), ThinTracker::visitSBend(), ThinTracker::visitSeparator(), ThinTracker::visitSolenoid(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
size_t PartBunchBase< T, Dim >::getLocalNumPerBunch | ( | short | n | ) | const |
Definition at line 1581 of file PartBunchBase.hpp.
References Hypervolume::n, and PAssert_LT.
Referenced by ParallelCyclotronTracker::deleteParticle().
long long PartBunchBase< T, Dim >::getLocalTrackStep | ( | ) | const |
Definition at line 1540 of file PartBunchBase.hpp.
Referenced by AmrBoxLib::computeSelfFields_cycl(), Distribution::doRestartOpalT(), ParallelCyclotronTracker::initializeTracking_m(), ParallelCyclotronTracker::initTrackOrbitFile(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getM | ( | ) | const |
Definition at line 1771 of file PartBunchBase.hpp.
Referenced by BeamStrippingPhysics::apply(), Degrader::applyToReferenceParticle(), MultiBunchHandler::calcBunchBeamParameters(), Bend2D::calculateBendAngle(), CSRIGFWakeFunction::calculateGreenFunction(), Bend2D::calculateRefTrajectory(), Distribution::createOpalCycl(), Distribution::createOpalT(), Distribution::doRestartOpalCycl(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelCyclotronTracker::finalizeTracking_m(), RBend::findChordLength(), Bend2D::findIdealBendParameters(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), Corrector::goOnline(), RBend3D::initialise(), BeamStripping::initialise(), H5PartWrapperForPC::readStepHeader(), ParallelCyclotronTracker::RFkick(), Bend2D::setBendStrength(), Corrector::setDesignEnergy(), Distribution::setupEmissionModelAstra(), Distribution::setupEmissionModelNone(), Distribution::setupParticleBins(), H5PartWrapperForPS::stashPhaseSpaceEnvelope(), RBend3D::trackRefParticleThrough(), Bend2D::treatAsDrift(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
unsigned int PartBunchBase< T, Dim >::getMinimumNumberOfParticlesPerCore | ( | ) | const |
Definition at line 2256 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::copyFromBunch().
size_t PartBunchBase< T, Dim >::getNumberOfEmissionSteps | ( | ) |
Definition at line 144 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::prepareEmission().
int PartBunchBase< T, Dim >::getNumberOfEnergyBins | ( | ) |
Definition at line 150 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelTTracker::prepareEmission().
int PartBunchBase< T, Dim >::getNumBins | ( | ) |
Definition at line 345 of file PartBunchBase.hpp.
short PartBunchBase< T, Dim >::getNumBunch | ( | ) | const |
Definition at line 1554 of file PartBunchBase.hpp.
Referenced by MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::deleteParticle(), Distribution::doRestartOpalCycl(), ParallelCyclotronTracker::execute(), AmrBoxLib::initFineLevels(), ParallelCyclotronTracker::initializeTracking_m(), MultiBunchHandler::MultiBunchHandler(), H5PartWrapperForPC::readStepData(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getP | ( | ) | const |
Definition at line 1777 of file PartBunchBase.hpp.
Referenced by Distribution::createOpalT(), and Distribution::setupParticleBins().
ParticleType::type PartBunchBase< T, Dim >::getPType | ( | ) | const |
Definition at line 1789 of file PartBunchBase.hpp.
Referenced by Stripper::doFinaliseCheck().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 846 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 864 of file PartBunchBase.hpp.
Referenced by Solenoid::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 852 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 870 of file PartBunchBase.hpp.
Referenced by Solenoid::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 858 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getQ | ( | ) | const |
Access to reference data.
Definition at line 1765 of file PartBunchBase.hpp.
Referenced by Degrader::applyToReferenceParticle(), Distribution::emitParticles(), RBend::findChordLength(), Bend2D::findIdealBendParameters(), Corrector::goOnline(), RBend3D::initialise(), BeamStripping::initialise(), RFCavity::initialise(), ParallelCyclotronTracker::RFkick(), Bend2D::setBendStrength(), Corrector::setDesignEnergy(), H5PartWrapperForPT::writeStepHeader(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPS::writeStepHeader().
Quaternion_t PartBunchBase< T, Dim >::getQKs3D | ( | ) |
const PartData * PartBunchBase< T, Dim >::getReference | ( | ) | const |
Definition at line 1848 of file PartBunchBase.hpp.
Referenced by Bend2D::setupPusher(), RFCavity::trackOnAxisParticle(), and RBend3D::trackRefParticleThrough().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
FMatrix< double, 2 *Dim, 2 *Dim > PartBunchBase< T, Dim >::getSigmaMatrix | ( | ) |
Definition at line 2349 of file PartBunchBase.hpp.
References Dim.
Referenced by ThickTracker::track_m().
int PartBunchBase< T, Dim >::getStepsPerTurn | ( | ) | const |
Definition at line 1510 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::initializeTracking_m().
int PartBunchBase< T, Dim >::getSteptoLastInj | ( | ) |
Definition at line 1645 of file PartBunchBase.hpp.
Referenced by Distribution::doRestartOpalCycl(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getT | ( | ) | const |
Definition at line 1094 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::apply(), ParallelTTracker::applyFractionalStep(), ParallelCyclotronTracker::applyPluginElements(), ParallelTTracker::autophaseCavities(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), MultiBunchHandler::calcBunchBeamParameters(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalT(), ThickTracker::dump_m(), ParallelTTracker::dumpStats(), ParallelTTracker::emitParticles(), ParallelTTracker::execute(), AmrBoxLib::getT(), AmrBoxLib::initFineLevels(), ParallelCyclotronTracker::initializeTracking_m(), ParallelCyclotronTracker::push(), ParallelCyclotronTracker::saveInjectValues(), ThickTracker::update_m(), ParallelTTracker::updateReferenceParticle(), ParallelCyclotronTracker::updateTime(), LBalWriter::write(), GridLBalWriter::write(), MemoryWriter::write(), StatWriter::write(), MemoryProfiler::write(), DataSink::writeImpactStatistics(), DataSink::writePartlossZASCII(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getTEmission | ( | ) |
Definition at line 282 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::prepareEmission().
size_t PartBunchBase< T, Dim >::getTotalNum | ( | ) | const |
Definition at line 2225 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::applyPluginElements(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchMode_m(), ParallelCyclotronTracker::calcMeanP(), ParallelCyclotronTracker::calcMeanR(), P3MPoissonSolver::compute_temperature(), P3MPoissonSolver::computeAvgSpaceChargeForces(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), Distribution::createOpalCycl(), Probe::doInitialise(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), ThickTracker::dump_m(), ParallelTTracker::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), ParallelTTracker::execute(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::GenericTracker(), Monitor::initialise(), MultiBunchHandler::injectBunch(), ParallelCyclotronTracker::MtsTracker(), MultiBunchHandler::MultiBunchHandler(), ParallelCyclotronTracker::update_m(), StatWriter::write(), AmrYtWriter::writeBunch(), DataSink::writeImpactStatistics(), H5Writer::writePhaseSpace(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPC::writeStep(), and H5PartWrapperForPT::writeStep().
size_t PartBunchBase< T, Dim >::getTotalNumPerBunch | ( | short | n | ) | const |
Definition at line 1567 of file PartBunchBase.hpp.
References Hypervolume::n, and PAssert_LT.
Referenced by ParallelCyclotronTracker::calcMeanR(), and ParallelCyclotronTracker::computePathLengthUpdate().
bool PartBunchBase< T, Dim >::getUpdateFlag | ( | UpdateFlags_t | f | ) | const |
Definition at line 2276 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getWorkFunctionRf | ( | ) | const |
Need the work function for the Schottky effect calculation (eV)
Definition at line 1439 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 877 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), RBend::addKR(), Solenoid::addKT(), RFCavity::addKT(), and RBend::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 898 of file PartBunchBase.hpp.
Referenced by Solenoid::addKT(), TravelingWave::addKT(), RFCavity::addKT(), and Multipole::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 884 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), RBend::addKR(), Solenoid::addKT(), RFCavity::addKT(), and RBend::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 905 of file PartBunchBase.hpp.
Referenced by Solenoid::addKT(), TravelingWave::addKT(), RFCavity::addKT(), and Multipole::addKT().
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 891 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by Solenoid::addKR(), TravelingWave::addKR(), RFCavity::addKR(), RBend::addKR(), Solenoid::addKT(), RFCavity::addKT(), and RBend::addKT().
void PartBunchBase< T, Dim >::ghostDestroy | ( | size_t | M, |
size_t | I | ||
) |
Definition at line 2339 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::globalCreate | ( | size_t | np | ) |
Definition at line 2324 of file PartBunchBase.hpp.
bool PartBunchBase< T, Dim >::hasBinning | ( | ) |
Definition at line 270 of file PartBunchBase.hpp.
Referenced by H5PartWrapperForPC::writeStepData().
bool PartBunchBase< T, Dim >::hasFieldSolver | ( | ) |
Definition at line 1485 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::bunchMode_m(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), ParallelTTracker::doBinaryRepartition(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::getFieldsAtPoint(), and ParallelCyclotronTracker::MtsTracker().
void PartBunchBase< T, Dim >::incrementT | ( | ) |
Definition at line 1088 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), and ParallelTTracker::execute().
void PartBunchBase< T, Dim >::incTrackSteps | ( | ) |
Definition at line 1534 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::execute().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
bool PartBunchBase< T, Dim >::isGridFixed | ( | ) |
Definition at line 264 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::iterateEmittedBin | ( | int | binNumber | ) |
Definition at line 1860 of file PartBunchBase.hpp.
Referenced by Distribution::emitParticles(), and Distribution::injectBeam().
void PartBunchBase< T, Dim >::maximumAmplitudes | ( | const FMatrix< double, 6, 6 > & | D, |
double & | axmax, | ||
double & | aymax | ||
) |
Return maximum amplitudes.
Definition at line 1041 of file PartBunchBase.hpp.
References max(), OpalParticle::pt(), OpalParticle::px(), OpalParticle::py(), OpalParticle::t(), OpalParticle::x(), and OpalParticle::y().
void PartBunchBase< T, Dim >::performDestroy | ( | bool | updateLocalNum = false | ) |
Definition at line 2334 of file PartBunchBase.hpp.
Referenced by CollimatorPhysics::copyFromBunch(), and ParallelCyclotronTracker::deleteParticle().
Inform & PartBunchBase< T, Dim >::print | ( | Inform & | os | ) |
Definition at line 1905 of file PartBunchBase.hpp.
References abs(), endl(), Inform::flags(), Util::getChargeString(), Util::getEnergyString(), Util::getLengthString(), Util::getTimeString(), level1(), and sum().
Referenced by PartBunch::print().
void PartBunchBase< T, Dim >::push_back | ( | OpalParticle | p | ) |
Definition at line 986 of file PartBunchBase.hpp.
References endl(), and Attrib::Distribution::R.
Referenced by Tracker::addToBunch(), and TrackStart::execute().
void PartBunchBase< T, Dim >::Rebin | ( | ) |
Definition at line 156 of file PartBunchBase.hpp.
References endl(), and reduce().
Referenced by ParallelTTracker::emitParticles().
void PartBunchBase< T, Dim >::rebin | ( | ) |
Definition at line 336 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::resetID | ( | ) |
Definition at line 2291 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in PartBunch.
Definition at line 2125 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelTTracker::emitParticles().
void PartBunchBase< T, Dim >::resetM | ( | double | m | ) |
Definition at line 1805 of file PartBunchBase.hpp.
Referenced by Stripper::doFinaliseCheck().
bool PartBunchBase< T, Dim >::resetPartBinBunch | ( | ) |
Definition at line 1743 of file PartBunchBase.hpp.
Referenced by MultiBunchHandler::updateParticleBins().
bool PartBunchBase< T, Dim >::resetPartBinID2 | ( | const double | eta | ) |
reset Bin[] for each particle according to the method given in paper PAST-AB(064402) by G. Fubiani et al.
Definition at line 1691 of file PartBunchBase.hpp.
References endl(), ERRORMSG, floor(), INFOMSG, Hypervolume::n, pow(), reduce(), and sqrt().
Referenced by MultiBunchHandler::updateParticleBins().
void PartBunchBase< T, Dim >::resetQ | ( | double | q | ) |
Set reference data
Definition at line 1799 of file PartBunchBase.hpp.
Referenced by Stripper::doFinaliseCheck().
|
virtual |
Reimplemented in PartBunch.
Definition at line 2119 of file PartBunchBase.hpp.
Referenced by TrackRun::setupTTracker().
|
virtual |
Reimplemented in AmrPartBunch.
Definition at line 1230 of file PartBunchBase.hpp.
Referenced by FieldSolver::initAmrObject_m(), FieldSolver::initSolver(), and AmrPartBunch::set_meshEnlargement().
void PartBunchBase< T, Dim >::set_part | ( | FVector< double, 6 > | z, |
int | ii | ||
) |
Definition at line 1006 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by ThinTracker::applyDrift(), Tracker::applyDrift(), Tracker::applyTransform(), MapIntegrator::trackBunch(), MPSplitIntegrator::trackBunch(), ThinTracker::visitBeamBeam(), ThinTracker::visitCorrector(), ThinTracker::visitRBend(), ThinTracker::visitRFCavity(), ThinTracker::visitSBend(), ThinTracker::visitSeparator(), and ThinTracker::visitSolenoid().
void PartBunchBase< T, Dim >::set_part | ( | OpalParticle | p, |
int | ii | ||
) |
Definition at line 1017 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
void PartBunchBase< T, Dim >::set_sPos | ( | double | s | ) |
Definition at line 1106 of file PartBunchBase.hpp.
Referenced by ParallelSliceTracker::execute(), ParallelTTracker::execute(), ThickTracker::execute(), H5PartWrapperForPT::readStepHeader(), H5PartWrapperForPC::readStepHeader(), ThickTracker::update_m(), ParallelCyclotronTracker::updatePathLength(), and ParallelTTracker::writePhaseSpace().
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 2157 of file PartBunchBase.hpp.
Referenced by TrackRun::setupFieldsolver().
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 2151 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 2163 of file PartBunchBase.hpp.
|
inline |
Definition at line 436 of file PartBunchBase.h.
void PartBunchBase< T, Dim >::setBeamFrequency | ( | double | v | ) |
Definition at line 2344 of file PartBunchBase.hpp.
References Physics::c.
Referenced by TrackRun::setupSliceTracker(), and TrackRun::setupTTracker().
|
virtual |
Set the charge of one bin to the value of q and all other to zero.
Reimplemented in AmrPartBunch.
Definition at line 451 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelCyclotronTracker::computeSpaceChargeFields_m().
|
virtual |
Set the charge of all other the ones in bin to zero.
Reimplemented in AmrPartBunch.
Definition at line 457 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::setCharge | ( | double | q | ) |
Definition at line 1407 of file PartBunchBase.hpp.
References endl(), and WARNMSG.
Referenced by TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setChargeZeroPart | ( | double | q | ) |
Definition at line 1417 of file PartBunchBase.hpp.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setCouplingConstant | ( | double | c | ) |
Definition at line 1401 of file PartBunchBase.hpp.
References Physics::c.
Referenced by TrackRun::setupCyclotronTracker(), TrackRun::setupSliceTracker(), TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setDistribution | ( | Distribution * | d, |
std::vector< Distribution * > | addedDistributions, | ||
size_t & | np | ||
) |
Definition at line 247 of file PartBunchBase.hpp.
References Distribution::createOpalT().
Referenced by TrackRun::setDistributionParallelT().
void PartBunchBase< T, Dim >::setdT | ( | double | dt | ) |
Definition at line 1070 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::execute(), ParallelSliceTracker::selectDT(), ParallelTTracker::selectDT(), TrackRun::setupCyclotronTracker(), TrackRun::setupSliceTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), and ThickTracker::update_m().
void PartBunchBase< T, Dim >::setEnergyBins | ( | int | numberOfEnergyBins | ) |
Definition at line 173 of file PartBunchBase.hpp.
Referenced by Distribution::initializeBeam().
void PartBunchBase< T, Dim >::setGlobalMeanR | ( | Vector_t | globalMeanR | ) |
Definition at line 1614 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelCyclotronTracker::computeSpaceChargeFields_m().
void PartBunchBase< T, Dim >::setGlobalToLocalQuaternion | ( | Quaternion_t | globalToLocalQuaternion | ) |
Definition at line 1626 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
void PartBunchBase< T, Dim >::setGlobalTrackStep | ( | long long | n | ) |
step in multiple TRACK commands
Definition at line 1516 of file PartBunchBase.hpp.
References Hypervolume::n.
Referenced by H5PartWrapperForPT::readStepHeader(), H5PartWrapperForPC::readStepHeader(), and ThickTracker::update_m().
void PartBunchBase< T, Dim >::setKs3DRefp | ( | Vector_t | p | ) |
void PartBunchBase< T, Dim >::setKs3DRefr | ( | Vector_t | r | ) |
void PartBunchBase< T, Dim >::setLocalBinCount | ( | size_t | num, |
int | bin | ||
) |
Definition at line 363 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::deleteParticle().
void PartBunchBase< T, Dim >::setLocalNum | ( | size_t | n | ) |
Definition at line 2251 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::setLocalNumPerBunch | ( | size_t | numpart, |
short | n | ||
) |
Definition at line 1574 of file PartBunchBase.hpp.
References Hypervolume::n, and PAssert_LT.
Referenced by MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::deleteParticle(), MultiBunchHandler::injectBunch(), and MultiBunchHandler::readBunch().
void PartBunchBase< T, Dim >::setLocalTrackStep | ( | long long | n | ) |
step in a TRACK command
Definition at line 1528 of file PartBunchBase.hpp.
References Hypervolume::n.
Referenced by H5PartWrapperForPT::readStepHeader(), H5PartWrapperForPC::readStepHeader(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), and ParallelCyclotronTracker::update_m().
void PartBunchBase< T, Dim >::setMass | ( | double | mass | ) |
Definition at line 1423 of file PartBunchBase.hpp.
Referenced by TrackRun::setupCyclotronTracker().
void PartBunchBase< T, Dim >::setMinimumNumberOfParticlesPerCore | ( | unsigned int | n | ) |
Definition at line 2261 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::setNumBunch | ( | short | n | ) |
Definition at line 1546 of file PartBunchBase.hpp.
References Hypervolume::n.
Referenced by Distribution::initializeBeam(), MultiBunchHandler::injectBunch(), and H5PartWrapperForPC::readStepHeader().
void PartBunchBase< T, Dim >::setPBins | ( | PartBins * | pbin | ) |
Definition at line 307 of file PartBunchBase.hpp.
References endl().
Referenced by Distribution::createOpalCycl(), Distribution::doRestartOpalCycl(), and MultiBunchHandler::MultiBunchHandler().
void PartBunchBase< T, Dim >::setPBins | ( | PartBinsCyc * | pbin | ) |
Definition at line 315 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::setPType | ( | ParticleType::type | type | ) |
Definition at line 1794 of file PartBunchBase.hpp.
Referenced by Stripper::doCheck().
void PartBunchBase< T, Dim >::setQKs3D | ( | Quaternion_t | q | ) |
|
virtual |
CAN not re-inizialize ParticleLayout this is an IPPL issue
Reimplemented in AmrPartBunch.
Definition at line 1468 of file PartBunchBase.hpp.
References Hypervolume::fs, and OpalData::getInstance().
Referenced by AmrPartBunch::setSolver(), and TrackRun::setupFieldsolver().
void PartBunchBase< T, Dim >::setStepsPerTurn | ( | int | n | ) |
Definition at line 1504 of file PartBunchBase.hpp.
References Hypervolume::n.
Referenced by TrackRun::setupCyclotronTracker().
void PartBunchBase< T, Dim >::setSteptoLastInj | ( | int | n | ) |
Definition at line 1639 of file PartBunchBase.hpp.
References Hypervolume::n.
Referenced by H5PartWrapperForPC::readStepHeader().
void PartBunchBase< T, Dim >::setT | ( | double | t | ) |
Definition at line 1082 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::applyFractionalStep(), ParallelTTracker::computeParticleMatterInteraction(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), H5PartWrapperForPT::readStepHeader(), H5PartWrapperForPC::readStepHeader(), H5PartWrapperForPS::readStepHeader(), ThickTracker::update_m(), and ParallelCyclotronTracker::updateTime().
void PartBunchBase< T, Dim >::setTEmission | ( | double | t | ) |
Definition at line 276 of file PartBunchBase.hpp.
Referenced by Distribution::initializeBeam().
void PartBunchBase< T, Dim >::setTotalNum | ( | size_t | n | ) |
Definition at line 2246 of file PartBunchBase.hpp.
Referenced by ParallelCyclotronTracker::deleteParticle().
void PartBunchBase< T, Dim >::setTotalNumPerBunch | ( | size_t | numpart, |
short | n | ||
) |
Definition at line 1560 of file PartBunchBase.hpp.
References Hypervolume::n, and PAssert_LT.
Referenced by MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::deleteParticle(), MultiBunchHandler::injectBunch(), and MultiBunchHandler::readBunch().
|
private |
Definition at line 2176 of file PartBunchBase.hpp.
References AbstractParticle< T, Dim >::addAttribute(), Options::asciidump, IpplInfo::getNodes(), and IpplTimings::getTimer().
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
void PartBunchBase< T, Dim >::setUpdateFlag | ( | UpdateFlags_t | f, |
bool | val | ||
) |
Definition at line 2281 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in EnvelopeBunch.
Definition at line 911 of file PartBunchBase.hpp.
bool PartBunchBase< T, Dim >::singleInitNode | ( | ) | const |
Definition at line 2286 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in PartBunch.
Definition at line 2130 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
Referenced by PartBunch::swap().
void PartBunchBase< T, Dim >::switchOffUnitlessPositions | ( | bool | use_dt_per_particle = false | ) |
Definition at line 217 of file PartBunchBase.hpp.
References Physics::c, and Attrib::Distribution::R.
Referenced by ParallelTTracker::emitParticles(), and ParallelTTracker::pushParticles().
void PartBunchBase< T, Dim >::switchToUnitlessPositions | ( | bool | use_dt_per_particle = false | ) |
Definition at line 192 of file PartBunchBase.hpp.
References Physics::c, and Attrib::Distribution::R.
Referenced by ParallelTTracker::emitParticles(), and ParallelTTracker::pushParticles().
void PartBunchBase< T, Dim >::update | ( | ) |
Definition at line 2296 of file PartBunchBase.hpp.
References IpplException::what(), and IpplException::where().
Referenced by P3MPoissonSolver::test().
void PartBunchBase< T, Dim >::update | ( | const ParticleAttrib< char > & | canSwap | ) |
Definition at line 2305 of file PartBunchBase.hpp.
References IpplException::what(), and IpplException::where().
|
privatepure virtual |
Implemented in AmrPartBunch, and PartBunch.
|
privatevirtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 2169 of file PartBunchBase.hpp.
void PartBunchBase< T, Dim >::updateNumTotal | ( | ) |
Definition at line 328 of file PartBunchBase.hpp.
References reduce().
Referenced by ParallelCyclotronTracker::applyPluginElements(), ParallelTTracker::computeParticleMatterInteraction(), BeamStrippingPhysics::doPhysics(), ParallelTTracker::emitParticles(), and ParallelCyclotronTracker::MtsTracker().
bool PartBunchBase< T, Dim >::weHaveBins | ( | ) | const |
Definition at line 297 of file PartBunchBase.hpp.
Referenced by Stripper::doCheck(), BeamStripping::initialise(), ParallelCyclotronTracker::isMultiBunch(), and BeamStrippingPhysics::secondaryParticles().
bool PartBunchBase< T, Dim >::weHaveEnergyBins | ( | ) |
Definition at line 182 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::emitParticles(), and ParallelTTracker::execute().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Bf |
Definition at line 491 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchMode_m(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Distribution::emitParticles(), ParallelTTracker::execute(), ParallelCyclotronTracker::getFieldsAtPoint(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), SecondaryEmissionPhysics::nSec(), ParallelTTracker::transformBunch(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
ParticleAttrib< int > PartBunchBase< T, Dim >::Bin |
Definition at line 492 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), Degrader::apply(), Ring::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::bunchMode_m(), BeamStripping::checkBeamStripping(), ParallelSliceTracker::computeExternalFields(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), ParallelCyclotronTracker::deleteParticle(), Septum::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::emitParticles(), ParallelCyclotronTracker::initDistInGlobalFrame(), BeamStripping::initialise(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), SecondaryEmissionPhysics::nSec(), ParallelCyclotronTracker::push(), MultiBunchHandler::readBunch(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPC::readStepData(), BeamStrippingPhysics::secondaryParticles(), ParallelCyclotronTracker::singleMode_m(), AmrBoxLib::tagForChargeDensity_m(), AmrYtWriter::writeParticles_m(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 650 of file PartBunchBase.h.
|
protected |
holds the gamma of the bin
Definition at line 645 of file PartBunchBase.h.
|
protected |
Definition at line 544 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
Definition at line 543 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
Definition at line 545 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
Definition at line 666 of file PartBunchBase.h.
ParticleAttrib< short > PartBunchBase< T, Dim >::bunchNum |
Definition at line 499 of file PartBunchBase.h.
Referenced by Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanR(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelCyclotronTracker::deleteParticle(), Stripper::doCheck(), Probe::doCheck(), BeamStrippingPhysics::doPhysics(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
number of particles per bunch
Definition at line 665 of file PartBunchBase.h.
ParticleAttrib< short > PartBunchBase< T, Dim >::cavityGapCrossed |
particle just crossed cavity gap (for ParallelCyclotronTracker)
Definition at line 497 of file PartBunchBase.h.
Referenced by ParallelCyclotronTracker::bunchMode_m(), ParallelCyclotronTracker::gapCrossKick_m(), and ParallelCyclotronTracker::singleMode_m().
|
protected |
holds the centroid of the beam
Definition at line 563 of file PartBunchBase.h.
|
protected |
Definition at line 628 of file PartBunchBase.h.
|
protected |
Definition at line 683 of file PartBunchBase.h.
|
protected |
derivative of the dispersion
Definition at line 617 of file PartBunchBase.h.
|
protected |
Definition at line 618 of file PartBunchBase.h.
|
protected |
energy spread of the beam in MeV
Definition at line 575 of file PartBunchBase.h.
double PartBunchBase< T, Dim >::deltaTau_m |
Definition at line 531 of file PartBunchBase.h.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
|
protected |
Mesh enlargement.
Definition at line 639 of file PartBunchBase.h.
|
static |
Definition at line 39 of file PartBunchBase.h.
Referenced by AmrBoxLib::getEExtrema().
|
protected |
Definition at line 680 of file PartBunchBase.h.
|
protected |
counter to store the distribution dump
Definition at line 633 of file PartBunchBase.h.
IpplTimings::TimerRef PartBunchBase< T, Dim >::distrCreate_m |
Definition at line 528 of file PartBunchBase.h.
Referenced by Distribution::createOpalE(), Distribution::createOpalT(), and PartBunchBase< T, Dim >::PartBunchBase().
IpplTimings::TimerRef PartBunchBase< T, Dim >::distrReload_m |
timer for IC, can not be in Distribution.h
Definition at line 527 of file PartBunchBase.h.
Referenced by Distribution::doRestartOpalCycl(), Distribution::doRestartOpalE(), Distribution::doRestartOpalT(), and PartBunchBase< T, Dim >::PartBunchBase().
ParticleAttrib< double > PartBunchBase< T, Dim >::dt |
Definition at line 493 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), Source::apply(), FlexibleCollimator::apply(), Degrader::apply(), Monitor::apply(), ParallelSliceTracker::changeDT(), ParallelTTracker::changeDT(), ParallelTTracker::computeExternalFields(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), ParallelTTracker::kickParticles(), SecondaryEmissionPhysics::nSec(), ParallelTTracker::pushParticles(), ParallelTTracker::setTime(), ParallelTTracker::timeIntegration2(), ThickTracker::update_m(), and AmrYtWriter::writeParticles_m().
|
protected |
holds the timestep in seconds
Definition at line 569 of file PartBunchBase.h.
double PartBunchBase< T, Dim >::dtScInit_m |
Definition at line 531 of file PartBunchBase.h.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
|
protected |
dispersion x & y
Definition at line 613 of file PartBunchBase.h.
|
protected |
Definition at line 614 of file PartBunchBase.h.
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Ef |
Definition at line 488 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), GreenWakeFunction::apply(), P3MPoissonSolver::applyConstantFocusing(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchMode_m(), P3MPoissonSolver::calculateGridForces(), P3MPoissonSolver::computeAvgSpaceChargeForces(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelTTracker::computeWakefield(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Distribution::emitParticles(), ParallelTTracker::execute(), ParallelCyclotronTracker::getFieldsAtPoint(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), SecondaryEmissionPhysics::nSec(), ApplyField< T >::operator()(), P3MPoissonSolver::test(), ParallelTTracker::transformBunch(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Eftmp |
Definition at line 489 of file PartBunchBase.h.
Referenced by AmrBoxLib::computeSelfFields_cycl().
|
protected |
mean energy of the bunch (MeV)
Definition at line 573 of file PartBunchBase.h.
|
protected |
rms emittance (not normalized)
Definition at line 602 of file PartBunchBase.h.
|
protected |
rms normalized emittance
Definition at line 605 of file PartBunchBase.h.
std::unique_ptr<std::ofstream> PartBunchBase< T, Dim >::f_stream |
Definition at line 524 of file PartBunchBase.h.
|
protected |
Definition at line 636 of file PartBunchBase.h.
bool PartBunchBase< T, Dim >::fixed_grid |
if the grid does not have to adapt
Definition at line 515 of file PartBunchBase.h.
|
protected |
stores the used field solver
Definition at line 626 of file PartBunchBase.h.
|
protected |
Initialize the translation vector and rotation quaternion here. Cyclotron tracker will reset these values each timestep TTracker can just use 0 translation and 0 rotation (quat[1 0 0 0]).
Definition at line 584 of file PartBunchBase.h.
|
protected |
Definition at line 677 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
Definition at line 585 of file PartBunchBase.h.
|
protected |
if multiple TRACK commands
Definition at line 659 of file PartBunchBase.h.
|
protected |
Definition at line 607 of file PartBunchBase.h.
|
protected |
Definition at line 548 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
meshspacing of cartesian mesh
Definition at line 621 of file PartBunchBase.h.
ParticleIndex_t& PartBunchBase< T, Dim >::ID |
Definition at line 480 of file PartBunchBase.h.
Referenced by Source::apply(), FlexibleCollimator::apply(), Degrader::apply(), Monitor::apply(), Monitor::applyToReferenceParticle(), ParallelCyclotronTracker::bgf_main_collision_test(), CollimatorPhysics::copyFromBunch(), Septum::doCheck(), Stripper::doCheck(), Probe::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::getFieldsAtPoint(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), H5PartWrapperForPT::readStepData(), ParallelCyclotronTracker::RFkick(), ParallelCyclotronTracker::seoMode_m(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), BeamStrippingPhysics::transformToH3plus(), BeamStrippingPhysics::transformToHminus(), BeamStrippingPhysics::transformToHydrogen(), BeamStrippingPhysics::transformToProton(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
step in a TRACK command
Definition at line 656 of file PartBunchBase.h.
std::unique_ptr<LossDataSink> PartBunchBase< T, Dim >::lossDs_m |
Definition at line 520 of file PartBunchBase.h.
Referenced by Septum::doCheck(), and PartBunchBase< T, Dim >::PartBunchBase().
bool PartBunchBase< T, Dim >::lowParticleCount_m |
if a local node has less than 2 particles lowParticleCount_m == true
Definition at line 534 of file PartBunchBase.h.
ParticleAttrib< double > PartBunchBase< T, Dim >::M |
Definition at line 486 of file PartBunchBase.h.
Referenced by RK4< FieldFunction, Arguments >::derivate_m(), Stripper::doCheck(), BeamStrippingPhysics::doPhysics(), ParallelTTracker::evenlyDistributeParticles(), BeamStripping::initialise(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), MultiBunchHandler::saveBunch(), P3MPoissonSolver::test(), BeamStrippingPhysics::transformToH3plus(), BeamStrippingPhysics::transformToHminus(), BeamStrippingPhysics::transformToHydrogen(), BeamStrippingPhysics::transformToProton(), AmrYtWriter::writeParticles_m(), and H5PartWrapperForPC::writeStepData().
|
protected |
6x6 matrix of the moments of the beam
Definition at line 566 of file PartBunchBase.h.
int PartBunchBase< T, Dim >::myNode_m |
avoid calls to Ippl::myNode()
Definition at line 509 of file PartBunchBase.h.
int PartBunchBase< T, Dim >::nodes_m |
avoid calls to Ippl::getNodes()
Definition at line 512 of file PartBunchBase.h.
|
protected |
meshsize of cartesian mesh
Definition at line 623 of file PartBunchBase.h.
|
protected |
current bunch number
Definition at line 662 of file PartBunchBase.h.
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::P |
Definition at line 484 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), ThickTracker::advanceParticles_m(), Source::apply(), FlexibleCollimator::apply(), VerticalFFAMagnet::apply(), Solenoid::apply(), CyclotronValley::apply(), ScalingFFAMagnet::apply(), Degrader::apply(), ParallelPlate::apply(), RBend3D::apply(), SBend3D::apply(), Corrector::apply(), TravelingWave::apply(), Monitor::apply(), VariableRFCavity::apply(), VariableRFCavityFringeField::apply(), Ring::apply(), RFCavity::apply(), MultipoleTBase::apply(), MultipoleT::apply(), Cyclotron::apply(), Monitor::applyToReferenceParticle(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanP(), PluginElement::changeWidth(), P3MPoissonSolver::compute_temperature(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelTTracker::computeWakefield(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), ParallelCyclotronTracker::deleteParticle(), LF2< FieldFunction, Arguments >::doAdvance_m(), RK4< FieldFunction, Arguments >::doAdvance_m(), Septum::doCheck(), Stripper::doCheck(), Probe::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), BoundaryGeometry::emitSecondaryFurmanPivi(), BoundaryGeometry::emitSecondaryVaughan(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::gapCrossKick_m(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::MtsTracker(), SecondaryEmissionPhysics::nSec(), ParallelCyclotronTracker::push(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPC::readStepData(), ParallelCyclotronTracker::RFkick(), MultiBunchHandler::saveBunch(), ParallelCyclotronTracker::seoMode_m(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), AmrBoxLib::tagForMomenta_m(), P3MPoissonSolver::test(), ParallelTTracker::transformBunch(), StatWriter::write(), AmrYtWriter::writeParticles_m(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 685 of file PartBunchBase.h.
Referenced by PartBunchBase< double, 3 >::getBConds(), and PartBunchBase< double, 3 >::setBConds().
PartBins* PartBunchBase< T, Dim >::pbin_m |
Definition at line 518 of file PartBunchBase.h.
Referenced by MultiBunchHandler::MultiBunchHandler().
|
protected |
Definition at line 684 of file PartBunchBase.h.
ParticleAttrib< double > PartBunchBase< T, Dim >::Phi |
Definition at line 487 of file PartBunchBase.h.
Referenced by P3MPoissonSolver::calculateGridForces(), and ApplyField< T >::operator()().
|
protected |
mean momenta
Definition at line 599 of file PartBunchBase.h.
std::unique_ptr<Inform> PartBunchBase< T, Dim >::pmsg_m |
Definition at line 523 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
rms momenta
Definition at line 595 of file PartBunchBase.h.
ParticleAttrib< short > PartBunchBase< T, Dim >::PType |
Definition at line 495 of file PartBunchBase.h.
Referenced by ParallelCyclotronTracker::bgf_main_collision_test(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Stripper::doCheck(), CCollimator::doCheck(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), SecondaryEmissionPhysics::nSec(), MultiBunchHandler::readBunch(), MultiBunchHandler::saveBunch(), BeamStrippingPhysics::secondaryParticles(), TrackRun::setupCyclotronTracker(), and H5PartWrapperForPT::writeStepData().
ParticleAttrib< double > PartBunchBase< T, Dim >::Q |
Definition at line 485 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), ParallelCyclotronTracker::bgf_main_collision_test(), P3MPoissonSolver::calculateGridForces(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), RK4< FieldFunction, Arguments >::derivate_m(), Stripper::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), BoundaryGeometry::emitSecondaryFurmanPivi(), BoundaryGeometry::emitSecondaryVaughan(), ParallelTTracker::evenlyDistributeParticles(), BeamStripping::initialise(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), SecondaryEmissionPhysics::nSec(), ApplyField< T >::operator()(), MultiBunchHandler::readBunch(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPC::readStepData(), MultiBunchHandler::saveBunch(), AmrBoxLib::tagForChargeDensity_m(), P3MPoissonSolver::test(), BeamStrippingPhysics::transformToH3plus(), BeamStrippingPhysics::transformToHminus(), BeamStrippingPhysics::transformToHydrogen(), BeamStrippingPhysics::transformToProton(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 630 of file PartBunchBase.h.
ParticlePos_t& PartBunchBase< T, Dim >::R |
Definition at line 479 of file PartBunchBase.h.
Referenced by CollimatorPhysics::addBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), ThickTracker::advanceParticles_m(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Source::apply(), FlexibleCollimator::apply(), GreenWakeFunction::apply(), VerticalFFAMagnet::apply(), Solenoid::apply(), CyclotronValley::apply(), ScalingFFAMagnet::apply(), Degrader::apply(), ParallelPlate::apply(), RBend3D::apply(), SBend3D::apply(), Bend2D::apply(), Corrector::apply(), TravelingWave::apply(), Monitor::apply(), VariableRFCavity::apply(), VariableRFCavityFringeField::apply(), Ring::apply(), Component::apply(), RFCavity::apply(), Multipole::apply(), MultipoleTBase::apply(), MultipoleT::apply(), Cyclotron::apply(), P3MPoissonSolver::applyConstantFocusing(), ParallelCyclotronTracker::applyPluginElements(), Monitor::applyToReferenceParticle(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanR(), P3MPoissonSolver::calculateGridForces(), BeamStripping::checkBeamStripping(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelTTracker::computeWakefield(), CollimatorPhysics::copyFromBunch(), Distribution::createBoundaryGeometry(), Distribution::createPriPart(), ParallelCyclotronTracker::deleteParticle(), RK4< FieldFunction, Arguments >::derivate_m(), LF2< FieldFunction, Arguments >::doAdvance_m(), RK4< FieldFunction, Arguments >::doAdvance_m(), Septum::doCheck(), Stripper::doCheck(), Probe::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), BoundaryGeometry::emitSecondaryFurmanPivi(), BoundaryGeometry::emitSecondaryVaughan(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::gapCrossKick_m(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::MtsTracker(), SecondaryEmissionPhysics::nSec(), ApplyField< T >::operator()(), ParallelCyclotronTracker::push(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPC::readStepData(), ParallelCyclotronTracker::RFkick(), MultiBunchHandler::saveBunch(), ParallelCyclotronTracker::seoMode_m(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), AmrBoxLib::tagForChargeDensity_m(), AmrBoxLib::tagForMaxNumParticles_m(), AmrBoxLib::tagForMinNumParticles_m(), AmrBoxLib::tagForMomenta_m(), P3MPoissonSolver::test(), ParallelTTracker::transformBunch(), StatWriter::write(), AmrYtWriter::writeParticles_m(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 551 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
Vector_t PartBunchBase< T, Dim >::RefPartP_m |
Definition at line 503 of file PartBunchBase.h.
Referenced by ParallelTTracker::applyFractionalStep(), ParallelTTracker::autophaseCavities(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), H5PartWrapperForPT::readStepHeader(), ParallelCyclotronTracker::singleParticleDump(), ParallelTTracker::updateReferenceParticle(), ParallelTTracker::updateRefToLabCSTrafo(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::RefPartR_m |
Definition at line 502 of file PartBunchBase.h.
Referenced by ParallelTTracker::applyFractionalStep(), ParallelTTracker::autophaseCavities(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), H5PartWrapperForPT::readStepHeader(), ParallelCyclotronTracker::singleParticleDump(), ParallelTTracker::updateReferenceParticle(), ParallelTTracker::updateRefToLabCSTrafo(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
ParticleType::type PartBunchBase< T, Dim >::refPType_m |
Definition at line 504 of file PartBunchBase.h.
|
protected |
maximal extend of particles
Definition at line 588 of file PartBunchBase.h.
|
protected |
mean position (m)
Definition at line 597 of file PartBunchBase.h.
|
protected |
minimal extend of particles
Definition at line 590 of file PartBunchBase.h.
|
protected |
rms correlation
Definition at line 610 of file PartBunchBase.h.
|
protected |
rms beam size (m)
Definition at line 593 of file PartBunchBase.h.
IpplTimings::TimerRef PartBunchBase< T, Dim >::selfFieldTimer_m |
timer for selfField calculation
Definition at line 537 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
the position along design trajectory
Definition at line 577 of file PartBunchBase.h.
|
protected |
Definition at line 560 of file PartBunchBase.h.
|
protected |
Definition at line 546 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
|
protected |
steps per turn for OPAL-cycl
Definition at line 653 of file PartBunchBase.h.
|
protected |
this parameter records the current steps since last bunch injection it helps to inject new bunches correctly in the restart run of OPAL-cycl it is stored during phase space dump.
Definition at line 671 of file PartBunchBase.h.
|
protected |
holds the actual time of the integration
Definition at line 571 of file PartBunchBase.h.
|
protected |
in % how much the mesh is enlarged
if larger than 0, emitt particles for tEmission_m [s]
Definition at line 642 of file PartBunchBase.h.
CoordinateSystemTrafo PartBunchBase< T, Dim >::toLabTrafo_m |
Definition at line 505 of file PartBunchBase.h.
Referenced by ParallelTTracker::applyFractionalStep(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::emitParticles(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), H5PartWrapperForPT::readStepHeader(), ParallelTTracker::updateRefToLabCSTrafo(), ParallelTTracker::writePhaseSpace(), and H5PartWrapperForPT::writeStepHeader().
ParticleAttrib< int > PartBunchBase< T, Dim >::TriID |
Definition at line 496 of file PartBunchBase.h.
Referenced by Distribution::createBoundaryGeometry(), Distribution::createPriPart(), Distribution::emitParticles(), BoundaryGeometry::emitSecondaryFurmanPivi(), BoundaryGeometry::emitSecondaryVaughan(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), and SecondaryEmissionPhysics::nSec().
|
protected |
Definition at line 559 of file PartBunchBase.h.