Skip to content

Reply To: BounceBackVelocity


I am not sure what you want to accomplish.

Is it simply using the existing Bounce Back Velocity boundary in a simulation?
If so you do not need to implement a getBounceBackVelocity function (?) by yourself, instead call e.g.:

setBounceBackVelocityBoundary(superGeometry, 3, omega, sLattice);
sLattice.defineU(superGeometry, 3, uTop);

in your boundary setup (replace 3 by the material number of your desired bounce back velocity boundary).