Class ReflectiveShell
Defined in File Boundary.h
Inheritance Relationships
Base Type
public Module(Class Module)
Class Documentation
-
class ReflectiveShell : public Module
Shell with reflective boundary.
If a particle crosses the boundary it is reflected back inside or outside (position and velocity) depending where it came from. Particles can overshoot (be outside of the box during the step) since the step size is not limited by this module.
Public Functions
-
ReflectiveShell(Vector3d center, double r)
Constructor
- Parameters:
center – vector corresponding to the center of the sphere
r – value corresponding to the radius of the shell
-
virtual void process(Candidate *candidate) const
Process function This is the main function to work with, it is called during every ModuleList::run step. Derived functions need to override this overload of process!
- Parameters:
candidate – Candidate raw pointer
-
void setRadius(double r)
-
virtual std::string getDescription() const
Returns description, can be overriden by derived class.
-
void setDescription(const std::string &description)
Sets description, can be used instead of getDescription in derived class
- Parameters:
description – Description string
-
ReflectiveShell(Vector3d center, double r)