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

short question: zeroGradient equal fixedGradient=(0 0 0) ?!

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Bernhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2013, 08:54
Default short question: zeroGradient equal fixedGradient=(0 0 0) ?!
  #1
Member
 
Andreas Ruopp
Join Date: Aug 2009
Location: Stuttgart / Germany
Posts: 31
Rep Power: 17
andyru is on a distinguished road
Hello,

I looked at fixedGradientFvPatchField.C and
zeroGradientFvPatchField.C and for me

Code:
type fixedGradient;
value uniform (0 0 0);
behaves like using:
Code:
type zeroGradient;
So why do we have zeroGradient? fixedGradient type would be enough?!
Or do I draw the wrong conclusion?

Best regards,

Andy
andyru is offline   Reply With Quote

Old   July 16, 2013, 09:34
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
They are not the same. zeroGradient only garantuees the wall-normal derivative to be zero, not the complete gradient.
fportela and SHUBHAM9595 like this.
Bernhard is offline   Reply With Quote

Old   July 16, 2013, 13:52
Default
  #3
Member
 
Andreas Ruopp
Join Date: Aug 2009
Location: Stuttgart / Germany
Posts: 31
Rep Power: 17
andyru is on a distinguished road
Thank you for the fast answer. I got it.

Next little question:
A given fixedGradient value (a b c) will specify the gradient of for example U in the standard Coordinate-System(x,y,z) on a patch
HTML Code:
http://foam.sourceforge.net/docs/cpp/a00671.html#details
This boundary condition supplies a fixed gradient condition, such that the patch values are calculated using:


where
= patch values
= internal field values
= gradient (user-specified)
= inverse distance from patch face centre to cell centre

Hence, x_p is independent from the normal patch face vector?

Thanks for the answer in advance,

Andy
andyru is offline   Reply With Quote

Reply

Tags
boundary, condition, fixedgradient, zerogradient


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
second order schemes marine OpenFOAM 67 April 11, 2022 19:19
A newbie's question -- NaN in icoFoam BigMatilda OpenFOAM Running, Solving & CFD 1 July 13, 2012 07:22
Short course: Modeling of Water Resources and Environmental Problems using OpenFOAM liu OpenFOAM Announcements from Other Sources 0 March 14, 2012 17:32
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 18:08
Short question on command in user fortran Franz Thomsen CFX 2 June 20, 2000 07:35


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