Re: velocity component
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 › velocity component › Re: velocity component
August 25, 2017 at 9:49 am
#2700
robin.trunk
Participant
Hi,
what is your goal? Do you want to know the velocity at a specific point? In this case the code below should work:
SuperLatticePhysVelocity3D<T, DESCRIPTOR> velocity(sLattice, converter);
AnalyticalFfromSuperF3D<T> intpolateVelocity( velocity, true );
T v1[3];
intpolateVelocity( v1,point1 );
Here point1 is an array of T, for example
T point1[3] = {1., 0., 0.};
The code for 2D should be analogue.
Best
Robin
