19 #ifndef OPAL_PartBunch_HH
20 #define OPAL_PartBunch_HH
48 double getRho(
int x,
int y,
int z);
91 void swap(
unsigned int i,
unsigned int j);
134 return rho_m[x][y][z].get();
155 #endif // OPAL_PartBunch_HH
IpplParticleBase< Layout_t > pbase_t
RegionLayout< T, Dim, Mesh > & getLayout()
ParticleLayout< double, 3 > & getLayout()
void resetInterpolationCache(bool clearCache=false)
void initialize(FieldLayout_t *fLayout)
PartBunch & operator=(const PartBunch &)=delete
void swap(unsigned int i, unsigned int j)
std::ostream & operator<<(std::ostream &os, const Attribute &attr)
void updateDomainLength(Vektor< int, 3 > &grid)
void computeSelfFields_cycl(double gamma)
Calculates the self electric field from the charge density distribution for use in cyclotrons...
Field_t rho_m
scalar potential
ParticleAttrib< CacheDataCIC< double, 3U > > interpolationCache_m
void resizeMesh()
resize mesh to geometry specified
FieldLayout_t & getFieldLayout()
Inform & print(Inform &os)
VField_t eg_m
vector field on the grid
static const unsigned Dimension
double getRho(int x, int y, int z)
bool interpolationCacheSet_m
BConds< Vector_t, 3, Mesh_t, Center_t > vbc_m
const Mesh_t & getMesh() const
std::pair< Vector_t, Vector_t > VectorPair_t
BConds< double, 3, Mesh_t, Center_t > bc_m
for defining the boundary conditions
std::shared_ptr< AbstractParticle< double, Dim > > pbase_m
VectorPair_t getEExtrema()
void updateFields(const Vector_t &hr, const Vector_t &origin)
const ParticleLayout< double, 3 > & getLayout() const