FreePOOMA
2.4.1
|
A reversing boundary condition for Particles. More...
Classes | |
class | ReverseBC< T > |
Here is an example of adding a new particle boundary condition. More... | |
class | ParticleBC< Subject, Object, ReverseBC< T > > |
A reversing boundary condition for Particles.
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.