MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ShearBoxBoundary Class Reference

Class which creates a boundary with Lees-Edwards type periodic boundary conditions. More...

#include <ShearBoxBoundary.h>

+ Inheritance diagram for ShearBoxBoundary:

Public Member Functions

void set (std::function< double(double, double)> velocity, Mdouble left, Mdouble right, Mdouble down, Mdouble up)
 Sets all boundary properties. More...
 
void read (std::istream &is) override
 Reads all boundary properties from a stream. More...
 
void write (std::ostream &os) const override
 Writes all boundary properties to a stream. More...
 
std::string getName () const override
 Returns the name of the object. More...
 
ShearBoxBoundarycopy () const override
 Creates a copy of the object. More...
 
Mdouble getHorizontalDistance (BaseParticle &p, bool &positive)
 Returns distance from given particle to the closest horizontal wall. More...
 
Mdouble getVerticalDistance (BaseParticle &p, bool &positive)
 Returns distance from given particle to the closest vertical wall. More...
 
void shiftHorizontalPosition (BaseParticle *p, bool positive)
 Applies a horizontal shift to the given particle. More...
 
void shiftVerticalPosition (BaseParticle *p, bool positive)
 Applies a vertical shift to the given particle. More...
 
bool checkBoundaryAfterParticleMoved (BaseParticle *p, ParticleHandler &pH UNUSED)
 Checks if particle crossed a boundary wall and if so, applies periodic shift. More...
 
void createPeriodicParticles (BaseParticle *p, ParticleHandler &pH)
 Creates horizontal and vertical periodic copies of given particle, if needed. More...
 
void createHorizontalPeriodicParticles (BaseParticle *p, ParticleHandler &pH)
 Creates horizontal periodic copies of given particle, if needed. More...
 
void createVerticalPeriodicParticles (BaseParticle *p, ParticleHandler &pH)
 Creates vertical periodic copies of given particle, if needed. More...
 
void setVelocity (std::function< double(double, double)>)
 
- Public Member Functions inherited from BaseBoundary
 BaseBoundary ()
 default constructor. More...
 
 BaseBoundary (const BaseBoundary &b)
 copy constructor More...
 
 ~BaseBoundary () override
 destructor More...
 
virtual void createPeriodicParticle (BaseParticle *p UNUSED, ParticleHandler &pH UNUSED)
 Creates a periodic particle in case of periodic boundaries in serial build. More...
 
virtual void createPeriodicParticles (ParticleHandler &pH UNUSED)
 Creates periodic copies of given particle in case of periodic boundaries. More...
 
virtual void checkBoundaryAfterParticlesMove (ParticleHandler &pH)
 Virtual function that does things to particles, each time step after particles have moved. More...
 
virtual void checkBoundaryBeforeTimeStep (DPMBase *md)
 Virtual function that does things before each time step. More...
 
virtual void actionsBeforeTimeLoop ()
 Virtual function that does something after DPMBase::setupInitialConditions but before the first time step. More...
 
virtual void modifyGhostAfterCreation (BaseParticle *particle, int i)
 
virtual void writeVTK (std::fstream &file)
 
void setHandler (BoundaryHandler *handler)
 Sets the boundary's BoundaryHandler. More...
 
BoundaryHandlergetHandler () const
 Returns the boundary's BoundaryHandler. More...
 
- Public Member Functions inherited from BaseObject
 BaseObject ()=default
 Default constructor. More...
 
 BaseObject (const BaseObject &p)=default
 Copy constructor, copies all the objects BaseObject contains. More...
 
virtual ~BaseObject ()=default
 virtual destructor More...
 
virtual void moveInHandler (unsigned int index)
 Except that it is virtual, it does the same thing as setIndex() does. More...
 
void setIndex (unsigned int index)
 Allows one to assign an index to an object in the handler/container. More...
 
void setId (unsigned long id)
 Assigns a unique identifier to each object in the handler (container) which remains constant even after the object is deleted from the container/handler. More...
 
unsigned int getIndex () const
 Returns the index of the object in the handler. More...
 
unsigned int getId () const
 Returns the unique identifier of any particular object. More...
 
void setGroupId (unsigned groupId)
 
