CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Vorticity Direction (https://www.cfd-online.com/Forums/fluent/47508-vorticity-direction.html)

Sham March 4, 2008 08:15

Vorticity Direction
 
Hi all,

I am simulating an oscillating cylinder and observing the vorticities. Does anyone know how to view the velocity in which the clock wise and anti clockwise vorticity direction gives you diff colour in the contour plot? This will make it easy to differentiate between positive and negative vorticity direction.

Sham

NRD March 4, 2008 22:47

Re: Vorticity Direction
 
Hello,

Your question is not entirely clear to me. However, if you want to look at the direction in which the vortices are rotating (i.e. whether clockwise or counter-clockwise) why not plot the velocity vectors?

John Young March 7, 2008 00:58

Re: Vorticity Direction
 
Hi Sham, I'm assuming your problem is 2D, where fluent only provides the vorticity magnitude. To get around this you can define a Custom Field Function (see sect 30.5.1 of the user guide) for the vorticity which is du/dy - dv/dx. John

Sham March 22, 2008 03:41

Re: Vorticity Direction
 
John,

Could you pls explain a little bit more how can I use the Custom Field Function to define the vorticity direction and show it in diff colour? I am modelling a 2D cylinder in free stream.

Sham.

John Young March 24, 2008 16:15

Re: Vorticity Direction
 
Hi Sham,

Go to the "Define" menu, pick "Custom Field Function". Then in the "Field Functions" drop-down box, pick "Derivatives", select "dX-Velocity/dy" from the second drop-down box, click "Select", then the "-" button, then select "dY-Velocity/dx" and click "Select".

Now choose a name for your new variable (e.g. "Vorticity-signed"), then click "Define".

When you go to plot contours, choose "Custom Field Functions", and your new variable will be available. Note that most of the vorticity will be in the boundary layer, so you will probably have to take it off "Auto Range" and pick some lower values to see anything at all in the wake. Positive values represent rotation in one direction, negative values in the other.

Hope that helps, John


Sham March 24, 2008 23:08

Re: Vorticity Direction
 
John,

Thanks a lot. It works.

Sham.

anil raj May 19, 2011 16:27

VORTICITY calculation in unstructured grid?
 
I have one doubt regarding the vorticity calculation in FLUENT. In a forum i found the vorticity calculation is by du/dy-dv/dx. But this is valid for structured mesh only according to theory and how can it be valid for unstructured grids. Is there any method (Algorithm) by which Fluent calculates the vorticity for unstructured grid?.

rajann_786 January 9, 2016 02:43

To, John Young
Thanks!!! It is helpful.

adilio May 24, 2016 06:01

Thank You John
I lost my 3 weeks finding how to do this.. finally you made my day

Mahram Khan April 23, 2019 05:05

Quote:

Originally Posted by anil raj (Post 308459)
I have one doubt regarding the vorticity calculation in FLUENT. In a forum i found the vorticity calculation is by du/dy-dv/dx. But this is valid for structured mesh only according to theory and how can it be valid for unstructured grids. Is there any method (Algorithm) by which Fluent calculates the vorticity for unstructured grid?.

How did you define vorticity for the unstructured mesh?

LuckyTran April 23, 2019 11:47

Quote:

Originally Posted by Mahram Khan (Post 731559)
How did you define vorticity for the unstructured mesh?


The vorticity is defined mathematically the same way regardless of mesh. What differs is how you would actually go and calculate the gradient field. Fluent is an unstructured solver anyway, so it never matters. Whether your mesh is structured or not, Fluent treats it like an unstructured mesh.

Mahram Khan April 24, 2019 00:04

Quote:

Originally Posted by LuckyTran (Post 731618)
The vorticity is defined mathematically the same way regardless of mesh. What differs is how you would actually go and calculate the gradient field. Fluent is an unstructured solver anyway, so it never matters. Whether your mesh is structured or not, Fluent treats it like an unstructured mesh.

I have defined the vorticity same way and there is one built-in function for vorticity magnitude, I have compared the results and it differs on a few nodes. Can you please explain why it differs on a few nodes. Thanks!

LuckyTran April 24, 2019 14:05

Quote:

Originally Posted by Mahram Khan (Post 731664)
I have defined the vorticity same way and there is one built-in function for vorticity magnitude, I have compared the results and it differs on a few nodes. Can you please explain why it differs on a few nodes. Thanks!


on notes or on cells? On nodes, there's all sorts of wonky interpolation that happens.

Mahram Khan April 25, 2019 00:47

Quote:

Originally Posted by LuckyTran (Post 731744)
on notes or on cells? On nodes, there's all sorts of wonky interpolation that happens.

Yes, it was on nodes, however, on cells it's same. Thanks!

Mahram Khan April 25, 2019 05:35

Quote:

Originally Posted by LuckyTran (Post 731744)
on notes or on cells? On nodes, there's all sorts of wonky interpolation that happens.

Can I ask you one more thing? What model is the best for 2D unsteady simulations in order to verify Navier-stokes equations? Thanks!


All times are GMT -4. The time now is 18:55.