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