Closed team0ne1 closed 2 years ago
Sorry for the late response. Yes, you can get a uniform tensor using velocity.uniform_values
on the latest version or velocity.staggered_tensor()
on older versions. Then get the numpy representation using .numpy('x,y,vector')
For example, in
./demos/smoke_plume.py
. I try to get velocity grid valuesthen it throw error:
so I have to get velocity Tensor values in this way, but it's so werid.
Output:
So, Is there any better way to get the velocity valus?
And one more question, Why the shape of grid is
(63, 64) (64, 63)
instead of(64, 64) (64, 64)
? Thanks