Skip to content

Reply To: Extract velocity, pressure, and density data on lattices without interpolation

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics Extract velocity, pressure, and density data on lattices without interpolation Reply To: Extract velocity, pressure, and density data on lattices without interpolation

#5922
jjessberger
Participant

After defining the functor “SuperLatticeVelocity2D<T, DESCRIPTOR> velocity_lat( sLattice);”, you may call it via “velocity_lat(output, input)”, where output, input are appropriate arrays:
T[d] output gets the result; int[d] input contains the coordinates.
Cf. the chapter about functors in the user guide and the definition of SuperLatticeVelocity2D.operator()