RectangularConfinement
SimulationBuilder > MD > SimulationComponents
This implements Weeks-Chandler-Andersen walls in the x and y directions. The z-direction behaves as a periodic boundary. The radius set corresponds to a "ghost particle" placed at that point.
Synopsis
#include <glotzilla++.h> //declare an instance RectangularConfinement *confinement = new RectangularConfinement; //set some parameters confinement->SetRadius(1.0,2.0); //wall at x=-1, 1, y=-2,2 //add the SystemComponent to the simulation AddSimulationComponent(confinement);
Tutorials
External Links