Commit 4eb31b96 authored by Sævik Pål Næverlid's avatar Sævik Pål Næverlid
Browse files

Use divergence-free velocity sampling

parent 11e36ef1
......@@ -754,6 +754,6 @@ def sample3D(F, X, Y, K, A, method="bilinear"):
def sample3DUV(U, V, X, Y, K, A, method="bilinear"):
return (
sample3D(U, X + 0.5, Y, K, A, method=method),
sample3D(V, X, Y + 0.5, K, A, method=method),
sample3D(U, X + 0.5, np.round(Y), K, A, method=method),
sample3D(V, np.round(X), Y + 0.5, K, A, method=method),
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment