26 #ifndef ShearBoxBoundary_H
27 #define ShearBoxBoundary_H
54 void read(std::istream& is);
59 void write(std::ostream& os)
const;
64 virtual std::string
getName()
const;
111 void setVelocity(std::function<
double (
double,
double)>);
Mdouble getVerticalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest vertical wall.
ShearBoxBoundary * copy() const
Creates a copy of the object.
void write(std::ostream &os) const
Writes all boundary properties to a stream.
virtual std::string getName() const
Returns the name of the object.
void shiftHorizontalPosition(BaseParticle *p, bool positive)
Applies a horizontal shift to the given particle.
std::function< double(double, double)> velocity_
(signed) Vertical distance between the top wall and the origin
void createPeriodicParticles(BaseParticle *p, ParticleHandler &pH)
Creates horizontal and vertical periodic copies of given particle, if needed.
void shiftVerticalPosition(BaseParticle *p, bool positive)
Applies a vertical shift to the given particle.
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
void createHorizontalPeriodicParticles(BaseParticle *p, ParticleHandler &pH)
Creates horizontal periodic copies of given particle, if needed.
void createVerticalPeriodicParticles(BaseParticle *p, ParticleHandler &pH)
Creates vertical periodic copies of given particle, if needed.
Class which creates a boundary with Lees-Edwards type periodic boundary conditions.
Mdouble getHorizontalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest horizontal wall.
void read(std::istream &is)
Reads all boundary properties from a stream.
Container to store all BaseParticle.
void set(std::function< double(double, double)> velocity, Mdouble left, Mdouble right, Mdouble down, Mdouble up)
Sets all boundary properties.
bool checkBoundaryAfterParticleMoved(BaseParticle *p, ParticleHandler &pH UNUSED)
Checks if particle crossed a boundary wall and if so, applies periodic shift.
Mdouble right_
(signed) Horizontal distance between the left wall and the origin
Mdouble down_
(signed) Horizontal distance between the right wall and the origin
void setVelocity(std::function< double(double, double)>)