CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Vorticity in OpenFOAM; Negative to when I compute from fvc::grad(U)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2020, 21:44
Default Vorticity in OpenFOAM; Negative to when I compute from fvc::grad(U)
  #1
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Hi there,



I output the values of the velocity gradient tensor, as well as, the vorticity for my simulation.


Let's just consider the rotation about the x-axis for simplicity.


The problem that I am having is that when I compute \omega_x =  \frac{\partial w}{\partial y} - \frac{\partial v}{\partial z}, this is the definition of curl in the OpenFOAM Programmer's guide 2.1.3. Howeber, I actually get the negative of the vorticity in the standard OpenFOAM output file.


Now, when I again follow the maths in the Progammer's guide, I see that OpenFOAM is actually computing the hodge dual of the rotation rate tensor, so for [math] \omega_x = \omega_{23}[\math]. This should indeed be \omega_x =  \frac{\partial w}{\partial y} - \frac{\partial v}{\partial z}.


Now, the only thing I can think of that I may be doing wrong is that I assume that OF is writing the VGT in the following order: \partial_x{u} ,\partial_y{u},\partial_z{u},\partial_x{v}...
Any help appreciated.
tzaht is offline   Reply With Quote

Old   February 11, 2020, 17:18
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: 13
HPE is on a distinguished road
is it possible for you to provide a test case?
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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
How to set negative slippage in OpenFOAM? Excercise OpenFOAM 0 October 23, 2019 23:44
Negative Vorticity contour in CFD post shubh6tiwari FLUENT 0 August 14, 2018 01:57
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56


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