OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
#include <OpalData.h>
Inherits enable_shared_from_this< PartBunchBase< T, Dim > >.
Classes | |
class | ConstIterator |
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 | |
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) |
void | setDistribution (Distribution *d, size_t numberOfParticles, double current, const Beamline &bl) |
bool | isGridFixed () const |
bool | hasBinning () const |
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 | getLastemittedBin () |
void | setLocalBinCount (size_t num, int bin) |
void | calcGammas () |
Compute the gammas of all bins. More... | |
void | calcGammas_cycl () |
void | calcDebyeLength () |
Compute the (global) Debye length for the beam. More... | |
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_destroyCycl () |
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) const |
void | getLocalBounds (Vector_t &rmin, Vector_t &rmax) const |
std::pair< Vector_t, double > | getBoundingSphere () |
std::pair< Vector_t, double > | getLocalBoundingSphere () |
void | push_back (OpalParticle const &p) |
void | setParticle (FVector< double, 6 > z, int ii) |
void | setParticle (OpalParticle const &p, int ii) |
OpalParticle | getParticle (int ii) |
ConstIterator | begin () const |
ConstIterator | end () const |
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 () const |
void | set_sPos (double s) |
double | get_gamma () const |
double | get_meanKineticEnergy () const |
double | get_temperature () const |
double | get_debyeLength () const |
double | get_plasmaParameter () const |
double | get_rmsDensity () 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 |
Vector_t | get_68Percentile () const |
Vector_t | get_95Percentile () const |
Vector_t | get_99Percentile () const |
Vector_t | get_99_99Percentile () const |
Vector_t | get_normalizedEps_68Percentile () const |
Vector_t | get_normalizedEps_95Percentile () const |
Vector_t | get_normalizedEps_99Percentile () const |
Vector_t | get_normalizedEps_99_99Percentile () 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) |
void | setMassZeroPart (double mass) |
double | getCharge () const |
get the total charge per simulation particle More... | |
double | getChargePerParticle () const |
get the macro particle charge More... | |
double | getMassPerParticle () const |
virtual void | setSolver (FieldSolver *fs) |
bool | hasFieldSolver () |
FieldSolverType | 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 () const |
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 () const |
virtual double | getGamma (int i) |
virtual double | getBeta (int i) |
virtual void | actT () |
const PartData * | getReference () const |
double | getEmissionDeltaT () |
DistributionType | getDistType () const |
double | getMomentumTolerance () const |
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 () |
Inform & | print (Inform &os) |
virtual void | runTests () |
virtual void | do_binaryRepart () |
virtual void | resetInterpolationCache (bool clearCache=false) |
virtual VectorPair_t | getEExtrema ()=0 |
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 |
virtual void | resizeMesh () |
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 |
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 () const |
double | getQ () const |
Access to reference data. More... | |
double | getM () const |
double | getP () const |
double | getE () const |
ParticleOrigin | getPOrigin () const |
ParticleType | getPType () const |
double | getInitialBeta () const |
double | getInitialGamma () const |
void | resetQ (double q) |
void | resetM (double m) |
void | setPOrigin (ParticleOrigin) |
void | setPType (const std::string &type) |
Public Attributes | |
ParticlePos_t & | R |
ParticleIndex_t & | ID |
ParticleAttrib< Vector_t > | P |
ParticleAttrib< double > | Q |
ParticleAttrib< double > | M |
ParticleAttrib< double > | Phi |
ParticleAttrib< Vector_t > | Ef |
ParticleAttrib< Vector_t > | Eftmp |
ParticleAttrib< Vector_t > | Bf |
ParticleAttrib< int > | Bin |
ParticleAttrib< double > | dt |
ParticleAttrib< ParticleType > | PType |
ParticleAttrib< ParticleOrigin > | POrigin |
ParticleAttrib< int > | TriID |
ParticleAttrib< short > | cavityGapCrossed |
ParticleAttrib< short > | bunchNum |
Vector_t | RefPartR_m |
Vector_t | RefPartP_m |
CoordinateSystemTrafo | toLabTrafo_m |
ParticleOrigin | refPOrigin_m |
ParticleType | refPType_m |
PartBins * | pbin_m |
IpplTimings::TimerRef | distrReload_m |
timer for IC, can not be in Distribution.h More... | |
IpplTimings::TimerRef | distrCreate_m |
double | dtScInit_m |
double | deltaTau_m |
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 |
IpplTimings::TimerRef | selfFieldTimer_m |
timer for selfField calculation More... | |
const PartData * | reference |
UnitState_t | unit_state_ |
UnitState_t | stateOfLastBoundP_ |
double | centroid_m [2 *Dim] |
holds the centroid 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 | 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... | |
double | rmsDensity_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 |
double | massPerParticle_m |
int | distDump_m |
counter to store the distribution dump More... | |
double | dh_m |
Mesh enlargement. More... | |
double | tEmission_m |
relative enlargement of the mesh 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 |
DistributionMoments | momentsComputer_m |
bool | dcBeam_m |
double | periodLength_m |
std::shared_ptr < AbstractParticle< T, Dim > > | pbase_m |
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) |
Private Attributes | |
std::unique_ptr< Inform > | pmsg_m |
std::unique_ptr< std::ofstream > | f_stream |
bool | fixed_grid |
if the grid does not have to adapt More... | |
H5PartWrapper: a class that manages calls to H5Part
Definition at line 34 of file OpalData.h.
typedef AbstractParticle<T, Dim>::ParticleIndex_t PartBunchBase< T, Dim >::ParticleIndex_t |
Definition at line 53 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::ParticlePos_t PartBunchBase< T, Dim >::ParticlePos_t |
Definition at line 52 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::Position_t PartBunchBase< T, Dim >::Position_t |
Definition at line 55 of file PartBunchBase.h.
typedef AbstractParticle<T, Dim>::UpdateFlags PartBunchBase< T, Dim >::UpdateFlags_t |
Definition at line 54 of file PartBunchBase.h.
typedef std::pair<Vector_t, Vector_t> PartBunchBase< T, Dim >::VectorPair_t |
Definition at line 57 of file PartBunchBase.h.
enum PartBunchBase::UnitState_t |
Enumerator | |
---|---|
units | |
unitless |
Definition at line 61 of file PartBunchBase.h.
|
inlinevirtual |
Definition at line 64 of file PartBunchBase.h.
PartBunchBase< T, Dim >::PartBunchBase | ( | AbstractParticle< T, Dim > * | pb, |
const PartData * | ref | ||
) |
Definition at line 41 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::setup().
|
delete |
|
virtual |
Definition at line 1730 of file PartBunchBase.hpp.
|
inline |
Definition at line 279 of file PartBunchBase.h.
Referenced by begin(), and DistributionMoments::compute().
|
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 510 of file PartBunchBase.hpp.
References abs(), PartBunchBase< T, Dim >::boundpBoundsTimer_m, PartBunchBase< T, Dim >::boundpTimer_m, PartBunchBase< T, Dim >::boundpUpdateTimer_m, PartBunchBase< T, Dim >::dcBeam_m, PartBunchBase< T, Dim >::dh_m, PartBunchBase< T, Dim >::dist_m, Physics::e, ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::enableCaching(), endl(), PartBunchBase< T, Dim >::fs_m, PartBunchBase< T, Dim >::get_bounds(), FieldSolver::getFieldSolverType(), PartBunchBase< T, Dim >::getIfBeamEmitting(), PoissonSolver::getinteractionRadius(), PartBunchBase< T, Dim >::getLayout(), Distribution::getPercentageEmitted(), PartBunchBase< T, Dim >::getTotalNum(), PartBunchBase< T, Dim >::hr_m, PartBunchBase< T, Dim >::ID, ParticleAttrib< T >::isDirty(), PartBunchBase< T, Dim >::isGridFixed(), level1(), max(), PartBunchBase< T, Dim >::nr_m, PartBunchBase< T, Dim >::P, P3M, PartBunchBase< T, Dim >::periodLength_m, PartBunchBase< T, Dim >::Q, Attrib::Distribution::R, PartBunchBase< T, Dim >::rmax_m, PartBunchBase< T, Dim >::rmin_m, FieldSolver::solver_m, sqrt(), IpplTimings::startTimer(), PartBunchBase< T, Dim >::stateOfLastBoundP_, IpplTimings::stopTimer(), sum(), PartBunchBase< T, Dim >::unit_state_, PyOpal::PyOpalObjectNS::update(), PartBunchBase< T, Dim >::updateDomainLength(), PartBunchBase< T, Dim >::updateFields(), and WARNMSG.
Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelCyclotronTracker::deleteParticle(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), and MultiBunchHandler::readBunch().
void PartBunchBase< T, Dim >::boundp_destroyCycl | ( | ) |
delete particles which are too far away from the center of beam
Definition at line 611 of file PartBunchBase.hpp.
References abs(), PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::boundpBoundsTimer_m, PartBunchBase< T, Dim >::boundpTimer_m, PartBunchBase< T, Dim >::boundpUpdateTimer_m, PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::countTotalNumPerBunch(), PartBunchBase< T, Dim >::destroy(), PartBunchBase< T, Dim >::dh_m, PartBunchBase< T, Dim >::get_bounds(), PartBins::getLastemittedBin(), PartBunchBase< T, Dim >::getLocalNum(), DistributionMoments::getMeanPosition(), DistributionMoments::getStandardDeviationPosition(), PartBunchBase< T, Dim >::hr_m, PartBunchBase< T, Dim >::momentsComputer_m, PartBunchBase< T, Dim >::nr_m, PartBunchBase< T, Dim >::pbin_m, Attrib::Distribution::R, Options::remotePartDel, PartBunchBase< T, Dim >::rmax_m, PartBunchBase< T, Dim >::rmin_m, IpplTimings::startTimer(), IpplTimings::stopTimer(), PyOpal::PyOpalObjectNS::update(), PartBunchBase< T, Dim >::updateDomainLength(), PartBunchBase< T, Dim >::updateFields(), PartBins::updatePartInBin_cyc(), and PartBunchBase< T, Dim >::weHaveBins().
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 719 of file PartBunchBase.hpp.
References abs(), PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::binemitted_m, PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::destroy(), PartBunchBase< T, Dim >::dist_m, PartBunchBase< T, Dim >::gatherLoadBalanceStatistics(), Distribution::getLastEmittedEnergyBin(), PartBunchBase< T, Dim >::getLocalNum(), DistributionMoments::getMeanPosition(), PartBunchBase< T, Dim >::getNumberOfEnergyBins(), DistributionMoments::getStandardDeviationPosition(), PartBunchBase< T, Dim >::momentsComputer_m, ne(), PartBunchBase< T, Dim >::nr_m, Attrib::Distribution::R, reduce(), Options::remotePartDel, PartBunchBase< T, Dim >::updateDomainLength(), and PartBunchBase< T, Dim >::weHaveEnergyBins().
Referenced by ParallelTTracker::computeExternalFields().
void PartBunchBase< T, Dim >::calcBeamParameters | ( | ) |
Definition at line 1267 of file PartBunchBase.hpp.
References DistributionMoments::compute(), PartBunchBase< T, Dim >::get_bounds(), PartBunchBase< T, Dim >::momentsComputer_m, PartBunchBase< T, Dim >::rmax_m, PartBunchBase< T, Dim >::rmin_m, IpplTimings::startTimer(), PartBunchBase< T, Dim >::statParamTimer_m, and IpplTimings::stopTimer().
Referenced by Undulator::apply(), GreenWakeFunction::apply(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), DataSink::dumpSDDS(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::initDistInGlobalFrame(), MultiBunchHandler::injectBunch(), TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), ThickTracker::update_m(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStep(), and H5PartWrapperForPC::writeStepHeader().
void PartBunchBase< T, Dim >::calcBeamParametersInitial | ( | ) |
void PartBunchBase< T, Dim >::calcDebyeLength | ( | ) |
Compute the (global) Debye length for the beam.
Definition at line 413 of file PartBunchBase.hpp.
References DistributionMoments::computeDebyeLength(), PartBunchBase< T, Dim >::momentsComputer_m, and PartBunchBase< T, Dim >::rmsDensity_m.
void PartBunchBase< T, Dim >::calcEMean | ( | ) |
Definition at line 1754 of file PartBunchBase.hpp.
References DistributionMoments::computeMeanKineticEnergy(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by ParallelTTracker::dumpStats(), Distribution::injectBeam(), and ThickTracker::update_m().
void PartBunchBase< T, Dim >::calcGammas | ( | ) |
Compute the gammas of all bins.
Definition at line 339 of file PartBunchBase.hpp.
References abs(), PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::binemitted_m, PartBunchBase< T, Dim >::bingamma_m, PartBunchBase< T, Dim >::dist_m, dot(), endl(), ERRORMSG, OpalData::getInstance(), PartBunchBase< T, Dim >::getLocalNum(), Distribution::getNumberOfEnergyBins(), PartBunchBase< T, Dim >::getTotalNum(), INFOMSG, level2(), Hypervolume::n, PartBunchBase< T, Dim >::P, reduce(), and sqrt().
Referenced by ParallelTTracker::computeSpaceChargeFields().
void PartBunchBase< T, Dim >::calcGammas_cycl | ( | ) |
Definition at line 386 of file PartBunchBase.hpp.
References allreduce(), PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::bingamma_m, dot(), endl(), PartBins::getLastemittedBin(), PartBunchBase< T, Dim >::getLocalNum(), PartBins::getTotalNumPerBin(), INFOMSG, Hypervolume::n, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::pbin_m, and sqrt().
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m(), PartBunchBase< T, Dim >::resetPartBinBunch(), and PartBunchBase< T, Dim >::resetPartBinID2().
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 471 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dh_m, PartBunchBase< T, Dim >::get_bounds(), PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::Q, Attrib::Distribution::R, reduce(), and PartBunchBase< T, Dim >::updateDomainLength().
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 1518 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::calculateAngle(), endl(), PartBins::getLastemittedBin(), PartBunchBase< T, Dim >::getLocalNum(), INFOMSG, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::pbin_m, Units::rad2deg, and reduce().
|
protected |
|
protected |
size_t PartBunchBase< T, Dim >::calcNumPartsOutside | ( | Vector_t | x | ) |
returns the number of particles outside of a box defined by x
Definition at line 438 of file PartBunchBase.hpp.
References abs(), gather(), PartBunchBase< T, Dim >::get_rmean(), PartBunchBase< T, Dim >::getLocalNum(), IpplInfo::getNodes(), PartBunchBase< T, Dim >::globalPartPerNode_m, and Attrib::Distribution::R.
Referenced by DataSink::dumpSDDS().
|
protected |
angle range [0~2PI) degree
Definition at line 1797 of file PartBunchBase.hpp.
References atan2(), and Physics::two_pi.
Referenced by PartBunchBase< T, Dim >::calcMeanPhi().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by ParallelTTracker::computeSpaceChargeFields().
|
pure virtual |
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 >::countTotalNumPerBunch | ( | ) |
Definition at line 1455 of file PartBunchBase.hpp.
References allreduce(), PartBunchBase< T, Dim >::bunchLocalNum_m, PartBunchBase< T, Dim >::bunchNum, PartBunchBase< T, Dim >::bunchTotalNum_m, PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::getTotalNum(), PartBunchBase< T, Dim >::numBunch_m, and PAssert_LT.
Referenced by PartBunchBase< T, Dim >::boundp_destroyCycl(), and ParallelCyclotronTracker::initDistInGlobalFrame().
void PartBunchBase< T, Dim >::create | ( | size_t | M | ) |
Definition at line 1990 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by Undulator::apply(), Stripper::doCheck(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), PartBunchBase< T, Dim >::push_back(), and MultiBunchHandler::readBunch().
void PartBunchBase< T, Dim >::createWithID | ( | unsigned | id | ) |
Definition at line 1985 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by ScatteringPhysics::addParticleBackToBunch().
void PartBunchBase< T, Dim >::destroy | ( | size_t | M, |
size_t | I, | ||
bool | doNow = false |
||
) |
Definition at line 2000 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by Undulator::apply(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), ScatteringPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), and ParallelTTracker::evenlyDistributeParticles().
size_t PartBunchBase< T, Dim >::destroyT | ( | ) |
Definition at line 762 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::binemitted_m, PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::destroy(), PartBunchBase< T, Dim >::dist_m, PartBunchBase< T, Dim >::gatherLoadBalanceStatistics(), Distribution::getLastEmittedEnergyBin(), PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::getNumberOfEnergyBins(), PartBunchBase< T, Dim >::getTotalNum(), INFORM_ALL_NODES, ne(), PartBunchBase< T, Dim >::performDestroy(), reduce(), PartBunchBase< T, Dim >::setTotalNum(), and PartBunchBase< T, Dim >::weHaveEnergyBins().
Referenced by BeamStrippingPhysics::apply(), and ParallelTTracker::computeExternalFields().
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 212 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::doBinaryRepartition(), and ParallelCyclotronTracker::repartition().
bool PartBunchBase< T, Dim >::doEmission | ( | ) |
Definition at line 266 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getIfDistEmitting().
Referenced by 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 299 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::emitParticles().
Referenced by ParallelTTracker::emitParticles().
|
inline |
Definition at line 283 of file PartBunchBase.h.
Referenced by DistributionMoments::compute(), and end().
void PartBunchBase< T, Dim >::gatherLoadBalanceStatistics | ( | ) |
Definition at line 1244 of file PartBunchBase.hpp.
References gather(), PartBunchBase< T, Dim >::getLocalNum(), IpplInfo::getNodes(), and PartBunchBase< T, Dim >::globalPartPerNode_m.
Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), PartBunchBase< T, Dim >::destroyT(), and DataSink::dumpSDDS().
Vector_t PartBunchBase< T, Dim >::get_68Percentile | ( | ) | const |
Definition at line 1168 of file PartBunchBase.hpp.
References DistributionMoments::get68Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_95Percentile | ( | ) | const |
Definition at line 1173 of file PartBunchBase.hpp.
References DistributionMoments::get95Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_99_99Percentile | ( | ) | const |
Definition at line 1183 of file PartBunchBase.hpp.
References DistributionMoments::get99_99Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_99Percentile | ( | ) | const |
Definition at line 1178 of file PartBunchBase.hpp.
References DistributionMoments::get99Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
void PartBunchBase< T, Dim >::get_bounds | ( | Vector_t & | rmin, |
Vector_t & | rmax | ||
) | const |
Definition at line 876 of file PartBunchBase.hpp.
References allreduce(), Dim, PartBunchBase< T, Dim >::getLocalBounds(), and min().
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), GreenWakeFunction::apply(), PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::calcLineDensity(), Vacuum::checkVacuum(), ParallelTTracker::computeExternalFields(), CCollimator::doFinaliseCheck(), Septum::doPreCheck(), Probe::doPreCheck(), Stripper::doPreCheck(), CCollimator::doPreCheck(), ThickTracker::dump_m(), ParallelTTracker::execute(), PartBunchBase< T, Dim >::getBoundingSphere(), and ParallelTTracker::writePhaseSpace().
Vector_t PartBunchBase< T, Dim >::get_centroid | ( | ) | const |
Definition at line 1105 of file PartBunchBase.hpp.
References DistributionMoments::getMeanPosition(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by Undulator::apply(), Ring::apply(), ParallelTTracker::computeSpaceChargeFields(), MultiBunchHandler::injectBunch(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
double PartBunchBase< T, Dim >::get_DDx | ( | ) | const |
Definition at line 1220 of file PartBunchBase.hpp.
References DistributionMoments::getDDx(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_DDy | ( | ) | const |
Definition at line 1226 of file PartBunchBase.hpp.
References DistributionMoments::getDDy(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_debyeLength | ( | ) | const |
Definition at line 1078 of file PartBunchBase.hpp.
References DistributionMoments::getDebyeLength(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_Dx | ( | ) | const |
Definition at line 1208 of file PartBunchBase.hpp.
References DistributionMoments::getDx(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
double PartBunchBase< T, Dim >::get_Dy | ( | ) | const |
Definition at line 1214 of file PartBunchBase.hpp.
References DistributionMoments::getDy(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_emit | ( | ) | const |
Definition at line 1151 of file PartBunchBase.hpp.
References DistributionMoments::getGeometricEmittance(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by PartBunchBase< T, Dim >::print(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_gamma | ( | ) | const |
Definition at line 1061 of file PartBunchBase.hpp.
References DistributionMoments::getMeanGamma(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by Undulator::apply(), ThickTracker::update_m(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_halo | ( | ) | const |
Definition at line 1163 of file PartBunchBase.hpp.
References DistributionMoments::getHalo(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
|
virtual |
Reimplemented in AmrPartBunch.
Definition at line 1232 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::hr_m.
Referenced by MGPoissonSolver::MGPoissonSolver(), PartBunchBase< T, Dim >::print(), H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
Vector_t PartBunchBase< T, Dim >::get_maxExtent | ( | ) | const |
Definition at line 1099 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::rmax_m.
Referenced by Undulator::apply(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_meanKineticEnergy | ( | ) | const |
Definition at line 1067 of file PartBunchBase.hpp.
References DistributionMoments::getMeanKineticEnergy(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), CSRIGFWakeFunction::calculateGreenFunction(), ParallelTTracker::dumpStats(), Expressions::getEkin(), PartBunchBase< T, Dim >::print(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_norm_emit | ( | ) | const |
Definition at line 1157 of file PartBunchBase.hpp.
References DistributionMoments::getNormalizedEmittance(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_normalizedEps_68Percentile | ( | ) | const |
Definition at line 1188 of file PartBunchBase.hpp.
References DistributionMoments::getNormalizedEmittance68Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_normalizedEps_95Percentile | ( | ) | const |
Definition at line 1193 of file PartBunchBase.hpp.
References DistributionMoments::getNormalizedEmittance95Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_normalizedEps_99_99Percentile | ( | ) | const |
Definition at line 1203 of file PartBunchBase.hpp.
References DistributionMoments::getNormalizedEmittance99_99Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_normalizedEps_99Percentile | ( | ) | const |
Definition at line 1198 of file PartBunchBase.hpp.
References DistributionMoments::getNormalizedEmittance99Percentile(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_origin | ( | ) | const |
Definition at line 1093 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::rmin_m.
Referenced by H5PartWrapperForPC::writeStepData(), H5PartWrapperForPT::writeStepData(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
void PartBunchBase< T, Dim >::get_PBounds | ( | Vector_t & | min, |
Vector_t & | max | ||
) | const |
Definition at line 1261 of file PartBunchBase.hpp.
References bounds(), and PartBunchBase< T, Dim >::P.
Referenced by H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
double PartBunchBase< T, Dim >::get_plasmaParameter | ( | ) | const |
Definition at line 1083 of file PartBunchBase.hpp.
References DistributionMoments::getPlasmaParameter(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_pmean | ( | ) | const |
Definition at line 1135 of file PartBunchBase.hpp.
References DistributionMoments::getMeanMomentum(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by Undulator::apply(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), PartBunchBase< T, Dim >::getSigmaMatrix(), PartBunchBase< T, Dim >::print(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_pmean_Distribution | ( | ) | const |
Definition at line 1141 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, Distribution::get_pmean(), PartBunchBase< T, Dim >::getM(), pow(), and sqrt().
Referenced by ParallelTTracker::execute(), and ThickTracker::execute().
Vector_t PartBunchBase< T, Dim >::get_prms | ( | ) | const |
Definition at line 1129 of file PartBunchBase.hpp.
References DistributionMoments::getStandardDeviationMomentum(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by PartBunchBase< T, Dim >::print(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
Vector_t PartBunchBase< T, Dim >::get_rmean | ( | ) | const |
Definition at line 1123 of file PartBunchBase.hpp.
References DistributionMoments::getMeanPosition(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by PartBunchBase< T, Dim >::calcNumPartsOutside(), PartBunchBase< T, Dim >::getSigmaMatrix(), PartBunchBase< T, Dim >::print(), StatWriter::write(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::get_rmsDensity | ( | ) | const |
Definition at line 1088 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::rmsDensity_m.
Referenced by StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_rprms | ( | ) | const |
Definition at line 1117 of file PartBunchBase.hpp.
References DistributionMoments::getStandardDeviationRP(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by PartBunchBase< T, Dim >::print(), and StatWriter::write().
Vector_t PartBunchBase< T, Dim >::get_rrms | ( | ) | const |
Definition at line 1111 of file PartBunchBase.hpp.
References DistributionMoments::getStandardDeviationPosition(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by DataSink::dumpSDDS(), MultiBunchHandler::injectBunch(), PartBunchBase< T, Dim >::print(), StatWriter::write(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
double PartBunchBase< T, Dim >::get_sPos | ( | ) | const |
get the spos of the primary beam
none |
Definition at line 1049 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::spos_m.
Referenced by CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), BeamStrippingPhysics::apply(), Monitor::applyToReferenceParticle(), Distribution::doRestartOpalCycl(), ParallelTTracker::execute(), ParallelCyclotronTracker::initDistInGlobalFrame(), Monitor::initialise(), PartBunchBase< T, Dim >::print(), ParallelCyclotronTracker::saveInjectValues(), ThickTracker::update_m(), MemoryWriter::write(), StatWriter::write(), MemoryProfiler::write(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
double PartBunchBase< T, Dim >::get_temperature | ( | ) | const |
Definition at line 1073 of file PartBunchBase.hpp.
References DistributionMoments::getTemperature(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by StatWriter::write().
|
inline |
Definition at line 527 of file PartBunchBase.h.
|
virtual |
Definition at line 1724 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getBinGamma | ( | int | bin | ) |
Get gamma of one bin.
Definition at line 420 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bingamma_m.
Referenced by AmrBoxLib::computeSelfFields_cycl().
std::pair< Vector_t, double > PartBunchBase< T, Dim >::getBoundingSphere | ( | ) |
Definition at line 918 of file PartBunchBase.hpp.
References dot(), PartBunchBase< T, Dim >::get_bounds(), and sqrt().
double PartBunchBase< T, Dim >::getCharge | ( | ) | const |
get the total charge per simulation particle
Definition at line 1317 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Q, and sum().
Referenced by StatWriter::write(), DataSink::writeImpactStatistics(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getChargePerParticle | ( | ) | const |
get the macro particle charge
Definition at line 1323 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::qi_m.
Referenced by Undulator::apply(), GreenWakeFunction::apply(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), Distribution::injectBeam(), Multipole::isFocusing(), and DataSink::writeImpactStatistics().
double PartBunchBase< T, Dim >::getCouplingConstant | ( | ) | const |
Definition at line 1276 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::couplingConstant_m.
double PartBunchBase< T, Dim >::getdE | ( | ) | const |
Definition at line 1700 of file PartBunchBase.hpp.
References DistributionMoments::getStdKineticEnergy(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by PartBunchBase< T, Dim >::print(), StatWriter::write(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
size_t PartBunchBase< T, Dim >::getDestroyNum | ( | ) | const |
Definition at line 1917 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
DistributionType PartBunchBase< T, Dim >::getDistType | ( | ) | const |
Definition at line 1676 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getType().
Referenced by ParallelCyclotronTracker::initDistInGlobalFrame().
double PartBunchBase< T, Dim >::getdT | ( | ) | const |
Definition at line 1025 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dt_m.
Referenced by Undulator::apply(), BeamStrippingPhysics::apply(), ScatteringPhysics::apply(), Corrector::apply(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), ParallelTTracker::autophaseCavities(), ParallelCyclotronTracker::bgf_main_collision_test(), Bend2D::calculateBendAngle(), Bend2D::calculateRefTrajectory(), ParallelTTracker::changeDT(), ParallelTTracker::computeParticleMatterInteraction(), MGPoissonSolver::computePotential(), Monitor::driftToCorrectPositionAndSave(), ThickTracker::dump_m(), Distribution::emitParticles(), ParallelTTracker::emitParticles(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), Corrector::goOnline(), RBend3D::initialise(), ParallelCyclotronTracker::initializeTracking_m(), ParallelTTracker::prepareEmission(), PartBunchBase< T, Dim >::print(), ParallelTTracker::selectDT(), ParallelTTracker::setTime(), ParallelCyclotronTracker::setTimeStep(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), PartBunchBase< T, Dim >::switchToUnitlessPositions(), ParallelTTracker::timeIntegration2(), ParallelTTracker::updateReferenceParticle(), ParallelTTracker::updateRefToLabCSTrafo(), StatWriter::write(), and ParallelTTracker::writePhaseSpace().
double PartBunchBase< T, Dim >::getE | ( | ) | const |
Definition at line 1648 of file PartBunchBase.hpp.
References PartData::getE(), and PartBunchBase< T, Dim >::reference.
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
double PartBunchBase< T, Dim >::getEmissionDeltaT | ( | ) |
Definition at line 1742 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getEmissionDeltaT().
Referenced by ParallelTTracker::prepareEmission(), and ParallelTTracker::selectDT().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
FieldSolverType PartBunchBase< T, Dim >::getFieldSolverType | ( | ) | const |
Return the fieldsolver type if we have a fieldsolver.
Definition at line 1361 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::fs_m, FieldSolver::getFieldSolverType(), and NONE.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
|
virtual |
Definition at line 1718 of file PartBunchBase.hpp.
size_t PartBunchBase< T, Dim >::getGhostNum | ( | ) | const |
Definition at line 1922 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by P3MPoissonSolver::calculatePairForces().
Vector_t PartBunchBase< T, Dim >::getGlobalMeanR | ( | ) |
Definition at line 1487 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalMeanR_m.
Quaternion_t PartBunchBase< T, Dim >::getGlobalToLocalQuaternion | ( | ) |
Definition at line 1500 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalToLocalQuaternion_m.
long long PartBunchBase< T, Dim >::getGlobalTrackStep | ( | ) | const |
Definition at line 1389 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalTrackStep_m.
Referenced by Monitor::applyToReferenceParticle(), Distribution::doRestartOpalT(), ThickTracker::dump_m(), ParallelTTracker::dumpStats(), ParallelTTracker::execute(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
bool PartBunchBase< T, Dim >::getIfBeamEmitting | ( | ) |
Definition at line 91 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, Distribution::getIfDistEmitting(), and reduce().
Referenced by PartBunchBase< T, Dim >::boundp(), ParallelTTracker::emitParticles(), and ParallelTTracker::selectDT().
double PartBunchBase< T, Dim >::getInitialBeta | ( | ) | const |
Definition at line 1706 of file PartBunchBase.hpp.
References PartData::getBeta(), and PartBunchBase< T, Dim >::reference.
Referenced by ThickTracker::advanceDispersion_m(), and ThickTracker::updateParticle_m().
double PartBunchBase< T, Dim >::getInitialGamma | ( | ) | const |
Definition at line 1712 of file PartBunchBase.hpp.
References PartData::getGamma(), and PartBunchBase< T, Dim >::reference.
Referenced by Distribution::createOpalCycl(), and ThickTracker::updateParticle_m().
Vector_t PartBunchBase< T, Dim >::getKs3DRefp | ( | ) |
Vector_t PartBunchBase< T, Dim >::getKs3DRefr | ( | ) |
int PartBunchBase< T, Dim >::getLastemittedBin | ( | ) |
Definition at line 322 of file PartBunchBase.hpp.
References PartBins::getLastemittedBin(), and PartBunchBase< T, Dim >::pbin_m.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m(), and ParallelCyclotronTracker::deleteParticle().
int PartBunchBase< T, Dim >::getLastEmittedEnergyBin | ( | ) |
Definition at line 105 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, Distribution::getLastEmittedEnergyBin(), and reduce().
Referenced by ParallelTTracker::computeSpaceChargeFields().
ParticleLayout< T, Dim > & PartBunchBase< T, Dim >::getLayout | ( | ) |
Definition at line 1937 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by PartBunchBase< T, Dim >::boundp(), AmrBoxLib::create(), AmrYtWriter::writeBunch(), and AmrYtWriter::writeParticles_m().
const ParticleLayout< T, Dim > & PartBunchBase< T, Dim >::getLayout | ( | ) | const |
Definition at line 1942 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
size_t PartBunchBase< T, Dim >::getLoadBalance | ( | int | p | ) | const |
Definition at line 1255 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalPartPerNode_m.
Referenced by LBalWriter::write().
std::pair< Vector_t, double > PartBunchBase< T, Dim >::getLocalBoundingSphere | ( | ) |
Definition at line 931 of file PartBunchBase.hpp.
References dot(), PartBunchBase< T, Dim >::getLocalBounds(), and sqrt().
Referenced by ParallelTTracker::computeParticleMatterInteraction().
void PartBunchBase< T, Dim >::getLocalBounds | ( | Vector_t & | rmin, |
Vector_t & | rmax | ||
) | const |
Definition at line 897 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::getLocalNum(), and Attrib::Distribution::R.
Referenced by PartBunchBase< T, Dim >::get_bounds(), and PartBunchBase< T, Dim >::getLocalBoundingSphere().
size_t PartBunchBase< T, Dim >::getLocalNum | ( | ) | const |
Definition at line 1911 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by ScatteringPhysics::addParticleBackToBunch(), ThickTracker::advanceParticles_m(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Undulator::apply(), GreenWakeFunction::apply(), Tracker::applyDrift(), Tracker::applyTransform(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::borisExternalFields(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::calcGammas_cycl(), PartBunchBase< T, Dim >::calcLineDensity(), ParallelCyclotronTracker::calcMeanP(), PartBunchBase< T, Dim >::calcMeanPhi(), ParallelCyclotronTracker::calcMeanR(), PartBunchBase< T, Dim >::calcNumPartsOutside(), P3MPoissonSolver::calculatePairForces(), ParallelTTracker::changeDT(), ParallelCyclotronTracker::checkNumPart(), Vacuum::checkVacuum(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelTTracker::computeSpaceChargeFields(), ParallelTTracker::computeWakefield(), ScatteringPhysics::copyFromBunch(), PartBunchBase< T, Dim >::countTotalNumPerBunch(), Distribution::createOpalCycl(), ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), CCollimator::doFinaliseCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), PartBunchBase< double, 3 >::end(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::finalizeTracking_m(), PartBunchBase< T, Dim >::gatherLoadBalanceStatistics(), PartBunchBase< T, Dim >::getLocalBounds(), ParallelCyclotronTracker::globalToLocal(), Degrader::goOnline(), MultiBunchHandler::injectBunch(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::localToGlobal(), PartBunchBase< T, Dim >::maximumAmplitudes(), PartBunchBase< T, Dim >::ConstIterator::operator*(), AmrBoxLib::postRegrid_m(), ParallelCyclotronTracker::push(), PartBunchBase< T, Dim >::push_back(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), PartBunchBase< T, Dim >::resetPartBinBunch(), PartBunchBase< T, Dim >::resetPartBinID2(), ParallelCyclotronTracker::rotateAroundX(), ParallelCyclotronTracker::rotateAroundZ(), ParallelCyclotronTracker::rotateWithQuaternion(), MultiBunchHandler::saveBunch(), ParallelCyclotronTracker::seoMode_m(), ParallelTTracker::setTime(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), PartBunchBase< T, Dim >::swap(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), PartBunchBase< T, Dim >::switchToUnitlessPositions(), ParallelTTracker::timeIntegration2(), ParallelTTracker::transformBunch(), ThickTracker::update_m(), PartBunchBase< T, Dim >::updateNumTotal(), Vacuum::updateParticleAttributes(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
size_t PartBunchBase< T, Dim >::getLocalNumPerBunch | ( | short | n | ) | const |
Definition at line 1448 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bunchLocalNum_m, Hypervolume::n, and PAssert_LT.
Referenced by ParallelCyclotronTracker::deleteParticle().
long long PartBunchBase< T, Dim >::getLocalTrackStep | ( | ) | const |
Definition at line 1407 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::localTrackStep_m.
Referenced by MGPoissonSolver::computeMap(), MGPoissonSolver::computePotential(), AmrBoxLib::computeSelfFields_cycl(), Distribution::doRestartOpalT(), ParallelCyclotronTracker::initializeTracking_m(), ParallelCyclotronTracker::initTrackOrbitFile(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
double PartBunchBase< T, Dim >::getM | ( | ) | const |
Definition at line 1636 of file PartBunchBase.hpp.
References PartData::getM(), and PartBunchBase< T, Dim >::reference.
Referenced by ScatteringPhysics::apply(), Degrader::applyToReferenceParticle(), MultiBunchHandler::calcBunchBeamParameters(), BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), BendBase::calcGamma(), CSRIGFWakeFunction::calculateGreenFunction(), Distribution::createOpalCycl(), Distribution::createOpalT(), Distribution::doRestartOpalCycl(), ParallelTTracker::execute(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelTTracker::findStartPosition(), PartBunchBase< T, Dim >::get_pmean_Distribution(), Corrector::goOnline(), PartBunchBase< T, Dim >::ConstIterator::operator*(), H5PartWrapperForPC::readStepHeader(), ParallelCyclotronTracker::RFkick(), Corrector::setDesignEnergy(), Distribution::setupEmissionModelAstra(), Distribution::setupEmissionModelNone(), Distribution::setupParticleBins(), Vacuum::updateParticleAttributes(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getMassPerParticle | ( | ) | const |
Definition at line 1328 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::massPerParticle_m.
Referenced by Distribution::emitParticles(), and Distribution::injectBeam().
double PartBunchBase< T, Dim >::getMomentumTolerance | ( | ) | const |
Definition at line 1682 of file PartBunchBase.hpp.
References PartData::getMomentumTolerance(), and PartBunchBase< T, Dim >::reference.
Referenced by ParallelCyclotronTracker::checkFileMomentum(), and Distribution::createOpalT().
size_t PartBunchBase< T, Dim >::getNumberOfEmissionSteps | ( | ) |
Definition at line 116 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getNumberOfEmissionSteps().
Referenced by ParallelTTracker::prepareEmission().
int PartBunchBase< T, Dim >::getNumberOfEnergyBins | ( | ) |
Definition at line 122 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getNumberOfEnergyBins().
Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), ParallelTTracker::computeSpaceChargeFields(), PartBunchBase< T, Dim >::destroyT(), and ParallelTTracker::prepareEmission().
short PartBunchBase< T, Dim >::getNumBunch | ( | ) | const |
Definition at line 1421 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::numBunch_m.
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 1642 of file PartBunchBase.hpp.
References PartData::getP(), and PartBunchBase< T, Dim >::reference.
Referenced by Distribution::createOpalT(), and Distribution::setupParticleBins().
OpalParticle PartBunchBase< T, Dim >::getParticle | ( | int | ii | ) |
Definition at line 977 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::ID, PartBunchBase< T, Dim >::M, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::Q, and Attrib::Distribution::R.
Referenced by Tracker::applyDrift(), Tracker::applyTransform(), and PartBunchBase< T, Dim >::maximumAmplitudes().
ParticleOrigin PartBunchBase< T, Dim >::getPOrigin | ( | ) | const |
Definition at line 1654 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::refPOrigin_m.
Referenced by Stripper::doFinaliseCheck().
ParticleType PartBunchBase< T, Dim >::getPType | ( | ) | const |
Definition at line 1665 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::refPType_m.
Referenced by BeamStrippingPhysics::apply(), ScatteringPhysics::apply(), ScatteringPhysics::computeEnergyLoss(), Distribution::emitParticles(), and Distribution::injectBeam().
|
virtual |
Definition at line 815 of file PartBunchBase.hpp.
|
virtual |
Definition at line 830 of file PartBunchBase.hpp.
|
virtual |
Definition at line 820 of file PartBunchBase.hpp.
|
virtual |
Definition at line 835 of file PartBunchBase.hpp.
|
virtual |
Definition at line 825 of file PartBunchBase.hpp.
double PartBunchBase< T, Dim >::getQ | ( | ) | const |
Access to reference data.
Definition at line 1630 of file PartBunchBase.hpp.
References PartData::getQ(), and PartBunchBase< T, Dim >::reference.
Referenced by ScatteringPhysics::apply(), Degrader::applyToReferenceParticle(), BendBase::calcDesignRadius(), BendBase::calcFieldAmplitude(), Distribution::createOpalCycl(), Distribution::createOpalT(), Distribution::emitParticles(), RBend::findChordLength(), Bend2D::findIdealBendParameters(), Corrector::goOnline(), RBend3D::initialise(), RFCavity::initialise(), ParallelCyclotronTracker::RFkick(), Corrector::setDesignEnergy(), Vacuum::updateParticleAttributes(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
Quaternion_t PartBunchBase< T, Dim >::getQKs3D | ( | ) |
const PartData * PartBunchBase< T, Dim >::getReference | ( | ) | const |
Definition at line 1736 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::reference.
Referenced by Bend2D::setupPusher(), RFCavity::trackOnAxisParticle(), and RBend3D::trackRefParticleThrough().
|
pure virtual |
Implemented in AmrPartBunch, and PartBunch.
Referenced by H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
FMatrix< double, 2 *Dim, 2 *Dim > PartBunchBase< T, Dim >::getSigmaMatrix | ( | ) | const |
Definition at line 2020 of file PartBunchBase.hpp.
References Dim, PartBunchBase< T, Dim >::get_pmean(), PartBunchBase< T, Dim >::get_rmean(), DistributionMoments::getMoments6x6(), and PartBunchBase< T, Dim >::momentsComputer_m.
Referenced by ThickTracker::track_m(), and StatWriter::write().
int PartBunchBase< T, Dim >::getStepsPerTurn | ( | ) | const |
Definition at line 1377 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::stepsPerTurn_m.
Referenced by ParallelCyclotronTracker::initializeTracking_m().
int PartBunchBase< T, Dim >::getSteptoLastInj | ( | ) | const |
Definition at line 1512 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::SteptoLastInj_m.
Referenced by Distribution::doRestartOpalCycl(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getT | ( | ) | const |
Definition at line 1043 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::t_m.
Referenced by Undulator::apply(), ScatteringPhysics::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(), PartBunchBase< T, Dim >::ConstIterator::operator*(), PartBunchBase< T, Dim >::print(), ParallelCyclotronTracker::push(), ParallelCyclotronTracker::saveInjectValues(), ThickTracker::update_m(), ParallelTTracker::updateReferenceParticle(), ParallelCyclotronTracker::updateTime(), LBalWriter::write(), GridLBalWriter::write(), MemoryWriter::write(), StatWriter::write(), MemoryProfiler::write(), DataSink::writeImpactStatistics(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepHeader(), and H5PartWrapperForPC::writeStepHeader().
double PartBunchBase< T, Dim >::getTEmission | ( | ) |
Definition at line 260 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::tEmission_m.
Referenced by ParallelTTracker::prepareEmission().
size_t PartBunchBase< T, Dim >::getTotalNum | ( | ) | const |
Definition at line 1906 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by Undulator::apply(), ParallelCyclotronTracker::applyPluginElements(), PartBunchBase< T, Dim >::boundp(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchMode_m(), PartBunchBase< T, Dim >::calcGammas(), ParallelCyclotronTracker::calcMeanP(), ParallelCyclotronTracker::calcMeanR(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), PartBunchBase< T, Dim >::countTotalNumPerBunch(), Distribution::createOpalCycl(), PartBunchBase< T, Dim >::destroyT(), Probe::doInitialise(), 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(), PartBunchBase< T, Dim >::print(), PartBunchBase< T, Dim >::setCharge(), PartBunchBase< T, Dim >::setMass(), 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 1434 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bunchTotalNum_m, Hypervolume::n, and PAssert_LT.
Referenced by ParallelCyclotronTracker::calcMeanR(), and ParallelCyclotronTracker::computePathLengthUpdate().
bool PartBunchBase< T, Dim >::getUpdateFlag | ( | UpdateFlags_t | f | ) | const |
Definition at line 1947 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
|
virtual |
Definition at line 841 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
|
virtual |
Definition at line 859 of file PartBunchBase.hpp.
|
virtual |
Definition at line 847 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
|
virtual |
Definition at line 865 of file PartBunchBase.hpp.
|
virtual |
Definition at line 853 of file PartBunchBase.hpp.
References Attrib::Distribution::R.
void PartBunchBase< T, Dim >::ghostDestroy | ( | size_t | M, |
size_t | I | ||
) |
Definition at line 2010 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
void PartBunchBase< T, Dim >::globalCreate | ( | size_t | np | ) |
Definition at line 1995 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
bool PartBunchBase< T, Dim >::hasBinning | ( | ) | const |
Definition at line 248 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbin_m.
Referenced by H5PartWrapperForPC::writeStepData().
bool PartBunchBase< T, Dim >::hasFieldSolver | ( | ) |
Definition at line 1351 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::fs_m, and FieldSolver::hasValidSolver().
Referenced by ParallelCyclotronTracker::bunchMode_m(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeWakefield(), ParallelTTracker::doBinaryRepartition(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::getFieldsAtPoint(), and ParallelCyclotronTracker::MtsTracker().
void PartBunchBase< T, Dim >::incrementT | ( | ) |
Definition at line 1037 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dt_m, and PartBunchBase< T, Dim >::t_m.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), and ParallelTTracker::execute().
void PartBunchBase< T, Dim >::incTrackSteps | ( | ) |
Definition at line 1401 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalTrackStep_m, and PartBunchBase< T, Dim >::localTrackStep_m.
Referenced by ParallelTTracker::execute().
|
pure virtual |
Implemented in PartBunch, and AmrPartBunch.
Referenced by PartBunchBase< T, Dim >::setSolver().
bool PartBunchBase< T, Dim >::isGridFixed | ( | ) | const |
Definition at line 242 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::fixed_grid.
Referenced by PartBunchBase< T, Dim >::boundp().
void PartBunchBase< T, Dim >::iterateEmittedBin | ( | int | binNumber | ) |
Definition at line 1748 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::binemitted_m.
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 986 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::getParticle(), OpalParticle::getPx(), OpalParticle::getPy(), OpalParticle::getPz(), OpalParticle::getX(), OpalParticle::getY(), OpalParticle::getZ(), max(), pow(), and test::result.
void PartBunchBase< T, Dim >::performDestroy | ( | bool | updateLocalNum = false | ) |
Definition at line 2005 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by ScatteringPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), and PartBunchBase< T, Dim >::destroyT().
Inform & PartBunchBase< T, Dim >::print | ( | Inform & | os | ) |
Definition at line 1759 of file PartBunchBase.hpp.
References abs(), PartBunchBase< T, Dim >::dh_m, endl(), Inform::flags(), PartBunchBase< T, Dim >::get_emit(), PartBunchBase< T, Dim >::get_hr(), PartBunchBase< T, Dim >::get_meanKineticEnergy(), PartBunchBase< T, Dim >::get_pmean(), PartBunchBase< T, Dim >::get_prms(), PartBunchBase< T, Dim >::get_rmean(), PartBunchBase< T, Dim >::get_rprms(), PartBunchBase< T, Dim >::get_rrms(), PartBunchBase< T, Dim >::get_sPos(), Util::getChargeString(), PartBunchBase< T, Dim >::getdE(), PartBunchBase< T, Dim >::getdT(), Util::getEnergyString(), Util::getLengthString(), PartBunchBase< T, Dim >::getT(), Util::getTimeString(), PartBunchBase< T, Dim >::getTotalNum(), level1(), PartBunchBase< T, Dim >::Q, PartBunchBase< T, Dim >::qi_m, PartBunchBase< T, Dim >::rmax_m, PartBunchBase< T, Dim >::rmin_m, and sum().
Referenced by Undulator::apply(), and PartBunch::print().
void PartBunchBase< T, Dim >::push_back | ( | OpalParticle const & | p | ) |
Definition at line 944 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::create(), endl(), PartBunchBase< T, Dim >::getLocalNum(), OpalParticle::getP(), OpalParticle::getR(), PartBunchBase< T, Dim >::P, Attrib::Distribution::R, and PyOpal::PyOpalObjectNS::update().
Referenced by Tracker::addToBunch().
void PartBunchBase< T, Dim >::Rebin | ( | ) |
Definition at line 128 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::dist_m, endl(), Distribution::getIfDistEmitting(), Distribution::Rebin(), and reduce().
Referenced by ParallelTTracker::emitParticles().
void PartBunchBase< T, Dim >::rebin | ( | ) |
Definition at line 313 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::pbin_m, and PartBins::resetBins().
void PartBunchBase< T, Dim >::resetID | ( | ) |
Definition at line 1962 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
|
virtual |
Reimplemented in PartBunch.
Definition at line 1821 of file PartBunchBase.hpp.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelTTracker::emitParticles().
void PartBunchBase< T, Dim >::resetM | ( | double | m | ) |
Definition at line 1694 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::reference.
Referenced by Stripper::doFinaliseCheck().
bool PartBunchBase< T, Dim >::resetPartBinBunch | ( | ) |
Definition at line 1608 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::calcGammas_cycl(), PartBunchBase< T, Dim >::getLocalNum(), PartBins::getNBins(), PartBunchBase< T, Dim >::numBunch_m, PartBunchBase< T, Dim >::pbin_m, and PartBins::resetPartInBin_cyc().
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 1557 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::calcGammas_cycl(), endl(), ERRORMSG, floor(), PartBunchBase< T, Dim >::getLocalNum(), PartBins::getNBins(), INFOMSG, Hypervolume::n, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::pbin_m, pow(), reduce(), PartBins::resetPartInBin_cyc(), and sqrt().
Referenced by MultiBunchHandler::updateParticleBins().
void PartBunchBase< T, Dim >::resetQ | ( | double | q | ) |
Set reference data
Definition at line 1688 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::reference.
Referenced by Stripper::doFinaliseCheck().
|
inlinevirtual |
Reimplemented in PartBunch.
Definition at line 506 of file PartBunchBase.h.
|
virtual |
Definition at line 1815 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in AmrPartBunch.
Definition at line 1238 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dh_m.
Referenced by FieldSolver::initAmrObject_m(), FieldSolver::initSolver(), and AmrPartBunch::set_meshEnlargement().
void PartBunchBase< T, Dim >::set_sPos | ( | double | s | ) |
Definition at line 1055 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::spos_m.
Referenced by 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 1854 of file PartBunchBase.hpp.
Referenced by TrackRun::setupFieldsolver().
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 1848 of file PartBunchBase.hpp.
|
virtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 1860 of file PartBunchBase.hpp.
Referenced by TrackRun::setupFieldsolver().
|
inline |
Definition at line 531 of file PartBunchBase.h.
void PartBunchBase< T, Dim >::setBeamFrequency | ( | double | v | ) |
Definition at line 2015 of file PartBunchBase.hpp.
References Physics::c, and PartBunchBase< T, Dim >::periodLength_m.
Referenced by 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 426 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, cmp_diff::eq(), PartBunchBase< T, Dim >::Q, and where().
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 432 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bin, cmp_diff::eq(), PartBunchBase< T, Dim >::Q, PartBunchBase< T, Dim >::qi_m, and where().
void PartBunchBase< T, Dim >::setCharge | ( | double | q | ) |
Definition at line 1288 of file PartBunchBase.hpp.
References endl(), PartBunchBase< T, Dim >::getTotalNum(), PartBunchBase< T, Dim >::Q, PartBunchBase< T, Dim >::qi_m, and WARNMSG.
Referenced by TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setChargeZeroPart | ( | double | q | ) |
Definition at line 1298 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::qi_m.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setCouplingConstant | ( | double | c | ) |
Definition at line 1282 of file PartBunchBase.hpp.
References Physics::c, and PartBunchBase< T, Dim >::couplingConstant_m.
Referenced by TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setDistribution | ( | Distribution * | d, |
std::vector< Distribution * > | addedDistributions, | ||
size_t & | np | ||
) |
Definition at line 218 of file PartBunchBase.hpp.
References Distribution::createOpalT(), and PartBunchBase< T, Dim >::dist_m.
Referenced by TrackRun::setDistributionParallelT(), and TrackRun::setupCyclotronTracker().
void PartBunchBase< T, Dim >::setDistribution | ( | Distribution * | d, |
size_t | numberOfParticles, | ||
double | current, | ||
const Beamline & | bl | ||
) |
Definition at line 232 of file PartBunchBase.hpp.
References Distribution::createOpalCycl(), and PartBunchBase< T, Dim >::dist_m.
void PartBunchBase< T, Dim >::setdT | ( | double | dt | ) |
Definition at line 1019 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dt, and PartBunchBase< T, Dim >::dt_m.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::execute(), ParallelTTracker::selectDT(), TrackRun::setupCyclotronTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), and ThickTracker::update_m().
void PartBunchBase< T, Dim >::setEnergyBins | ( | int | numberOfEnergyBins | ) |
Definition at line 145 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::binemitted_m, and PartBunchBase< T, Dim >::bingamma_m.
Referenced by Distribution::initializeBeam(), and PartBunchBase< T, Dim >::setPBins().
void PartBunchBase< T, Dim >::setGlobalMeanR | ( | Vector_t | globalMeanR | ) |
Definition at line 1481 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalMeanR_m.
Referenced by ParallelTTracker::computeSpaceChargeFields(), and ParallelCyclotronTracker::computeSpaceChargeFields_m().
void PartBunchBase< T, Dim >::setGlobalToLocalQuaternion | ( | Quaternion_t | globalToLocalQuaternion | ) |
Definition at line 1493 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalToLocalQuaternion_m.
Referenced by ParallelCyclotronTracker::computeSpaceChargeFields_m().
void PartBunchBase< T, Dim >::setGlobalTrackStep | ( | long long | n | ) |
step in multiple TRACK commands
Definition at line 1383 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::globalTrackStep_m, and Hypervolume::n.
Referenced by H5PartWrapperForPC::readStepHeader(), H5PartWrapperForPT::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 331 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbin_m, and PartBins::setPartNum().
Referenced by ParallelCyclotronTracker::deleteParticle().
void PartBunchBase< T, Dim >::setLocalNum | ( | size_t | n | ) |
Definition at line 1932 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
void PartBunchBase< T, Dim >::setLocalNumPerBunch | ( | size_t | numpart, |
short | n | ||
) |
Definition at line 1441 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bunchLocalNum_m, 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 1395 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::localTrackStep_m, and Hypervolume::n.
Referenced by H5PartWrapperForPC::readStepHeader(), H5PartWrapperForPT::readStepHeader(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), and ParallelCyclotronTracker::update_m().
void PartBunchBase< T, Dim >::setMass | ( | double | mass | ) |
Definition at line 1304 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::getTotalNum(), PartBunchBase< T, Dim >::M, and PartBunchBase< T, Dim >::massPerParticle_m.
Referenced by TrackRun::setupCyclotronTracker(), and TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setMassZeroPart | ( | double | mass | ) |
Definition at line 1311 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::massPerParticle_m.
Referenced by TrackRun::setupTTracker().
void PartBunchBase< T, Dim >::setNumBunch | ( | short | n | ) |
Definition at line 1413 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bunchLocalNum_m, PartBunchBase< T, Dim >::bunchTotalNum_m, Hypervolume::n, and PartBunchBase< T, Dim >::numBunch_m.
Referenced by Distribution::initializeBeam(), MultiBunchHandler::injectBunch(), and H5PartWrapperForPC::readStepHeader().
void PartBunchBase< T, Dim >::setParticle | ( | FVector< double, 6 > | z, |
int | ii | ||
) |
Definition at line 959 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::P, and Attrib::Distribution::R.
Referenced by Tracker::applyDrift(), and Tracker::applyTransform().
void PartBunchBase< T, Dim >::setParticle | ( | OpalParticle const & | p, |
int | ii | ||
) |
Definition at line 970 of file PartBunchBase.hpp.
References OpalParticle::getP(), OpalParticle::getR(), PartBunchBase< T, Dim >::P, and Attrib::Distribution::R.
void PartBunchBase< T, Dim >::setPBins | ( | PartBins * | pbin | ) |
Definition at line 284 of file PartBunchBase.hpp.
References endl(), PartBins::getNBins(), PartBunchBase< T, Dim >::pbin_m, and PartBunchBase< T, Dim >::setEnergyBins().
Referenced by Distribution::createOpalCycl(), Distribution::doRestartOpalCycl(), and MultiBunchHandler::MultiBunchHandler().
void PartBunchBase< T, Dim >::setPBins | ( | PartBinsCyc * | pbin | ) |
Definition at line 292 of file PartBunchBase.hpp.
References PartBins::getNBins(), PartBunchBase< T, Dim >::pbin_m, and PartBunchBase< T, Dim >::setEnergyBins().
void PartBunchBase< T, Dim >::setPOrigin | ( | ParticleOrigin | origin | ) |
Definition at line 1659 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::refPOrigin_m.
Referenced by Stripper::doCheck().
void PartBunchBase< T, Dim >::setPType | ( | const std::string & | type | ) |
Definition at line 1670 of file PartBunchBase.hpp.
References ParticleProperties::getParticleType(), and PartBunchBase< T, Dim >::refPType_m.
Referenced by TrackRun::setupCyclotronTracker(), and TrackRun::setupTTracker().
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 1333 of file PartBunchBase.hpp.
References Hypervolume::fs, PartBunchBase< T, Dim >::fs_m, FieldSolver::getFieldLayout(), OpalData::getInstance(), PartBunchBase< T, Dim >::initialize(), and FieldSolver::initSolver().
Referenced by AmrPartBunch::setSolver(), and TrackRun::setupFieldsolver().
void PartBunchBase< T, Dim >::setStepsPerTurn | ( | int | n | ) |
Definition at line 1371 of file PartBunchBase.hpp.
References Hypervolume::n, and PartBunchBase< T, Dim >::stepsPerTurn_m.
Referenced by TrackRun::setupCyclotronTracker().
void PartBunchBase< T, Dim >::setSteptoLastInj | ( | int | n | ) |
Definition at line 1506 of file PartBunchBase.hpp.
References Hypervolume::n, and PartBunchBase< T, Dim >::SteptoLastInj_m.
Referenced by H5PartWrapperForPC::readStepHeader().
void PartBunchBase< T, Dim >::setT | ( | double | t | ) |
Definition at line 1031 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::t_m.
Referenced by Undulator::apply(), ParallelTTracker::applyFractionalStep(), ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), H5PartWrapperForPC::readStepHeader(), H5PartWrapperForPT::readStepHeader(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), ThickTracker::update_m(), and ParallelCyclotronTracker::updateTime().
void PartBunchBase< T, Dim >::setTEmission | ( | double | t | ) |
Definition at line 254 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::tEmission_m.
Referenced by Distribution::initializeBeam().
void PartBunchBase< T, Dim >::setTotalNum | ( | size_t | n | ) |
Definition at line 1927 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
Referenced by ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), and PartBunchBase< T, Dim >::updateNumTotal().
void PartBunchBase< T, Dim >::setTotalNumPerBunch | ( | size_t | numpart, |
short | n | ||
) |
Definition at line 1427 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::bunchTotalNum_m, Hypervolume::n, and PAssert_LT.
Referenced by MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::deleteParticle(), MultiBunchHandler::injectBunch(), and MultiBunchHandler::readBunch().
|
private |
Definition at line 1871 of file PartBunchBase.hpp.
References AbstractParticle< T, Dim >::addAttribute(), PartBunchBase< T, Dim >::Bf, PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::boundpBoundsTimer_m, PartBunchBase< T, Dim >::boundpTimer_m, PartBunchBase< T, Dim >::boundpUpdateTimer_m, PartBunchBase< T, Dim >::bunchNum, PartBunchBase< T, Dim >::cavityGapCrossed, PartBunchBase< T, Dim >::distrCreate_m, PartBunchBase< T, Dim >::distrReload_m, PartBunchBase< T, Dim >::dt, PartBunchBase< T, Dim >::Ef, PartBunchBase< T, Dim >::Eftmp, IpplInfo::getNodes(), IpplTimings::getTimer(), PartBunchBase< T, Dim >::globalPartPerNode_m, PartBunchBase< T, Dim >::histoTimer_m, PartBunchBase< T, Dim >::M, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::Phi, PartBunchBase< T, Dim >::pmsg_m, PartBunchBase< T, Dim >::POrigin, PartBunchBase< T, Dim >::PType, PartBunchBase< T, Dim >::Q, PartBunchBase< T, Dim >::selfFieldTimer_m, PartBunchBase< T, Dim >::statParamTimer_m, and PartBunchBase< T, Dim >::TriID.
Referenced by PartBunchBase< T, Dim >::PartBunchBase().
void PartBunchBase< T, Dim >::setUpdateFlag | ( | UpdateFlags_t | f, |
bool | val | ||
) |
Definition at line 1952 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
|
virtual |
Definition at line 871 of file PartBunchBase.hpp.
bool PartBunchBase< T, Dim >::singleInitNode | ( | ) | const |
Definition at line 1957 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m.
|
virtual |
Reimplemented in PartBunch.
Definition at line 1826 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::Bf, PartBunchBase< T, Dim >::Bin, PartBunchBase< T, Dim >::bunchNum, PartBunchBase< T, Dim >::cavityGapCrossed, PartBunchBase< T, Dim >::dt, PartBunchBase< T, Dim >::Ef, PartBunchBase< T, Dim >::Eftmp, PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::M, PartBunchBase< T, Dim >::P, PartBunchBase< T, Dim >::Phi, PartBunchBase< T, Dim >::POrigin, PartBunchBase< T, Dim >::PType, PartBunchBase< T, Dim >::Q, Attrib::Distribution::R, and PartBunchBase< T, Dim >::TriID.
Referenced by PartBunch::swap().
void PartBunchBase< T, Dim >::switchOffUnitlessPositions | ( | bool | use_dt_per_particle = false | ) |
Definition at line 188 of file PartBunchBase.hpp.
References Physics::c, PartBunchBase< T, Dim >::dt, PartBunchBase< T, Dim >::getdT(), PartBunchBase< T, Dim >::getLocalNum(), Attrib::Distribution::R, PartBunchBase< T, Dim >::unit_state_, and units.
Referenced by ParallelTTracker::emitParticles(), and ParallelTTracker::pushParticles().
void PartBunchBase< T, Dim >::switchToUnitlessPositions | ( | bool | use_dt_per_particle = false | ) |
Definition at line 164 of file PartBunchBase.hpp.
References Physics::c, PartBunchBase< T, Dim >::dt, PartBunchBase< T, Dim >::getdT(), PartBunchBase< T, Dim >::getLocalNum(), Attrib::Distribution::R, PartBunchBase< T, Dim >::unit_state_, and PartBunchBase< T, Dim >::unitless.
Referenced by ParallelTTracker::emitParticles(), and ParallelTTracker::pushParticles().
void PartBunchBase< T, Dim >::update | ( | ) |
Definition at line 1967 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m, IpplException::what(), and IpplException::where().
void PartBunchBase< T, Dim >::update | ( | const ParticleAttrib< char > & | canSwap | ) |
Definition at line 1976 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbase_m, IpplException::what(), and IpplException::where().
|
privatepure virtual |
Implemented in AmrPartBunch, and PartBunch.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), and PartBunchBase< T, Dim >::calcLineDensity().
|
privatevirtual |
Reimplemented in AmrPartBunch, and PartBunch.
Definition at line 1866 of file PartBunchBase.hpp.
Referenced by PartBunchBase< T, Dim >::boundp(), and PartBunchBase< T, Dim >::boundp_destroyCycl().
void PartBunchBase< T, Dim >::updateNumTotal | ( | ) |
Definition at line 305 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::getLocalNum(), reduce(), and PartBunchBase< T, Dim >::setTotalNum().
Referenced by ParallelCyclotronTracker::applyPluginElements(), ParallelTTracker::computeParticleMatterInteraction(), ParallelTTracker::emitParticles(), and ParallelCyclotronTracker::MtsTracker().
bool PartBunchBase< T, Dim >::weHaveBins | ( | ) | const |
Definition at line 275 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::pbin_m, and PartBins::weHaveBins().
Referenced by PartBunchBase< T, Dim >::boundp_destroyCycl(), Stripper::doCheck(), and ParallelCyclotronTracker::isMultiBunch().
bool PartBunchBase< T, Dim >::weHaveEnergyBins | ( | ) |
Definition at line 154 of file PartBunchBase.hpp.
References PartBunchBase< T, Dim >::dist_m, and Distribution::getNumberOfEnergyBins().
Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), ParallelTTracker::computeSpaceChargeFields(), PartBunchBase< T, Dim >::destroyT(), ParallelTTracker::emitParticles(), and ParallelTTracker::execute().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Bf |
Definition at line 583 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchMode_m(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ScatteringPhysics::copyFromBunch(), Distribution::emitParticles(), ParallelTTracker::execute(), ParallelCyclotronTracker::getFieldsAtPoint(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), ParallelTTracker::transformBunch(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
ParticleAttrib< int > PartBunchBase< T, Dim >::Bin |
Definition at line 584 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), Degrader::apply(), Ring::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), ParallelCyclotronTracker::bunchMode_m(), PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::calcGammas_cycl(), PartBunchBase< T, Dim >::calcMeanPhi(), Vacuum::checkVacuum(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), ScatteringPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), PartBunchBase< T, Dim >::destroyT(), Septum::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::emitParticles(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), ParallelCyclotronTracker::push(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), H5PartWrapperForPT::readStepData(), PartBunchBase< T, Dim >::Rebin(), PartBunchBase< T, Dim >::rebin(), PartBunchBase< T, Dim >::resetPartBinBunch(), PartBunchBase< T, Dim >::resetPartBinID2(), PartBunchBase< T, Dim >::setBinCharge(), PartBunchBase< T, Dim >::setup(), ParallelCyclotronTracker::singleMode_m(), AmrBoxLib::solvePoisson_m(), PartBunchBase< T, Dim >::swap(), AmrBoxLib::tagForChargeDensity_m(), AmrYtWriter::writeParticles_m(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 694 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp_destroyT(), PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::destroyT(), PartBunchBase< T, Dim >::iterateEmittedBin(), and PartBunchBase< T, Dim >::setEnergyBins().
|
protected |
holds the gamma of the bin
Definition at line 689 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::calcGammas_cycl(), PartBunchBase< T, Dim >::getBinGamma(), and PartBunchBase< T, Dim >::setEnergyBins().
|
protected |
Definition at line 622 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), and PartBunchBase< T, Dim >::setup().
|
protected |
Definition at line 621 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), and PartBunchBase< T, Dim >::setup().
|
protected |
Definition at line 623 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), and PartBunchBase< T, Dim >::setup().
|
protected |
Definition at line 710 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::countTotalNumPerBunch(), PartBunchBase< T, Dim >::getLocalNumPerBunch(), PartBunchBase< T, Dim >::setLocalNumPerBunch(), and PartBunchBase< T, Dim >::setNumBunch().
ParticleAttrib< short > PartBunchBase< T, Dim >::bunchNum |
Definition at line 590 of file PartBunchBase.h.
Referenced by Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanR(), ParallelCyclotronTracker::computePathLengthUpdate(), PartBunchBase< T, Dim >::countTotalNumPerBunch(), ParallelCyclotronTracker::deleteParticle(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), and H5PartWrapperForPC::writeStepData().
|
protected |
number of particles per bunch
Definition at line 709 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::countTotalNumPerBunch(), PartBunchBase< T, Dim >::getTotalNumPerBunch(), PartBunchBase< T, Dim >::setNumBunch(), and PartBunchBase< T, Dim >::setTotalNumPerBunch().
ParticleAttrib< short > PartBunchBase< T, Dim >::cavityGapCrossed |
Definition at line 589 of file PartBunchBase.h.
Referenced by ParallelCyclotronTracker::bunchMode_m(), ParallelCyclotronTracker::gapCrossKick_m(), PartBunchBase< T, Dim >::setup(), ParallelCyclotronTracker::singleMode_m(), and PartBunchBase< T, Dim >::swap().
|
protected |
holds the centroid of the beam
Definition at line 641 of file PartBunchBase.h.
|
protected |
Definition at line 674 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getCouplingConstant(), and PartBunchBase< T, Dim >::setCouplingConstant().
|
protected |
Definition at line 727 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp().
double PartBunchBase< T, Dim >::deltaTau_m |
Definition at line 608 of file PartBunchBase.h.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
|
protected |
Mesh enlargement.
Definition at line 683 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::calcLineDensity(), PartBunchBase< T, Dim >::print(), and PartBunchBase< T, Dim >::set_meshEnlargement().
|
static |
Definition at line 59 of file PartBunchBase.h.
Referenced by AmrBoxLib::getEExtrema().
|
protected |
Definition at line 723 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyT(), PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::destroyT(), PartBunchBase< T, Dim >::doEmission(), PartBunchBase< T, Dim >::emitParticles(), PartBunchBase< T, Dim >::get_pmean_Distribution(), PartBunchBase< T, Dim >::getDistType(), PartBunchBase< T, Dim >::getEmissionDeltaT(), PartBunchBase< T, Dim >::getIfBeamEmitting(), PartBunchBase< T, Dim >::getLastEmittedEnergyBin(), PartBunchBase< T, Dim >::getNumberOfEmissionSteps(), PartBunchBase< T, Dim >::getNumberOfEnergyBins(), PartBunchBase< T, Dim >::Rebin(), PartBunchBase< T, Dim >::setDistribution(), and PartBunchBase< T, Dim >::weHaveEnergyBins().
|
protected |
counter to store the distribution dump
Definition at line 680 of file PartBunchBase.h.
IpplTimings::TimerRef PartBunchBase< T, Dim >::distrCreate_m |
Definition at line 605 of file PartBunchBase.h.
Referenced by Distribution::createOpalT(), and PartBunchBase< T, Dim >::setup().
IpplTimings::TimerRef PartBunchBase< T, Dim >::distrReload_m |
timer for IC, can not be in Distribution.h
Definition at line 604 of file PartBunchBase.h.
Referenced by Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), and PartBunchBase< T, Dim >::setup().
ParticleAttrib< double > PartBunchBase< T, Dim >::dt |
Definition at line 585 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Source::apply(), FlexibleCollimator::apply(), Undulator::apply(), Degrader::apply(), Monitor::apply(), ParallelTTracker::changeDT(), ParallelTTracker::computeExternalFields(), ScatteringPhysics::copyFromBunch(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), ParallelTTracker::kickParticles(), ParallelTTracker::pushParticles(), PartBunchBase< T, Dim >::setdT(), ParallelTTracker::setTime(), ParallelCyclotronTracker::setTimeStep(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), PartBunchBase< T, Dim >::switchToUnitlessPositions(), ParallelTTracker::timeIntegration2(), ThickTracker::update_m(), and AmrYtWriter::writeParticles_m().
|
protected |
holds the timestep in seconds
Definition at line 644 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getdT(), PartBunchBase< T, Dim >::incrementT(), and PartBunchBase< T, Dim >::setdT().
double PartBunchBase< T, Dim >::dtScInit_m |
Definition at line 608 of file PartBunchBase.h.
Referenced by TrackRun::setupThickTracker(), and TrackRun::setupTTracker().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Ef |
Definition at line 580 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), GreenWakeFunction::apply(), ParallelCyclotronTracker::borisExternalFields(), ParallelCyclotronTracker::bunchMode_m(), ParallelTTracker::computeExternalFields(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelTTracker::computeWakefield(), ScatteringPhysics::copyFromBunch(), Distribution::emitParticles(), ParallelTTracker::execute(), ParallelCyclotronTracker::getFieldsAtPoint(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), ParallelTTracker::kickParticles(), ApplyField< T >::operator()(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), ParallelTTracker::transformBunch(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::Eftmp |
Definition at line 581 of file PartBunchBase.h.
Referenced by AmrBoxLib::computeSelfFields_cycl(), PartBunchBase< T, Dim >::setup(), and PartBunchBase< T, Dim >::swap().
|
private |
Definition at line 616 of file PartBunchBase.h.
|
private |
if the grid does not have to adapt
Definition at line 618 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::isGridFixed().
|
protected |
stores the used field solver
Definition at line 672 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::getFieldSolverType(), PartBunchBase< T, Dim >::hasFieldSolver(), and PartBunchBase< T, Dim >::setSolver().
|
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 655 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getGlobalMeanR(), and PartBunchBase< T, Dim >::setGlobalMeanR().
|
protected |
Definition at line 721 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::calcNumPartsOutside(), PartBunchBase< T, Dim >::gatherLoadBalanceStatistics(), PartBunchBase< T, Dim >::getLoadBalance(), and PartBunchBase< T, Dim >::setup().
|
protected |
Definition at line 656 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getGlobalToLocalQuaternion(), and PartBunchBase< T, Dim >::setGlobalToLocalQuaternion().
|
protected |
if multiple TRACK commands
Definition at line 703 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getGlobalTrackStep(), PartBunchBase< T, Dim >::incTrackSteps(), and PartBunchBase< T, Dim >::setGlobalTrackStep().
|
protected |
Definition at line 626 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::setup().
|
protected |
meshspacing of cartesian mesh
Definition at line 667 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), and PartBunchBase< T, Dim >::get_hr().
ParticleIndex_t& PartBunchBase< T, Dim >::ID |
Definition at line 573 of file PartBunchBase.h.
Referenced by Source::apply(), FlexibleCollimator::apply(), Degrader::apply(), Monitor::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), PartBunchBase< T, Dim >::boundp(), ScatteringPhysics::copyFromBunch(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::getFieldsAtPoint(), PartBunchBase< T, Dim >::getParticle(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), PartBunchBase< T, Dim >::ConstIterator::operator*(), H5PartWrapperForPT::readStepData(), ParallelCyclotronTracker::RFkick(), ParallelCyclotronTracker::seoMode_m(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), BeamStrippingPhysics::transformToSecondary(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
|
protected |
step in a TRACK command
Definition at line 700 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getLocalTrackStep(), PartBunchBase< T, Dim >::incTrackSteps(), and PartBunchBase< T, Dim >::setLocalTrackStep().
ParticleAttrib< double > PartBunchBase< T, Dim >::M |
Definition at line 578 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Source::apply(), FlexibleCollimator::apply(), Monitor::apply(), Ring::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), ScatteringPhysics::copyFromBunch(), RK4< FieldFunction, Arguments >::derivate_m(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), PartBunchBase< T, Dim >::getParticle(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), MultiBunchHandler::saveBunch(), PartBunchBase< T, Dim >::setMass(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), BeamStrippingPhysics::transformToSecondary(), Vacuum::updateParticleAttributes(), AmrYtWriter::writeParticles_m(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 677 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getMassPerParticle(), PartBunchBase< T, Dim >::setMass(), and PartBunchBase< T, Dim >::setMassZeroPart().
|
protected |
Definition at line 724 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::boundp_destroyT(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::calcDebyeLength(), PartBunchBase< T, Dim >::calcEMean(), PartBunchBase< T, Dim >::get_68Percentile(), PartBunchBase< T, Dim >::get_95Percentile(), PartBunchBase< T, Dim >::get_99_99Percentile(), PartBunchBase< T, Dim >::get_99Percentile(), PartBunchBase< T, Dim >::get_centroid(), PartBunchBase< T, Dim >::get_DDx(), PartBunchBase< T, Dim >::get_DDy(), PartBunchBase< T, Dim >::get_debyeLength(), PartBunchBase< T, Dim >::get_Dx(), PartBunchBase< T, Dim >::get_Dy(), PartBunchBase< T, Dim >::get_emit(), PartBunchBase< T, Dim >::get_gamma(), PartBunchBase< T, Dim >::get_halo(), PartBunchBase< T, Dim >::get_meanKineticEnergy(), PartBunchBase< T, Dim >::get_norm_emit(), PartBunchBase< T, Dim >::get_normalizedEps_68Percentile(), PartBunchBase< T, Dim >::get_normalizedEps_95Percentile(), PartBunchBase< T, Dim >::get_normalizedEps_99_99Percentile(), PartBunchBase< T, Dim >::get_normalizedEps_99Percentile(), PartBunchBase< T, Dim >::get_plasmaParameter(), PartBunchBase< T, Dim >::get_pmean(), PartBunchBase< T, Dim >::get_prms(), PartBunchBase< T, Dim >::get_rmean(), PartBunchBase< T, Dim >::get_rprms(), PartBunchBase< T, Dim >::get_rrms(), PartBunchBase< T, Dim >::get_temperature(), PartBunchBase< T, Dim >::getdE(), and PartBunchBase< T, Dim >::getSigmaMatrix().
|
protected |
meshsize of cartesian mesh
Definition at line 669 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), and PartBunchBase< T, Dim >::boundp_destroyT().
|
protected |
current bunch number
Definition at line 706 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::countTotalNumPerBunch(), PartBunchBase< T, Dim >::getNumBunch(), PartBunchBase< T, Dim >::resetPartBinBunch(), and PartBunchBase< T, Dim >::setNumBunch().
ParticleAttrib< Vector_t > PartBunchBase< T, Dim >::P |
Definition at line 576 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), ThickTracker::advanceParticles_m(), Source::apply(), FlexibleCollimator::apply(), Undulator::apply(), Degrader::apply(), Solenoid::apply(), TravelingWave::apply(), VerticalFFAMagnet::apply(), ScalingFFAMagnet::apply(), Monitor::apply(), RBend3D::apply(), VariableRFCavity::apply(), SBend3D::apply(), Corrector::apply(), Ring::apply(), VariableRFCavityFringeField::apply(), RFCavity::apply(), MultipoleTBase::apply(), MultipoleT::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), PartBunchBase< T, Dim >::boundp(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), PartBunchBase< T, Dim >::calcGammas(), PartBunchBase< T, Dim >::calcGammas_cycl(), ParallelCyclotronTracker::calcMeanP(), PartBunchBase< T, Dim >::calcMeanPhi(), PluginElement::changeWidth(), ParallelCyclotronTracker::checkFileMomentum(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelTTracker::computeWakefield(), ScatteringPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), LF2< FieldFunction, Arguments >::doAdvance_m(), RK4< FieldFunction, Arguments >::doAdvance_m(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::finalizeTracking_m(), ParallelCyclotronTracker::gapCrossKick_m(), PartBunchBase< T, Dim >::get_PBounds(), PartBunchBase< T, Dim >::getParticle(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::MtsTracker(), PartBunchBase< T, Dim >::ConstIterator::operator*(), ParallelCyclotronTracker::push(), PartBunchBase< T, Dim >::push_back(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), H5PartWrapperForPT::readStepData(), PartBunchBase< T, Dim >::resetPartBinID2(), ParallelCyclotronTracker::RFkick(), MultiBunchHandler::saveBunch(), ParallelCyclotronTracker::seoMode_m(), PartBunchBase< T, Dim >::setParticle(), PartBunchBase< T, Dim >::setup(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), PartBunchBase< T, Dim >::swap(), AmrBoxLib::tagForMomenta_m(), ParallelTTracker::transformBunch(), StatWriter::write(), AmrYtWriter::writeParticles_m(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 729 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::create(), PartBunchBase< T, Dim >::createWithID(), PartBunchBase< T, Dim >::destroy(), PartBunchBase< double, 3 >::getBConds(), PartBunchBase< T, Dim >::getDestroyNum(), PartBunchBase< T, Dim >::getGhostNum(), PartBunchBase< T, Dim >::getLayout(), PartBunchBase< T, Dim >::getLocalNum(), PartBunchBase< T, Dim >::getTotalNum(), PartBunchBase< T, Dim >::getUpdateFlag(), PartBunchBase< T, Dim >::ghostDestroy(), PartBunchBase< T, Dim >::globalCreate(), PartBunchBase< T, Dim >::performDestroy(), PartBunchBase< T, Dim >::resetID(), PartBunchBase< double, 3 >::setBConds(), PartBunchBase< T, Dim >::setLocalNum(), PartBunchBase< T, Dim >::setTotalNum(), PartBunchBase< T, Dim >::setUpdateFlag(), PartBunchBase< T, Dim >::singleInitNode(), and PartBunchBase< T, Dim >::update().
PartBins* PartBunchBase< T, Dim >::pbin_m |
Definition at line 601 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::calcGammas_cycl(), PartBunchBase< T, Dim >::calcMeanPhi(), PartBunchBase< T, Dim >::getLastemittedBin(), PartBunchBase< T, Dim >::hasBinning(), MultiBunchHandler::MultiBunchHandler(), PartBunchBase< T, Dim >::rebin(), PartBunchBase< T, Dim >::resetPartBinBunch(), PartBunchBase< T, Dim >::resetPartBinID2(), PartBunchBase< T, Dim >::setLocalBinCount(), PartBunchBase< T, Dim >::setPBins(), and PartBunchBase< T, Dim >::weHaveBins().
|
protected |
Definition at line 728 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), and PartBunchBase< T, Dim >::setBeamFrequency().
ParticleAttrib< double > PartBunchBase< T, Dim >::Phi |
Definition at line 579 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::setup(), and PartBunchBase< T, Dim >::swap().
|
private |
Definition at line 615 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::setup().
ParticleAttrib< ParticleOrigin > PartBunchBase< T, Dim >::POrigin |
Definition at line 587 of file PartBunchBase.h.
Referenced by Stripper::doCheck(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), MultiBunchHandler::readBunch(), MultiBunchHandler::saveBunch(), PartBunchBase< T, Dim >::setup(), TrackRun::setupCyclotronTracker(), PartBunchBase< T, Dim >::swap(), BeamStrippingPhysics::transformToSecondary(), and H5PartWrapperForPT::writeStepData().
ParticleAttrib< ParticleType > PartBunchBase< T, Dim >::PType |
Definition at line 586 of file PartBunchBase.h.
Referenced by BeamStrippingPhysics::doPhysics(), Distribution::emitParticles(), Distribution::injectBeam(), PartBunchBase< T, Dim >::setup(), PartBunchBase< T, Dim >::swap(), BeamStrippingPhysics::transformToSecondary(), and H5PartWrapperForPT::writeStepData().
ParticleAttrib< double > PartBunchBase< T, Dim >::Q |
Definition at line 577 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Source::apply(), FlexibleCollimator::apply(), Undulator::apply(), Monitor::apply(), Ring::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::calcLineDensity(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ScatteringPhysics::copyFromBunch(), RK4< FieldFunction, Arguments >::derivate_m(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), PartBunchBase< T, Dim >::getCharge(), PartBunchBase< T, Dim >::getParticle(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), ApplyField< T >::operator()(), PartBunchBase< T, Dim >::ConstIterator::operator*(), PartBunchBase< T, Dim >::print(), MultiBunchHandler::readBunch(), H5PartWrapperForPC::readStepData(), H5PartWrapperForPT::readStepData(), MultiBunchHandler::saveBunch(), PartBunchBase< T, Dim >::setBinCharge(), PartBunchBase< T, Dim >::setCharge(), PartBunchBase< T, Dim >::setup(), AmrBoxLib::solvePoisson_m(), PartBunchBase< T, Dim >::swap(), AmrBoxLib::tagForChargeDensity_m(), BeamStrippingPhysics::transformToSecondary(), Vacuum::updateParticleAttributes(), AmrYtWriter::writeParticles_m(), H5PartWrapperForPC::writeStepData(), and H5PartWrapperForPT::writeStepData().
|
protected |
Definition at line 676 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getChargePerParticle(), PartBunchBase< T, Dim >::print(), PartBunchBase< T, Dim >::setBinCharge(), PartBunchBase< T, Dim >::setCharge(), and PartBunchBase< T, Dim >::setChargeZeroPart().
ParticlePos_t& PartBunchBase< T, Dim >::R |
Definition at line 572 of file PartBunchBase.h.
Referenced by ScatteringPhysics::addParticleBackToBunch(), Stepper< FieldFunction, Arguments...>::advance(), ThickTracker::advanceParticles_m(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), Source::apply(), FlexibleCollimator::apply(), Undulator::apply(), Degrader::apply(), Solenoid::apply(), TravelingWave::apply(), GreenWakeFunction::apply(), VerticalFFAMagnet::apply(), ScalingFFAMagnet::apply(), Monitor::apply(), RBend3D::apply(), Bend2D::apply(), VariableRFCavity::apply(), SBend3D::apply(), Corrector::apply(), Ring::apply(), VariableRFCavityFringeField::apply(), Component::apply(), RFCavity::apply(), Multipole::apply(), MultipoleTBase::apply(), MultipoleT::apply(), Cyclotron::apply(), ParallelCyclotronTracker::bgf_main_collision_test(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), ParallelCyclotronTracker::bunchMode_m(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::calcMeanR(), P3MPoissonSolver::calculatePairForces(), Vacuum::checkVacuum(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), ParallelTTracker::computeSpaceChargeFields(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelTTracker::computeWakefield(), ScatteringPhysics::copyFromBunch(), ParallelCyclotronTracker::deleteParticle(), RK4< FieldFunction, Arguments >::derivate_m(), LF2< FieldFunction, Arguments >::doAdvance_m(), RK4< FieldFunction, Arguments >::doAdvance_m(), Septum::doCheck(), Probe::doCheck(), Stripper::doCheck(), CCollimator::doCheck(), OutputPlane::doCheck(), BeamStrippingPhysics::doPhysics(), Distribution::doRestartOpalCycl(), Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), ParallelCyclotronTracker::gapCrossKick_m(), ParallelCyclotronTracker::initDistInGlobalFrame(), Distribution::injectBeam(), ParallelCyclotronTracker::kick(), LF2< FieldFunction, Arguments >::kick_m(), ParallelTTracker::kickParticles(), ParallelCyclotronTracker::MtsTracker(), ApplyField< T >::operator()(), PartBunchBase< T, Dim >::ConstIterator::operator*(), ParallelCyclotronTracker::push(), ParallelTTracker::pushParticles(), MultiBunchHandler::readBunch(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPC::readStepData(), ParallelCyclotronTracker::RFkick(), MultiBunchHandler::saveBunch(), ParallelCyclotronTracker::seoMode_m(), ParallelCyclotronTracker::singleMode_m(), ParallelCyclotronTracker::singleParticleDump(), AmrBoxLib::solvePoisson_m(), AmrBoxLib::tagForChargeDensity_m(), AmrBoxLib::tagForMaxNumParticles_m(), AmrBoxLib::tagForMinNumParticles_m(), AmrBoxLib::tagForMomenta_m(), ParallelTTracker::transformBunch(), StatWriter::write(), AmrYtWriter::writeParticles_m(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().
|
protected |
Definition at line 630 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getE(), PartBunchBase< T, Dim >::getInitialBeta(), PartBunchBase< T, Dim >::getInitialGamma(), PartBunchBase< T, Dim >::getM(), PartBunchBase< T, Dim >::getMomentumTolerance(), PartBunchBase< T, Dim >::getP(), PartBunchBase< T, Dim >::getQ(), PartBunchBase< T, Dim >::getReference(), PartBunchBase< T, Dim >::resetM(), and PartBunchBase< T, Dim >::resetQ().
Vector_t PartBunchBase< T, Dim >::RefPartP_m |
Definition at line 593 of file PartBunchBase.h.
Referenced by Undulator::apply(), ParallelTTracker::applyFractionalStep(), ParallelTTracker::autophaseCavities(), 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 592 of file PartBunchBase.h.
Referenced by Undulator::apply(), ParallelTTracker::applyFractionalStep(), ParallelTTracker::autophaseCavities(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), ParallelTTracker::hasEndOfLineReached(), H5PartWrapperForPT::readStepHeader(), ParallelCyclotronTracker::singleParticleDump(), ParallelTTracker::updateReferenceParticle(), ParallelTTracker::updateRefToLabCSTrafo(), StatWriter::write(), ParallelTTracker::writePhaseSpace(), H5PartWrapperForPC::writeStepHeader(), and H5PartWrapperForPT::writeStepHeader().
ParticleOrigin PartBunchBase< T, Dim >::refPOrigin_m |
Definition at line 597 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getPOrigin(), and PartBunchBase< T, Dim >::setPOrigin().
ParticleType PartBunchBase< T, Dim >::refPType_m |
Definition at line 598 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getPType(), and PartBunchBase< T, Dim >::setPType().
|
protected |
maximal extend of particles
Definition at line 659 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::get_maxExtent(), and PartBunchBase< T, Dim >::print().
|
protected |
minimal extend of particles
Definition at line 661 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::boundp_destroyCycl(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::get_origin(), and PartBunchBase< T, Dim >::print().
|
protected |
Definition at line 664 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::calcDebyeLength(), and PartBunchBase< T, Dim >::get_rmsDensity().
|
protected |
timer for selfField calculation
Definition at line 628 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::setup().
|
protected |
the position along design trajectory
Definition at line 648 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::get_sPos(), and PartBunchBase< T, Dim >::set_sPos().
|
protected |
Definition at line 638 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp().
|
protected |
Definition at line 624 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::calcBeamParameters(), and PartBunchBase< T, Dim >::setup().
|
protected |
steps per turn for OPAL-cycl
Definition at line 697 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getStepsPerTurn(), and PartBunchBase< T, Dim >::setStepsPerTurn().
|
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 715 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getSteptoLastInj(), and PartBunchBase< T, Dim >::setSteptoLastInj().
|
protected |
holds the actual time of the integration
Definition at line 646 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getT(), PartBunchBase< T, Dim >::incrementT(), and PartBunchBase< T, Dim >::setT().
|
protected |
relative enlargement of the mesh
if larger than 0, emitt particles for tEmission_m [s]
Definition at line 686 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::getTEmission(), and PartBunchBase< T, Dim >::setTEmission().
CoordinateSystemTrafo PartBunchBase< T, Dim >::toLabTrafo_m |
Definition at line 595 of file PartBunchBase.h.
Referenced by Undulator::apply(), ParallelTTracker::applyFractionalStep(), ParallelTTracker::computeExternalFields(), ParallelTTracker::computeParticleMatterInteraction(), Monitor::driftToCorrectPositionAndSave(), ParallelTTracker::emitParticles(), ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), H5PartWrapperForPT::readStepHeader(), ParallelTTracker::updateRefToLabCSTrafo(), ParallelTTracker::writePhaseSpace(), and H5PartWrapperForPT::writeStepHeader().
ParticleAttrib< int > PartBunchBase< T, Dim >::TriID |
Definition at line 588 of file PartBunchBase.h.
Referenced by Distribution::emitParticles(), ParallelTTracker::evenlyDistributeParticles(), Distribution::injectBeam(), PartBunchBase< T, Dim >::setup(), and PartBunchBase< T, Dim >::swap().
|
protected |
Definition at line 637 of file PartBunchBase.h.
Referenced by PartBunchBase< T, Dim >::boundp(), PartBunchBase< T, Dim >::switchOffUnitlessPositions(), and PartBunchBase< T, Dim >::switchToUnitlessPositions().