Re: Operate the whole vector field
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Operate the whole vector field › Re: Operate the whole vector field
May 19, 2017 at 8:44 am #2628
After I used SuperLatticePhysVelocity3D to get the whole field vectors, I wanted to do some operation to it. For example
SuperLatticePhysVelocity3D<T, DESCRIPTOR> velocity( sLattice, converter );
velocity = velocity / 2;
and it went wrong. I thought that the velocity is the data structure that created by SuperLatticePhysVelocity3D to store whole field vectors. Am I wrong?
So how should I define a structure to store data after using SuperLatticePhysVelocity3D to get it?
Thank you so much.