Molecular Dynamics Simulation
1.0
|
#include <ReflectiveBoundaryType.h>
Static Public Member Functions | |
static void | pre (LinkedCellsContainer &container) |
Applies the preconditioning step for the reflective boundary condition. More... | |
static void | applyBoundaryConditions (LinkedCellsContainer &container) |
Applies the boundary conditions for the reflective boundary condition. More... | |
Static Private Member Functions | |
static std::array< double, 3 > | calculateReflectiveBoundaryForce (Particle &p, double distance, LinkedCellsContainer::BoundarySide side) |
Calculates the force of the reflective boundary for the given particle. More... | |
Definition at line 7 of file ReflectiveBoundaryType.h.
|
static |
Applies the boundary conditions for the reflective boundary condition.
container | The container to apply the boundary conditions to. |
This method adds the force of the reflective boundary to all particles that are in halo cells with the reflective boundary condition.
Definition at line 11 of file ReflectiveBoundaryType.cpp.
|
staticprivate |
Calculates the force of the reflective boundary for the given particle.
p | The particle to calculate the force for. |
distance | The distance of the particle to the boundary. |
side | The side of the boundary. |
Definition at line 73 of file ReflectiveBoundaryType.cpp.
|
static |
Applies the preconditioning step for the reflective boundary condition.
container | The container to apply the boundary conditions to. |
This method is empty, as the reflective boundary condition does not require any special treatment.
Definition at line 7 of file ReflectiveBoundaryType.cpp.