#include "Particles/ParticleBC.h"
#include <iostream>
#include "Particles/ReverseBC.cpp"
Classes | |
class | ReverseBC< T > |
Here is an example of adding a new particle boundary condition. More... | |
class | ParticleBC< Subject, Object, ReverseBC< T > > |
When subject Attribute value goes outside boundary by some amount, ReverseBC sets value to be inside boundary by that amount. In addition, it flips the sign of the object Attribute. The typical use for this would be to bounce a particle off of a wall by replacing it inside the wall and reversing its velocity.