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

Boundary Conditions for Cell-Centered FVM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2019, 04:18
Default Boundary Conditions for Cell-Centered FVM
  #1
Member
 
Join Date: May 2016
Posts: 38
Rep Power: 9
GregCFD is on a distinguished road
Hi Everybody,

I've done some searching through academic papers, the general internet and here and I can't find a clear answer to how to implement boundary conditions in a cell-centered (non-staggered) finite volume code. In particular I'm trying to adapt Chorin's artificial compressiblity method to a simple FV method using forwards Euler and central differences. The issue is that to remain stable I need a ridiculously tiny time-step, and I figure it might be because I haven't implemented the BC's correctly.

The question is then:
In FVM can I implement the wall boundary conditions directly without the use of ghost cells. Consider the northern wall of a system:

_N_

.C

Then for a generic internal cell we can write the U,V momentum as
U = -0.25*dx*(U(i,j) + U(i,nN))*(V(i,j) + V(i,nN)) + v*dx*(U(i,nN) - U(i,j))/dy
V = -0.25*dx*(V(i,j) + V(i,nN))*(V(i,j) + V(i,nN)) - dx*0.5*(P(i,j) + P(i,nN)) + v*(V(i,nN) - V(i,j))/dy;
and the continuity equation as:
C: (V(i,j) + V(i,nN))*dx*0.5;

As we need the flux at the cell interface can be directly implement it using the known values at the boundary?
U = -dx*UN*VN + v*dx*(UN - U(i,j))/(dy/2);
V = -dx*VN*VN - dx*P(i,j) + v*(VN - V(i,j))/(dy/2);
C = VN*dx;

Where I've assumed that dP/dN = 0 at the boundary.
GregCFD is offline   Reply With Quote

Old   February 19, 2019, 04:21
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Your problem is not caused by the BCs but by the FTCS method your are using. There is a strong numerical stability issue in this method, you can get a stable solution only if the cell Reynolds number is equal to 1. But the accuracy is very low.


Have a look at this discussion https://www.researchgate.net/post/Is...fF2-yQfeirSdg4
GregCFD likes this.
FMDenaro is offline   Reply With Quote

Old   February 19, 2019, 04:28
Default
  #3
Member
 
Join Date: May 2016
Posts: 38
Rep Power: 9
GregCFD is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Your problem is not caused by the BCs but by the FTCS method your are using. There is a strong numerical stability issue in this method, you can get a stable solution only if the cell Reynolds number is equal to 1. But the accuracy is very low.


Have a look at this discussion https://www.researchgate.net/post/Is...fF2-yQfeirSdg4
Thanks for that, I was worried it would be Re (or CFL-like) condition but I was hoping it would be the BC's.

Is the BC implementation actually correct though?, I've seen quite a few posts where people are using the ghost-cell method where as applying the velocities as a Dirichlet method seems so much easier. As well as some disagreement about how the pressure B.C. is implemented, it might be missing a velocity gradient term?
GregCFD is offline   Reply With Quote

Old   February 19, 2019, 04:47
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by GregCFD View Post
Thanks for that, I was worried it would be Re (or CFL-like) condition but I was hoping it would be the BC's.

Is the BC implementation actually correct though?, I've seen quite a few posts where people are using the ghost-cell method where as applying the velocities as a Dirichlet method seems so much easier. As well as some disagreement about how the pressure B.C. is implemented, it might be missing a velocity gradient term?



The Chorin projection method is tricky on a non-staggered grid. Depending on the pressure discretization you can get either an exact projection that has troubles in the spurious solutions or an approximate projection that does not satisfy exactly the divergence-free constraint. That is not only depending on the BCs but also on the stencil of the pressure equation
FMDenaro 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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


All times are GMT -4. The time now is 08:53.