Molecular Dynamics Simulation
1.0
src
particles
containers
linkedcells
boundaries
ReflectiveBoundaryType.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <array>
4
5
#include "
particles/containers/linkedcells/LinkedCellsContainer.h
"
6
7
class
ReflectiveBoundaryType
{
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
};
LinkedCellsContainer.h
LinkedCellsContainer
Extension of the ParticleContainer class using a linked cells data structure for improved performance...
Definition:
LinkedCellsContainer.h:14
LinkedCellsContainer::BoundarySide
BoundarySide
Boundary side enum for labeling the sides of the domain.
Definition:
LinkedCellsContainer.h:26
Particle
Class to represent a particle.
Definition:
Particle.h:26
ReflectiveBoundaryType
Definition:
ReflectiveBoundaryType.h:7
ReflectiveBoundaryType::applyBoundaryConditions
static void applyBoundaryConditions(LinkedCellsContainer &container)
Applies the boundary conditions for the reflective boundary condition.
Definition:
ReflectiveBoundaryType.cpp:11
ReflectiveBoundaryType::pre
static void pre(LinkedCellsContainer &container)
Applies the preconditioning step for the reflective boundary condition.
Definition:
ReflectiveBoundaryType.cpp:7
ReflectiveBoundaryType::calculateReflectiveBoundaryForce
static std::array< double, 3 > calculateReflectiveBoundaryForce(Particle &p, double distance, LinkedCellsContainer::BoundarySide side)
Calculates the force of the reflective boundary for the given particle.
Definition:
ReflectiveBoundaryType.cpp:73
Generated by
1.9.1