unsigned getGroupId () const
 

Private Attributes

Mdouble left_
 
Mdouble right_
 (signed) Horizontal distance between the left wall and the origin More...
 
Mdouble down_
 (signed) Horizontal distance between the right wall and the origin More...
 
Mdouble up_
 (signed) Vertical distance between the bottom wall and the origin More...
 
std::function< double(double,
double)> 
velocity_
 (signed) Vertical distance between the top wall and the origin More...
 

Detailed Description

Class which creates a boundary with Lees-Edwards type periodic boundary conditions.

See also [insert link to the original paper by LE]. Inherits from BaseBoundary.

Todo:

Add link to paper by Lees-Edwards in the documentation of this class.

Is implemented for 2D only now. Needs extension to 3D.

Definition at line 42 of file ShearBoxBoundary.h.

Member Function Documentation

bool ShearBoxBoundary::checkBoundaryAfterParticleMoved ( BaseParticle p,
ParticleHandler &pH  UNUSED 
)

Checks if particle crossed a boundary wall and if so, applies periodic shift.

Checks if the particle has to be shifted into the main domain (i.e., if the particle has crossed any of the boundary walls) and if so performs the shift

Parameters
[in]pA pointer to the BaseParticle that is checked

Definition at line 266 of file ShearBoxBoundary.cc.

References getHorizontalDistance(), getVerticalDistance(), shiftHorizontalPosition(), and shiftVerticalPosition().

267 {
268  bool positive;
269  while (getVerticalDistance(*p, positive) < 0)
270  {
271  shiftVerticalPosition(p, positive);
272  }
273  while (getHorizontalDistance(*p, positive) < 0)
274  {
275  shiftHorizontalPosition(p, positive);
276  }
277  return false;
278 }
Mdouble getVerticalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest vertical wall.
void shiftHorizontalPosition(BaseParticle *p, bool positive)
Applies a horizontal shift to the given particle.
void shiftVerticalPosition(BaseParticle *p, bool positive)
Applies a vertical shift to the given particle.
Mdouble getHorizontalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest horizontal wall.
ShearBoxBoundary * ShearBoxBoundary::copy ( ) const
overridevirtual

Creates a copy of the object.

Copy method; creates a copy on the heap and returns its pointer.

Returns
pointer to the copy on the heap

Implements BaseBoundary.

Definition at line 83 of file ShearBoxBoundary.cc.

84 {
85  return new ShearBoxBoundary(*this);
86 }
Class which creates a boundary with Lees-Edwards type periodic boundary conditions.
void ShearBoxBoundary::createHorizontalPeriodicParticles ( BaseParticle p,
ParticleHandler pH 
)

Creates horizontal periodic copies of given particle, if needed.

Check if periodic copies of the particle in horizontal direction have to be made (i.e., if the distance of the particle to either of the horizontal boundary walls is smaller than its radius plus the radius of the largest particle in the system), and if so makes them

Parameters
[in]pA pointer to the BaseParticle that is checked
[out]pHA reference to the ParticleHandler where periodic copies will be added

Definition at line 182 of file ShearBoxBoundary.cc.

References ParticleHandler::addObject(), BaseParticle::copy(), BaseInteractable::copyInteractionsForPeriodicParticles(), getHorizontalDistance(), ParticleHandler::getLargestParticle(), BaseParticle::getMaxInteractionRadius(), BaseParticle::getPeriodicFromParticle(), BaseParticle::setPeriodicFromParticle(), and shiftHorizontalPosition().

Referenced by createPeriodicParticles(), and createVerticalPeriodicParticles().

