Evaluating Vorticity in a Parallelepiped Domain

  • Context: Graduate 
  • Thread starter Thread starter mortain
  • Start date Start date
  • Tags Tags
    Vorticity
Click For Summary
SUMMARY

The discussion focuses on evaluating vorticity in a parallelepiped domain using finite difference methods in Fortran. The user, Antonio, attempts to calculate vorticity using the formula w_x=(u_z(x,y+1,z)-u_z(x,y,z))-(u_y(x,y,z+1)-u_y(x,y,z)), but encounters issues with its implementation. Key advice includes defining the geometry, setting up a mesh using tools like MATLAB or C++, and applying finite difference techniques with known boundary conditions to accurately solve the vorticity equation.

PREREQUISITES
  • Understanding of vorticity and its mathematical definition
  • Proficiency in finite difference methods for numerical analysis
  • Familiarity with programming in Fortran, MATLAB, or C++
  • Knowledge of computational fluid dynamics concepts
NEXT STEPS
  • Research "Finite Difference Methods for Partial Differential Equations"
  • Learn "Setting Up Computational Meshes in MATLAB"
  • Explore "Vorticity Calculation Techniques in Computational Fluid Dynamics"
  • Study "Matrix Inversion Techniques for Numerical Solutions"
USEFUL FOR

This discussion is beneficial for undergraduate and graduate students in fluid dynamics, computational scientists, and engineers working on vorticity calculations in three-dimensional domains.

mortain
Messages
3
Reaction score
0
Hello,

I have a parallelepiped domain, divided in nodes. Each node has a velocity vector (3D). I want to evaluate the vorticity. Starting from the definition of vorticity (e.g. w_x=[tex]\partial[/tex]u_z/[tex]\partial[/tex]y-[tex]\partial[/tex]u_y/[tex]\partial[/tex]z) I calculated the vorticity in a fortran progem like: w_x=(u_z(x,y+1,z)-u_z(x,y,z))-(u_y(x,y,z+1)-u_y(x,y,z)) but it is not really doing what it is supposed to do. I read the following document: http://folk.uio.no/jks/matpiv/html/node31.html I'd like to have your opinion.

Thank you for any advice

p.s. u_i is the velocity in the i-th direction, (x,y,z) indicates the node

Antonio
 
Physics news on Phys.org
They are applying finite differences.. and using the equation of vorticity, in order to do so... I don't know how you are solving it.. but you need to apply finite differences with a known boundary, etc. in order to solve it. for example (see the jpeg attached), the blue symbolizes the vortex.. you need to tell the computer what your mesh/geometry of interest is, how you want to divide it so you evaluate the differential equation via finite differences at it, and then how calculate it. This is what the article says.

1) Determine the length, width, height, shape of the geometry
2) determine where the vortex is in the geometry
3) Set up the mesh via matlab/C++/whatever, to divide the geometry by delta x, delta y, or by small x's and y's that specify height, etc.
4) is there anything else but the vortex going in the geometry? If not, then write the vortex equation via finite differences (as in the website) to describe behavior at that geometrical spatial point
5) Finish Collect and store that information in a matrix, solve using matrix inversion or gauss siedel

If you give me more information, if this is an undergrad. or grad. problem, then I can help out. Assuming it is undergrad. there many simplications you can make in order to make this problem easier and not use computational tools.

Best
 

Attachments

  • vortex.jpg
    vortex.jpg
    16.6 KB · Views: 489

Similar threads

  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K