Molecular Dynamics Simulation  1.0
ReflectiveBoundaryType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <array>
4 
6 
8  public:
16  static void pre(LinkedCellsContainer& container);
17 
25  static void applyBoundaryConditions(LinkedCellsContainer& container);
26 
27  private:
37  static std::array<double, 3> calculateReflectiveBoundaryForce(Particle& p, double distance, LinkedCellsContainer::BoundarySide side);
38 };
Extension of the ParticleContainer class using a linked cells data structure for improved performance...
BoundarySide
Boundary side enum for labeling the sides of the domain.
Class to represent a particle.
Definition: Particle.h:26
static void applyBoundaryConditions(LinkedCellsContainer &container)
Applies the boundary conditions for the reflective boundary condition.
static void pre(LinkedCellsContainer &container)
Applies the preconditioning step for the reflective boundary condition.
static std::array< double, 3 > calculateReflectiveBoundaryForce(Particle &p, double distance, LinkedCellsContainer::BoundarySide side)
Calculates the force of the reflective boundary for the given particle.