183 {
184  bool positive; // TRUE if the particle is closest to the left boundary
185  // wall (set by getVerticalDistance in the following if-statement)
186  // check if particle is close enough to either of the walls
188  if (getHorizontalDistance(*p, positive) < maxDistance)
189  {
190  // create a periodic copy of the particle
191  BaseParticle* F0 = p->copy();
192  pH.addObject(F0);
194 
195  // If Particle is doubly shifted, get correct original particle
196  BaseParticle* From = p;
197  while (From->getPeriodicFromParticle() != nullptr)
198  From = From->getPeriodicFromParticle();
199  F0->setPeriodicFromParticle(From);
200 
201  // shift the copy to the 'periodic' position
202  shiftHorizontalPosition(F0, positive);
203 
204  // NB: No extra creation of possible vertical copies of the horizontal copy
205  // here (as compared to createVerticalPeriodicParticles), because these would
206  // overlap with the extra creation of horizontal copies in createVerticalPeriodicParticles.
207  }
208 }
BaseParticle * getLargestParticle() const
Returns the pointer of the largest particle in the particle handler. When mercury is running in paral...
void addObject(BaseParticle *P) override
Adds a BaseParticle to the ParticleHandler.
double Mdouble
Definition: GeneralDefine.h:34
Mdouble getMaxInteractionRadius() const
Returns the particle's interaction radius, which might be different from radius_ (e.g., when dealing with wet particles)
Definition: BaseParticle.h:362
void setPeriodicFromParticle(BaseParticle *p)
Assigns the pointer to the 'original' particle this one's a periodic copy of (used in periodic bounda...
Definition: BaseParticle.h:441
void shiftHorizontalPosition(BaseParticle *p, bool positive)
Applies a horizontal shift to the given particle.
BaseParticle * getPeriodicFromParticle() const
Returns the 'original' particle this one's a periodic copy of.
Definition: BaseParticle.h:341
virtual BaseParticle * copy() const =0
Particle copy method. It calls to copy constructor of this Particle, useful for polymorphism.
Mdouble getHorizontalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest horizontal wall.
void copyInteractionsForPeriodicParticles(const BaseInteractable &p)
Copies interactions to this BaseInteractable whenever a periodic copy made.
void ShearBoxBoundary::createPeriodicParticles ( BaseParticle p,
ParticleHandler pH 
)

Creates horizontal and vertical periodic copies of given particle, if needed.

Check if periodic copies of the particle have to be made for the contact detection and if so makes them

Parameters
[in]pA pointer to the BaseParticle that is checked
[out]pHA reference to the ParticleHandler where periodic copies will be added

Definition at line 255 of file ShearBoxBoundary.cc.

References createHorizontalPeriodicParticles(), and createVerticalPeriodicParticles().

256 {
259 }
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.
void ShearBoxBoundary::createVerticalPeriodicParticles ( BaseParticle p,
ParticleHandler pH 
)

Creates vertical periodic copies of given particle, if needed.

Check if periodic copies of the particle in vertical direction have to be made (i.e., if the distance of the particle to either of the vertical boundary walls is smaller than its radius plus the radius of the largest particle in the system), and if so makes them

Parameters
[in]pA pointer to the BaseParticle that is checked
[out]pHA reference to the ParticleHandler where periodic copies will be added

Definition at line 218 of file ShearBoxBoundary.cc.

References ParticleHandler::addObject(), BaseParticle::copy(), BaseInteractable::copyInteractionsForPeriodicParticles(), createHorizontalPeriodicParticles(), getHorizontalDistance(), ParticleHandler::getLargestParticle(), BaseHandler< T >::getLastObject(), BaseParticle::getMaxInteractionRadius(), BaseParticle::getPeriodicFromParticle(), getVerticalDistance(), BaseParticle::setPeriodicFromParticle(), shiftHorizontalPosition(), and shiftVerticalPosition().

Referenced by createPeriodicParticles().

