26 #ifndef BasePeriodicBoundary_H
27 #define BasePeriodicBoundary_H
61 void read(std::istream& is)
override;
66 void write(std::ostream& os)
const override;
Definition: BaseBoundary.h:49
Definition: BaseParticle.h:54
Definition: BasePeriodicBoundary.h:41
void setPeriodicHandler(PeriodicBoundaryHandler *periodicHandler)
Sets the periodicBoundaryHandler, required for parallel periodic boundaries.
Definition: BasePeriodicBoundary.cc:90
virtual void shiftPosition(BaseParticle *particle) const =0
Shifts the position (and velocity) of to the ghost particle.
void write(std::ostream &os) const override
Adds object's id_ to given ostream.
Definition: BasePeriodicBoundary.cc:80
BasePeriodicBoundary()
default constructor.
Definition: BasePeriodicBoundary.cc:35
virtual Mdouble getDistance(const BaseParticle &particle) const =0
Returns the distance between a particle and the closest boundary, required for any periodic boundary.
void read(std::istream &is) override
Reads the object's id_ from given istream.
Definition: BasePeriodicBoundary.cc:71
void checkBoundaryAfterParticlesMove(ParticleHandler &pH) override
Virtual function that does things to particles, each time step after particles have moved.
Definition: BasePeriodicBoundary.cc:111
PeriodicBoundaryHandler * periodicHandler_
pointer to the periodic boundary handler
Definition: BasePeriodicBoundary.h:139
virtual bool isClosestToLeftBoundary(const Vec3D &position) const =0
Returns true if it is closer to the left boundary than the right boundary.
virtual void performActionsBeforeAddingParticles()
Actions that need to be performed before adding new ghost particles.
Definition: BasePeriodicBoundary.cc:138
void createPeriodicParticles(ParticleHandler &pH) override
Creates periodic ocpies of given particle in case of periodic boundaries in serial build.
Definition: BasePeriodicBoundary.cc:127
virtual void modifyPeriodicComplexity(std::vector< int > &complexity, int &totalPeriodicComplexity, BaseParticle *particle, int i) const
Modifies periodic complexity of a particle if necessary (i.e. maser boundary)
Definition: BasePeriodicBoundary.cc:132
PeriodicBoundaryHandler * getPeriodicHandler() const
Returns the periodic boundary handler.
Definition: BasePeriodicBoundary.cc:99
virtual Mdouble getDistance(const Vec3D &position) const =0
Returns the distance between a position and the closest boundary.
BasePeriodicBoundary * copy() const override=0
Used to create a copy of the object NB: purely virtual function.
~BasePeriodicBoundary() override
destructor
Definition: BasePeriodicBoundary.cc:60
Container to store all BaseParticle.
Definition: ParticleHandler.h:48
Container to store pointers to all BasePeriodicBoundary objects.
Definition: PeriodicBoundaryHandler.h:46
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51