CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   discretization in finite difference method (https://www.cfd-online.com/Forums/main/15299-discretization-finite-difference-method.html)

student June 13, 2008 13:00

discretization in finite difference method
 
Dear Sir,

I am solving 2d fluid flow problem using staggered grid (uniform grid with finite difference method), where pressure lies at the grid node and velocities lie at the flux node. We can discretize for the inner node d2p/dx2= (p[i+1]-2p[i]+p[i-1])/delx^2 but Near the boundary we have half control volume. I dont know how to discretize d2p/dx2 using finite difference method. please give some suggestions. thanking you.

mettler June 13, 2008 14:03

Re: discretization in finite difference method
 
If I understand your question, your boundary conditions should take care of the boundary, which will be your (i-1) cell, or your (i+1) cell at the end. You should know values for those.

jinwon park June 14, 2008 17:43

Re: discretization in finite difference method
 
Use ghost cells which have values copied from the inner region. Refer to general CFD texts with the keyword "ghost cell" or "dummy cell"


All times are GMT -4. The time now is 12:40.