219 {
220  bool positive; // TRUE if the particle is closest to the bottom boundary
221  // wall (set by getVerticalDistance in the following if-statement)
222  // check if particle is close enough to either of the walls
224  if (getVerticalDistance(*p, positive) < maxDistance)
225  {
226  // create a periodic copy of the particle
227  BaseParticle* F0 = p->copy();
228  pH.addObject(F0);
230 
231  // If Particle is doubly shifted, get correct original particle
232  BaseParticle* From = p;
233  while (From->getPeriodicFromParticle() != nullptr)
234  From = From->getPeriodicFromParticle();
235  F0->setPeriodicFromParticle(From);
236 
237  // shift the copy to the 'periodic' position
238  shiftVerticalPosition(F0, positive);
239  while (getHorizontalDistance(*F0, positive) < 0)
240  {
241  shiftHorizontalPosition(F0, positive);
242  }
243 
244  // Create horizontal periodic copies of the copy particle, if needed (i.e.,
245  // if the original particle is in one of the boundary corners).
247  }
248 }
BaseParticle * getLargestParticle() const
Returns the pointer of the largest particle in the particle handler. When mercury is running in paral...
Mdouble getVerticalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest vertical wall.
void addObject(BaseParticle *P) override
Adds a BaseParticle to the ParticleHandler.
double Mdouble
Definition: GeneralDefine.h:34
Mdouble getMaxInteractionRadius() const
Returns the particle's interaction radius, which might be different from radius_ (e.g., when dealing with wet particles)
Definition: BaseParticle.h:362
void setPeriodicFromParticle(BaseParticle *p)
Assigns the pointer to the 'original' particle this one's a periodic copy of (used in periodic bounda...
Definition: BaseParticle.h:441
void shiftHorizontalPosition(BaseParticle *p, bool positive)
Applies a horizontal shift to the given particle.
BaseParticle * getPeriodicFromParticle() const
Returns the 'original' particle this one's a periodic copy of.
Definition: BaseParticle.h:341
virtual BaseParticle * copy() const =0
Particle copy method. It calls to copy constructor of this Particle, useful for polymorphism.
void shiftVerticalPosition(BaseParticle *p, bool positive)
Applies a vertical shift to the given particle.
void createHorizontalPeriodicParticles(BaseParticle *p, ParticleHandler &pH)
Creates horizontal periodic copies of given particle, if needed.
Mdouble getHorizontalDistance(BaseParticle &p, bool &positive)
Returns distance from given particle to the closest horizontal wall.
void copyInteractionsForPeriodicParticles(const BaseInteractable &p)
Copies interactions to this BaseInteractable whenever a periodic copy made.
T * getLastObject()
Gets a pointer to the last Object in this BaseHandler.
Definition: BaseHandler.h:634
Mdouble ShearBoxBoundary::getHorizontalDistance ( BaseParticle p,
bool &  positive 
)

Returns distance from given particle to the closest horizontal wall.

Returns the distance between BaseParticle p and the closest boundary wall in horizontal direction

Parameters
[in]pA reference to the BaseParticle
[out]positiveA boolean which is true when the left wall is closest
Returns
The distance to the closes wall in horizontal direction

Definition at line 94 of file ShearBoxBoundary.cc.

References BaseInteractable::getPosition(), left_, right_, and Vec3D::X.

Referenced by checkBoundaryAfterParticleMoved(), createHorizontalPeriodicParticles(), and createVerticalPeriodicParticles().

95 {
96  Mdouble left = p.getPosition().X - left_;
97  Mdouble right = right_ - p.getPosition().X;
98  if (left < right)
99  {
100  positive = true;
101  return left;
102  }
103  else
104  {
105  positive = false;
106  return right;
107  }
108 }
const Vec3D & getPosition() const
Returns the position of this BaseInteractable.
Mdouble X
the vector components
Definition: Vector.h:65
double Mdouble
Definition: GeneralDefine.h:34
Mdouble right_
(signed) Horizontal distance between the left wall and the origin
std::string ShearBoxBoundary::getName ( ) const
overridevirtual

Returns the name of the object.

Returns
The name of this object (i.e. "ShearBoxBoundary")

Implements BaseObject.

Definition at line 74 of file ShearBoxBoundary.cc.

75 {
76  return "ShearBoxBoundary";
77 }
Mdouble ShearBoxBoundary::getVerticalDistance ( BaseParticle p,
bool &  positive 
)

Returns distance from given particle to the closest vertical wall.

Returns the distance between BaseParticle p and the closest wall in vertical direction

Parameters
[in]pA reference to the BaseParticle
[out]positiveA boolean which is true when the bottom wall is closest
Returns
The distance to the closes wall in vertical direction

Definition at line 116 of file ShearBoxBoundary.cc.

References down_, BaseInteractable::getPosition(), up_, and Vec3D::Y.

Referenced by checkBoundaryAfterParticleMoved(), and createVerticalPeriodicParticles().

