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

Boundary conditions symmetryPlane vs zeroGradient

Register Blogs Community New Posts Updated Threads Search

Like Tree15Likes
  • 15 Post By duongquaphim

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2005, 11:04
Default What is the difference? If I m
  #1
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
What is the difference? If I model the RT instability in a box, what conditions should be set to left,right,top and bottom boundaries for gamma?

Thanks.
luckyluke is offline   Reply With Quote

Old   May 19, 2005, 11:10
Default Who give me a few words? ^_^
  #2
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
Who give me a few words? ^_^
luckyluke is offline   Reply With Quote

Old   May 19, 2005, 11:14
Default zeroGradient sets the boundary
  #3
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
zeroGradient sets the boundary value to the near-wall cell value whereas a symmetryPlane is a symmetry-plane which is the same thing for scalars but not for vectors or tensors.
henry is offline   Reply With Quote

Old   January 15, 2012, 03:06
Default Desciption / maths of symmetryPlane boundary condition
  #4
New Member
 
Join Date: Mar 2011
Posts: 16
Rep Power: 15
RygeltheXVI is on a distinguished road
Hail,

I'm trying to work out description of what he symmetryPlane boundary condition actually is. I haven't had any luck with either the user nor programmers guide.

This thread gives the most mathematical description that I can find online but is still incomplete:
Quote:
Originally Posted by henry View Post
zeroGradient sets the boundary value to the near-wall cell value whereas a symmetryPlane is a symmetry-plane which is the same thing for scalars but not for vectors or tensors.
What is it for vectors? (If it was just normal component zero, then it would be the same as a slip boundary condition).

I have tried but have no luck interpreting the source code: and even then I don't know which one to look at (I don't know which of /src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry or /src/finiteVolume/fields/fvPatchFields/constraint/symmetry [if either, it could be another one] corresponds to symmertyPlane).

If anyone knows which, or preferably a description of what the symmetryPlane boundary condition does, it would be very much appreciated.

Many Thanks
Rygel
RygeltheXVI is offline   Reply With Quote

Old   April 16, 2012, 14:01
Default
  #5
New Member
 
Brendan
Join Date: Dec 2011
Posts: 7
Rep Power: 15
guitarbren is on a distinguished road
I would also like to know the difference if there is anyone out there with an idea?
Thanks
guitarbren is offline   Reply With Quote

Old   April 23, 2012, 04:18
Default SymmetryPlane facts
  #6
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear Foamers
Is there anyone here help us to have more information about that? I obserevd some differences between the results of the model with and without symmetryPlane?
MOHAMMAD67 is offline   Reply With Quote

Old   December 7, 2012, 23:22
Default
  #7
New Member
 
Ali Q Raeini
Join Date: Feb 2010
Posts: 24
Rep Power: 16
aliqasemi is on a distinguished road
too late but, I had a quick look, apparently the boundary field is assigned in function: Foam::basicSymmetryFvPatchField<Type>::evaluate. It makes use of transform boundary condition, and I didn't decode it thoroughly. However, my speculation is as follows:

For vector fields, the value of the field on the patches with type "symmetryPlane" are calculated by projecting the patchInternalField to the patch. They are calculated as the average of the patchInternalField values and their mirrors in the patch faces.
aliqasemi is offline   Reply With Quote

Old   December 8, 2012, 09:51
Default
  #8
Member
 
Duong A. Hoang
Join Date: Apr 2009
Location: Delft, Netherlands
Posts: 93
Rep Power: 17
duongquaphim is on a distinguished road
Send a message via Yahoo to duongquaphim
Hi,

For zeroGradient, both scalar and vector field are set as the value of the cell near the patch by setting surface normal gradient to 0: grad(f) = (f_P - f_N)/delta = 0 (programmerGuide page 40).

With symmetryPlane, for a scalar, the computation is similar to zeroGradient. For a vector, to make it simple, all components parallel to the patch is mirrored while the normal component is set to zero. Looking at the code of OpenFOAM at src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry, I think they use transformation matrix to compute the new value on the BC. The method can be find in http://en.wikipedia.org/wiki/Householder_transformation

Regards,

Duong
duongquaphim is offline   Reply With Quote

Old   February 11, 2017, 10:12
Default
  #9
New Member
 
samane dortaj
Join Date: Dec 2016
Posts: 6
Rep Power: 10
sam.dj is on a distinguished road
Quote:
Originally Posted by henry View Post
zeroGradient sets the boundary value to the near-wall cell value whereas a symmetryPlane is a symmetry-plane which is the same thing for scalars but not for vectors or tensors.
Hi,
in tutorials,lagrangian,DPMFoam,goldschmidt, this BC is used for p and u, so we can use it for vectors.
sam.dj 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
Question about symmetryPlane lin OpenFOAM Running, Solving & CFD 0 October 9, 2008 03:30
[snappyHexMesh] SnappyhexMesh and Symmetryplane bastil OpenFOAM Meshing & Mesh Conversion 10 October 7, 2008 18:07
Burgerbs equation non constant Boundary Conditions Initial Conditions arkangel OpenFOAM Running, Solving & CFD 1 October 2, 2008 15:48
SymmetryPlane Boundary Condition raytracer OpenFOAM Running, Solving & CFD 0 July 11, 2008 18:04
Integral boundary conditions turbulent intensitylength boundary conditions olesen OpenFOAM Running, Solving & CFD 0 July 27, 2006 08:18


All times are GMT -4. The time now is 02:58.