Skip to content

Re: Operate the whole vector field

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 Operate the whole vector field Re: Operate the whole vector field

#2628
steed188
Participant

Dear Albert,
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.

yours sincerely
steed188