117 {
118  Mdouble down = p.getPosition().Y - down_;
119  Mdouble up = up_ - p.getPosition().Y;
120  if (down < up)
121  {
122  positive = true;
123  return down;
124  }
125  else
126  {
127  positive = false;
128  return up;
129  }
130 }
const Vec3D & getPosition() const
Returns the position of this BaseInteractable.
double Mdouble
Definition: GeneralDefine.h:34
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
Mdouble Y
Definition: Vector.h:65
Mdouble down_
(signed) Horizontal distance between the right wall and the origin
void ShearBoxBoundary::read ( std::istream &  is)
overridevirtual

Reads all boundary properties from a stream.

Reads all the properties of the ShearBoxBoundary from an std::istream

Parameters
[in,out]isThe stream from which the parameters are read

Implements BaseBoundary.

Definition at line 53 of file ShearBoxBoundary.cc.

References down_, left_, BaseBoundary::read(), right_, UNUSED, up_, and velocity_.

54 {
55  std::string dummy;
57  is >> dummy >> left_ >> dummy >> right_ >> dummy >> down_ >> dummy >> up_;
58  velocity_ = [](double time UNUSED, double velocity UNUSED) { return 0.0; };
59 }
std::function< double(double, double)> velocity_
(signed) Vertical distance between the top wall and the origin
void read(std::istream &is) override=0
Reads the object's id_ from given istream NB: purely virtual function, overriding the version of Base...
Definition: BaseBoundary.cc:61
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
#define UNUSED
Definition: GeneralDefine.h:39
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 ShearBoxBoundary::set ( std::function< double(double, double)>  velocity,
Mdouble  left,
Mdouble  right,
Mdouble  down,
Mdouble  up 
)

Sets all boundary properties.

Allows the user to set all the properties of the ShearBoxBoundary at once.

Parameters
[in]velocityThe difference in velocities at which the bottom and to wall move
[in]leftThe (signed) distance between the origin and the left wall
[in]rightThe (signed) distance between the origin and the right wall
[in]downThe (signed) distance between the origin and the top wall
[in]upThe (signed) distance between the origin and the bottom wall

Definition at line 39 of file ShearBoxBoundary.cc.

References down_, left_, right_, up_, and velocity_.

41 {
42  velocity_ = velocity;
43  left_ = left;
44  right_ = right;
45  down_ = down;
46  up_ = up;
47 }
std::function< double(double, double)> velocity_
(signed) Vertical distance between the top wall and the origin
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
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 ShearBoxBoundary::setVelocity ( std::function< double(double, double)>  velocity)

Definition at line 280 of file ShearBoxBoundary.cc.

References velocity_.

281 {
282  velocity_ = velocity;
283 }
std::function< double(double, double)> velocity_
(signed) Vertical distance between the top wall and the origin
void ShearBoxBoundary::shiftHorizontalPosition ( BaseParticle p,
bool  positive 
)

Applies a horizontal shift to the given particle.

Shifts the BaseParticle p in horizontal direction to its 'periodic' position, i.e. over the horizontal length of the boundary.

Parameters
[in]pA reference to the BaseParticle that has to be shifted
[in]positiveA boolean which determines the direction of the shift NB: TRUE if particle is closest to the left boundary wall

Definition at line 139 of file ShearBoxBoundary.cc.

References BaseInteractable::addVelocity(), BaseHandler< T >::getDPMBase(), BaseBoundary::getHandler(), BaseInteractable::getPosition(), DPMBase::getTime(), left_, BaseInteractable::move(), right_, velocity_, and Vec3D::Z.

Referenced by checkBoundaryAfterParticleMoved(), createHorizontalPeriodicParticles(), and createVerticalPeriodicParticles().

