CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Implementation of Neumann B.C on an oblique wall in FVM Code

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

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2020, 11:56
Default Implementation of Neumann B.C on an oblique wall in FVM Code
  #1
New Member
 
Join Date: Jan 2020
Posts: 11
Rep Power: 6
DAVIDRASC is on a distinguished road
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
DAVIDRASC is offline   Reply With Quote

Old   January 19, 2020, 14:46
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
n.Grad phi = known = nx *d phi/dx +ny*d phy/dy



you have a relation involving both derivatives at the boundary
DAVIDRASC likes this.
FMDenaro is offline   Reply With Quote

Old   January 19, 2020, 15:43
Default
  #3
New Member
 
Join Date: Jan 2020
Posts: 11
Rep Power: 6
DAVIDRASC is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
n.Grad phi = known = nx *d phi/dx +ny*d phy/dy



you have a relation involving both derivatives at the boundary



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?
DAVIDRASC is offline   Reply With Quote

Old   January 19, 2020, 15:49
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by DAVIDRASC View Post
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?



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
FMDenaro is offline   Reply With Quote

Old   January 19, 2020, 16:06
Default
  #5
New Member
 
Join Date: Jan 2020
Posts: 11
Rep Power: 6
DAVIDRASC is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
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

It means that should I use chain derivative rules to get a relation that fits to my Geometrical coordinates?
DAVIDRASC is offline   Reply With Quote

Old   January 19, 2020, 16:21
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,666
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by DAVIDRASC View Post
It means that should I use chain derivative rules to get a relation that fits to my Geometrical coordinates?

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.
LuckyTran is online now   Reply With Quote

Old   January 20, 2020, 14:12
Default
  #7
New Member
 
Join Date: Jan 2020
Posts: 11
Rep Power: 6
DAVIDRASC is on a distinguished road
so thanks. I did it!
https://www.cfd-online.com/Forums/at...1&d=1579547532

Thanks for your guidance.
Attached Images
File Type: jpeg 2.jpeg (42.7 KB, 11 views)
DAVIDRASC 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
Radiation interface hinca CFX 15 January 26, 2014 17:11
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


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