|
[Sponsors] |
Implementation of Neumann B.C on an oblique wall in FVM Code |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2020, 12:56 |
Implementation of Neumann B.C on an oblique wall in FVM Code
|
#1 |
New Member
Join Date: Jan 2020
Posts: 11
Rep Power: 6 |
Hi guys!
does anyone know how to apply normal boundary condition to an oblique wall in Finite Volume code? when alpha is zero and beta is 90 we can write PHI(NI,J)=PHI(NI-1,J) within a loop but what should we do about problems with oblique wall? [Picture is uploaded in this address:] https://www.cfd-online.com/Forums/attachment.php?attachmentid=74306&stc=1&d=15794540 05 |
|
January 19, 2020, 15:46 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
n.Grad phi = known = nx *d phi/dx +ny*d phy/dy
you have a relation involving both derivatives at the boundary |
|
January 19, 2020, 16:43 |
|
#3 | |
New Member
Join Date: Jan 2020
Posts: 11
Rep Power: 6 |
Quote:
So thanks Filippo but i think by this relation we would have derivatives in x and y direction that cause some problems when implementation in code. Because the cells and i , j indexes are created in ksi and eta coordinate. Isnt that so? |
||
January 19, 2020, 16:49 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
I just wrote the normal derivative in cartesian components as example, you can express the relation n.Grad phi = g as better it fits your coordinates. The key is that you have a combination of the derivatives bu means of the components of the unit normal vector to the boundary |
||
January 19, 2020, 17:06 |
|
#5 | |
New Member
Join Date: Jan 2020
Posts: 11
Rep Power: 6 |
Quote:
It means that should I use chain derivative rules to get a relation that fits to my Geometrical coordinates? |
||
January 19, 2020, 17:21 |
|
#6 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Quote:
You only need to chain rule when you are switching from your coordinate to another coordinate system. If you're already in ksi and eta then the same formula holds. You're taking the product of the normal vector and the gradient (n.grad()), no matter the expression in any coordinate system. |
||
January 20, 2020, 15:12 |
|
#7 |
New Member
Join Date: Jan 2020
Posts: 11
Rep Power: 6 |
so thanks. I did it!
https://www.cfd-online.com/Forums/at...1&d=1579547532 Thanks for your guidance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |