CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to calculate the rotational of a vector field in Paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2020, 08:48
Default How to calculate the rotational of a vector field in Paraview
  #1
New Member
 
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7
Rotidpor is on a distinguished road
Hello foamers,


the question is in the title. Is there any way to calculate the vorticity in Paraview ? Openfoam can do it with the -postProcess -func vorticity utility but I'm a bit confused with Paraview.

I don't see anything doable with vectors besides taking the magnitude or creating a vector field with iHat kHat jHat from three scalar fields in the calculator utility.


Thank you for helping me out.
Rotidpor is offline   Reply With Quote

Old   May 28, 2020, 17:57
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 12
HPE is on a distinguished road
Hi,

- `curl` operator is not a part of ParaView calculator, afaik.
- Instead, you can use the `Python Calculator`: https://vtk.org/Wiki/Python_Calculator
- Why do you want to compute vorticity in ParaView if you do use OpenFOAM?

Thanks.
HPE is offline   Reply With Quote

Old   May 29, 2020, 04:27
Default
  #3
New Member
 
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7
Rotidpor is on a distinguished road
Thanks for your answer HPE.


I wanted to do the calculation of the vorticity in Paraview because my cases are decomposed and very, very heavy.
I use another node for Paraview so it would have been convenient to be able to manipulate fields in paraview while my other machines are calculating.
Rotidpor is offline   Reply With Quote

Old   May 29, 2020, 05:31
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 12
HPE is on a distinguished road
If the parallelisation is the problem, please bear in mind that you can also execute `postProcess` in parallel.

I strongly suggest you to consider using OpenFOAM utilities over ParaView for data manipulation.

OR, if you would like to use beautiful NumPy/SciPy for OpenFOAM data manipulation, I can also suggest this beautiful parser: https://github.com/xu-xianghua/ofpp

Hope these help.
HPE is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 05:48
[General] How to calculate a variable in Paraview fkika ParaView 1 March 15, 2016 06:19
How to calculate mass flow rate through arbitrary rectangle plane in paraview manoj_nav OpenFOAM Pre-Processing 1 March 10, 2016 02:16
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32
calculate average in Paraview alain Main CFD Forum 0 March 14, 2006 05:49


All times are GMT -4. The time now is 13:06.