140 {
141  Mdouble time = getHandler()->getDPMBase()->getTime();
142  Mdouble z = p->getPosition().Z;
143  if (positive)
144  {
145  p->move(Vec3D(right_ - left_, 0.0, 0.0));
146  p->addVelocity(Vec3D(velocity_(time, z), 0.0, 0.0));
147  }
148  else
149  {
150  p->move(Vec3D(left_ - right_, 0.0, 0.0));
151  p->addVelocity(Vec3D(velocity_(time, z), 0.0, 0.0));
152  }
153 }
const Vec3D & getPosition() const
Returns the position of this BaseInteractable.
void addVelocity(const Vec3D &velocity)
adds an increment to the velocity.
double Mdouble
Definition: GeneralDefine.h:34
std::function< double(double, double)> velocity_
(signed) Vertical distance between the top wall and the origin
BoundaryHandler * getHandler() const
Returns the boundary's BoundaryHandler.
Definition: Vector.h:49
virtual void move(const Vec3D &move)
Moves this BaseInteractable by adding an amount to the position.
DPMBase * getDPMBase()
Gets the problem that is solved using this handler.
Definition: BaseHandler.h:725
Mdouble Z
Definition: Vector.h:65
Mdouble right_
(signed) Horizontal distance between the left wall and the origin
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:805
void ShearBoxBoundary::shiftVerticalPosition ( BaseParticle p,
bool  positive 
)

Applies a vertical shift to the given particle.

Shifts the BaseParticle p in vertical direction to its 'periodic' position, i.e. over the vertical length of the boundary.

Parameters
[in]pA reference to the BaseParticle that has to be shifted
[in]positiveA boolean which determines the direction of the shift NB: TRUE if particle is closest to the bottom boundary wall

Definition at line 162 of file ShearBoxBoundary.cc.

References down_, BaseInteractable::move(), and up_.

Referenced by checkBoundaryAfterParticleMoved(), and createVerticalPeriodicParticles().

163 {
164  if (positive)
165  {
166  p->move(Vec3D(0.0, up_ - down_, 0.0));
167  }
168  else
169  {
170  p->move(Vec3D(0.0, down_ - up_, 0.0));
171  }
172 }
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
Definition: Vector.h:49
virtual void move(const Vec3D &move)
Moves this BaseInteractable by adding an amount to the position.
Mdouble down_
(signed) Horizontal distance between the right wall and the origin
void ShearBoxBoundary::write ( std::ostream &  os) const
overridevirtual

Writes all boundary properties to a stream.

Writes all the properties of the ShearBoxBoundary to an std::ostream

Parameters
[out]osThe stream to which the parameters are written

Implements BaseBoundary.

Definition at line 65 of file ShearBoxBoundary.cc.

References down_, left_, right_, up_, and BaseBoundary::write().

66 {
68  os << " left " << left_ << " right " << right_ << " down " << down_ << " up " << up_;
69 }
Mdouble up_
(signed) Vertical distance between the bottom wall and the origin
void write(std::ostream &os) const override=0
Adds object's id_ to given ostream NB: purely virtual function, overriding the version of BaseObject...
Definition: BaseBoundary.cc:70
Mdouble right_
(signed) Horizontal distance between the left wall and the origin
Mdouble down_
(signed) Horizontal distance between the right wall and the origin

Member Data Documentation

Mdouble ShearBoxBoundary::down_
private

(signed) Horizontal distance between the right wall and the origin

Definition at line 116 of file ShearBoxBoundary.h.

Referenced by getVerticalDistance(), read(), set(), shiftVerticalPosition(), and write().

Mdouble ShearBoxBoundary::left_
private

Definition at line 114 of file ShearBoxBoundary.h.

Referenced by getHorizontalDistance(), read(), set(), shiftHorizontalPosition(), and write().

Mdouble ShearBoxBoundary::right_
private

(signed) Horizontal distance between the left wall and the origin

Definition at line 115 of file ShearBoxBoundary.h.

Referenced by getHorizontalDistance(), read(), set(), shiftHorizontalPosition(), and write().

Mdouble ShearBoxBoundary::up_
private

(signed) Vertical distance between the bottom wall and the origin

Definition at line 117 of file ShearBoxBoundary.h.

Referenced by getVerticalDistance(), read(), set(), shiftVerticalPosition(), and write().

std::function<double(double, double)> ShearBoxBoundary::velocity_
private

(signed) Vertical distance between the top wall and the origin

Definition at line 118 of file ShearBoxBoundary.h.

Referenced by read(), set(), setVelocity(), and shiftHorizontalPosition().


The documentation for this class was generated from the following files: