How to plot streamwise vorticity

Dear Paraview developer,

I am simulating the flow within a U-shape tube. I am going to visualize the streamwise vorticity contour in a plane normal to tube axis. However, the velocity components are in the Cartesian coordinates. I would be wondering if you could guide me how to solve this issue.

Yours truly,
Nasrollah Hajaliakbari

Hi @Nasrollah_H,

Thanks for your question!

I am not sure I follow exactly. What do you mean mathematically by the streamwise vorticity contour in a plane normal to tube axis?

Best regards,
Julien

Dear Mr. Julien Fausty,

Thanks for your response. In fact, I want to visualize the vorticity contour in normal direction of a plane which is perpendicular to a U-Tube axis.

Best regards,
Nasrollah Hajaliakbari

Hi @Nasrollah_H,

So, if I understand correctly, with w the vorticity and n the normal to your plane, you would like to visualize iso-contours of the scalar field w \cdot n.

Is that correct?

Best,
Julien

Dear Mr. Julien Fausty,

Thanks for your response and sorry for the confusion. Yes, something like the 2D colorful contours of a circular cross section depicted in the article entitled as “Reducing the data: Analysis of the role of vascular geometry on blood flow patterns in curved vessels”
in Fig 4 (d, e and f) without streamlines. I want to visualize these contours for a U-shape tube.

https://pubs.aip.org/aip/pof/article/24/3/031902/257823/

I hope this could help.

Best regards,
Nasrollah Hajaliakbari

Hi @Nasrollah_H,

I have generated a quick state file vorticity_in_z_direction.pvsm (567.9 KB) that you should be able to load into ParaView using this data set disk_out_ref.ex2 (687.9 KB).

The steps:

  • First use the “Python Calculator” to project the vector field in a given direction (here I use the Z direction but you can imagine using any other vector field such as the n field in your case)
  • Then you can use the "Slice¨ filter to interpolate the data set onto a 2D plane (you can use the widget in the render view to place this plane manually or control its exact positioning from the properties tab)

Here is a screen shot on this data:

If you are truly interested in contours and not 2D slices, you can also use the “Contour” filter on you data to generate an iso-surface in 3D.

Hope that helps!

Best,
Julien

Dear Mr. Julien Fausty,

Thanks for your response and providing the files.
For my case study, I have the velocity components (vx,vy,vz) and need to evaluate the vorticity using the vorticity defintion, i.e., Curl V. However, for the case you have provided, you have aleardy had the vorticity vector. Therefore, you could simply project it into your desired plane. I would be wondering if you could provide me a solution under those conditions.

Kind regards,
Nasrollah Hajaliakbari

Hi @Nasrollah_H,

I see your issue. Unfortunately I do not believe there is a “Curl” filter in ParaView.

There is, however, a tensor “Gradient” filter. You can use this filter on your vector field to get your tensorial valued gradient field. You can then use the “Python Calculator” to sum / subtract the correct components of your tensorial gradient to determine the value of the curl vector field.

Hope that helps !

Regards,
Julien

I have not been following this thread, however ParaView does include a Vorticity calculation. It is in the Gradient filter, then Advanced (the little gear next to the search). With regards to Curl, this is trivial to do with the Python Calculator. See the users guide for details (Help menu, ParaView Guide).