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