Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I have a parallelepiped, structured mesh, which means that he is divided in nodes. I have the velocity vector for each node and I want to evaluate the vorticity vector, which is:

w_x=(f(x,y+1,z)-f(x,y,z))-(f(x,y,z+1)-f(x,y,z))

w_y=(f(x,y,z+1)-f(x,y,z))-(f(x+1,y,z)-f(x,y,z))

w_z=(f(x+1,y,z)-f(x,y,z))-(f(x,y+1,z)-f(x,y,z))

SO for each node (x,y,z) I have to evaluate the velocities at the neighbouring nodes (x+1,y,z),(x,y+1,z) and (x,y,z+1). I don't have any idea about how to implement this do loop that calculates the velocities at the three neighbouring nodes and at the node and calculate the vorticity.

Have you got any idea, please?

Don't hesitate to ask more question, if I couldn't be clear.

Thank you for your time

Antonio

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Treating the data in fortran and calculus

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**