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

strange in computation of normal vector

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Santiago

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 28, 2019, 08:44
Default strange in computation of normal vector
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Dear everyone,

I tried to plot the gradient of alpha.water and normal vector of interface using gradient of alpha.water with interFoam solver. And I found a thing that is quite strange for me as shown in the attached file.
Variables are defined as:
gradAlpha = fvc::grad(alpha1)
nAlphaVec = gradAlpha/(mag(gradAlpha) + epsilon)

with epsilon = 1.0e-8

I think that alpha1, gradAlpha and nAlphaVec should have the same contours, however, the contour of nAlphaVec is very different compare to 2 other ones.

Could someone help me to explain what is the reason for that.

I thank you very much
Attached Images
File Type: jpg alpha.water.jpg (90.7 KB, 11 views)
File Type: jpg gradAlpha.jpg (92.4 KB, 13 views)
File Type: jpg nGradAlpha.jpg (102.8 KB, 14 views)
ndtrong is offline   Reply With Quote

 


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
Computation of Turbulence Intensity Profile from PIV vector fields emspinosa Visualization & Post-Processing 0 October 24, 2014 07:00
Normal vector, slope and aspect angle g_niro Main CFD Forum 0 February 2, 2011 17:24
out normal vector ztdep Main CFD Forum 0 September 14, 2008 08:08
Normal vector to a cell??? lagha FLUENT 2 May 28, 2002 11:23
Normal Vector on Curved Surfaces Karl FLUENT 0 July 2, 2001 04:35


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