5 #ifndef BasePeriodicBoundary_H
6 #define BasePeriodicBoundary_H
40 void read(std::istream& is)
override;
45 void write(std::ostream& os)
const override;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Scalar * b
Definition: benchVecAdd.cpp:17
Definition: BaseBoundary.h:28
Definition: BaseParticle.h:33
Definition: BasePeriodicBoundary.h:20
void setPeriodicHandler(PeriodicBoundaryHandler *periodicHandler)
Sets the periodicBoundaryHandler, required for parallel periodic boundaries.
Definition: BasePeriodicBoundary.cc:69
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:59
BasePeriodicBoundary()
default constructor.
Definition: BasePeriodicBoundary.cc:14
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:50
void checkBoundaryAfterParticlesMove(ParticleHandler &pH) override
Virtual function that does things to particles, each time step after particles have moved.
Definition: BasePeriodicBoundary.cc:90
PeriodicBoundaryHandler * periodicHandler_
pointer to the periodic boundary handler
Definition: BasePeriodicBoundary.h:118
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:117
void createPeriodicParticles(ParticleHandler &pH) override
Creates periodic ocpies of given particle in case of periodic boundaries in serial build.
Definition: BasePeriodicBoundary.cc:106
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:111
PeriodicBoundaryHandler * getPeriodicHandler() const
Returns the periodic boundary handler.
Definition: BasePeriodicBoundary.cc:78
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:39
Container to store pointers to all particles.
Definition: ParticleHandler.h:28
Container to store pointers to all BasePeriodicBoundary objects.
Definition: PeriodicBoundaryHandler.h:24
Definition: Kernel/Math/Vector.h:30