Re: velocity component
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › velocity component › Re: velocity component
August 25, 2017 at 9:49 am
#2700
robin.trunk
Keymaster
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