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

Wedge boundary condition and the math behind it???????

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes
  • 3 Post By m_ridzon
  • 3 Post By wyldckat
  • 2 Post By m_ridzon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2016, 15:05
Default Wedge boundary condition and the math behind it???????
  #1
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello All,

I am just working on a case where I have to perform simulations in symmetry, axiymmetric and full 3D grids. When I performed the first simulations using wedge boundary condition i.e. axisymmetric and then compared with the symmetry, the results were not the same. I am expecting to get the results with a tiny deviation but am not getting what it supposed to be. I am using the same boundary conditions the grid was the same. Everything was exactly the same except that I am extruding 5 degree in the axismmetric where as 90 degree for the symmetry grid. I don't know what could be the reason of this big deviation. Has anyone experienced such an issue before?

Any suggestion is appreciated.

Best,
tareqkh is offline   Reply With Quote

Old   April 20, 2017, 17:07
Default Wedge boundary condition and the math behind it???????
  #2
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello All,

I have been trying to understand the math and assumptions behind the wedge boundary condition that is implemented in OpenFoam to simulate axisymmetric flow usually expressed in cylindrical coordinates. I understand that they are employed since the NS equations implemented in OpenFoam are in Cartesian coordinates. Is there good documentation why this trick works?

I have verified results obtained using the wedge BC versus a full 3D simulation of an axisymmetric CD nozzle and as hoped, I got pretty decent agreement at a much lower computational cost. Now I am interested in implementing volume forces (for an actuator disk model) but I cannot wrap my head around how I need to implement them to play nicely with the wedge boundary condition and an axisymmetric assumption. I know how to compute the Cartesian components of the forces so am I just going to implement those? I would appreciate any insight anyone may have.

Thanks in advance,

Last edited by tareqkh; April 20, 2017 at 19:38.
tareqkh is offline   Reply With Quote

Old   April 22, 2017, 08:23
Default
  #3
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
I'm probably less experienced than many others here, but I might be able to add some small comment to this statement/question. The 3D Navier-Stokes equations are derived in many college textbooks in Cartesian coordinates. Usually in that same area of the book, they will go further to derive them in cylindrical coordinates. A classic, well known book that I know for sure has them, is Schlichting's "Boundary Layer Theory." I cannot say exactly how OpenFOAM uses them in its source code to complete the computations, since I'm not that well versed on the deeper inner workings of the code. But in terms of understanding the math that defines cylindrical NS equations, check out a fluids book; many have the cylindrical system derived therein.
wyldckat, sonGoku and parthigcar like this.
m_ridzon is offline   Reply With Quote

Old   July 24, 2017, 10:43
Default Wedge boundary condition
  #4
New Member
 
Joanne Campbell
Join Date: Mar 2017
Posts: 4
Rep Power: 9
BoatsNJos is on a distinguished road
Hello!

I am relatively new to OpenFOAM and hoped to find out if anyone knows how the wedge boundary condition works or can point me toward any reading that could help me understand.

I've searched the forums but I haven't yet seen an answer.

I am using OpenFOAM to hopefully simulate axisymmetric electromagnetic cases so understanding what happens at the boundary is very important to me.

Any information anyone could provide would be deeply appreciated.

Joanne
BoatsNJos is offline   Reply With Quote

Old   July 24, 2017, 17:15
Default Hi
  #5
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
I have used wedge BC's in my simulation a lot so setting up a case wouldn't be so hard if that is your question https://cfd.direct/openfoam/user-guide/boundaries/. However, I don't really know how the trick works in terms of math since everything is written in Cartesian coordinates.

Let me know if you need more help,
tareqkh is offline   Reply With Quote

Old   July 25, 2017, 05:45
Default
  #6
New Member
 
Joanne Campbell
Join Date: Mar 2017
Posts: 4
Rep Power: 9
BoatsNJos is on a distinguished road
HiKhamlaj,

Thanks for your speedy reply! Building the geometry is fine, it's how the BC works is the problem I'm having.

I really appreciate you taking the time to help all the same
BoatsNJos is offline   Reply With Quote

Old   July 25, 2017, 11:33
Default
  #7
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
I have asked the same question a long time ago. However, nobody seems to know how it works!
tareqkh is offline   Reply With Quote

Old   January 1, 2018, 18:29
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I merged several threads into this one, since they were all on the same topic.

I don't have any documented reference about how wedges work in OpenFOAM, but as far as I know, the concept is that the wedge boundary is a special type of cyclic boundary condition.
The difference is that:
  • Cyclic boundaries assume that the adjacent cell to the boundary will be part of a domain and not part of the other corresponding cyclic boundary (that's one of the reasons why "empty" exists).
  • Wedges act as a one-to-one cyclic boundary that only has to care about a single cell for each wedge-face-pair.
This also means that a wedge can allow rotational flow around the axis, which would explain why a 90 degree cylinder with symmetry boundaries would not give the same results as with the wedge.


However, there are considerable limitations when using wedges: the cells near the axis can have extremely small volumes (OpenFOAM usually only works in 3D, so cell volumes always count), which can result in considerable numerical problems, given that the data is not handled as a 2D case that only accounts for face area.


Furthermore, there have been a few cases that I've seen that the wedge face pairs are too close to each other, that it's not possible to numerically have a significance difference between the centers of those faces. For example, a worst case scenario would be to have a distance smaller than the diameter of a single molecule of water... which is reaaaally small and something that only specialized CFD solvers can handle.

Best regards,
Bruno
AshwaniAssam, amolrajan and Qian like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 2, 2018, 10:07
Default
  #9
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

I merged several threads into this one, since they were all on the same topic.

I don't have any documented reference about how wedges work in OpenFOAM, but as far as I know, the concept is that the wedge boundary is a special type of cyclic boundary condition.
The difference is that:
  • Cyclic boundaries assume that the adjacent cell to the boundary will be part of a domain and not part of the other corresponding cyclic boundary (that's one of the reasons why "empty" exists).
  • Wedges act as a one-to-one cyclic boundary that only has to care about a single cell for each wedge-face-pair.
This also means that a wedge can allow rotational flow around the axis, which would explain why a 90 degree cylinder with symmetry boundaries would not give the same results as with the wedge.


However, there are considerable limitations when using wedges: the cells near the axis can have extremely small volumes (OpenFOAM usually only works in 3D, so cell volumes always count), which can result in considerable numerical problems, given that the data is not handled as a 2D case that only accounts for face area.


Furthermore, there have been a few cases that I've seen that the wedge face pairs are too close to each other, that it's not possible to numerically have a significance difference between the centers of those faces. For example, a worst case scenario would be to have a distance smaller than the diameter of a single molecule of water... which is reaaaally small and something that only specialized CFD solvers can handle.
Just FYI...An interesting discussion is here (2D Axisymmetric Model in OpenFOAM 4.0). Therein, it's concluded that the OpenFoam solver requires a 5 degree wedge, but the documentation is sketchy in terms of conveying that detail.

M Ridzon
wyldckat and Ramzy1990 like this.
m_ridzon is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 11:15.