CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Versteeg Example Question (https://www.cfd-online.com/Forums/main/197876-versteeg-example-question.html)

MsKK January 19, 2018 11:29

Versteeg Example Question
 
Dear all,

I am working on the example 5.1 of the Versteeg book (page 137-138). I am specifically looking at the central difference scheme. My question is: why are the boundary conditions for D_A and D_B = 2*\Gamma/delta x= 2*D?

Why the "2" and not just D_A=D_B=\Gamma/\delta x=D? I don't understand where the 2 comes from. Thanks.

FMDenaro January 19, 2018 12:16

Sorry but in my version of the texbook the example 5.1 is at page 106 and solves the 1D linear advection-diffusion differential equation, is that the problem you are solving?

AliE January 19, 2018 12:55

Hello,
If you are dealing with the diffusion, then the 2 comes from the fact that the cv center of the boundary cell is at distance dx/2 from the center of the boundary face (for a cartesian grid). Thus diffusive flux read Area*(phi_b-phi_C)/(dx/2). After simple algebra, you get what you are looking for.

MsKK January 19, 2018 13:44

Quote:

Originally Posted by AliE (Post 678735)
Hello,
If you are dealing with the diffusion, then the 2 comes from the fact that the cv center of the boundary cell is at distance dx/2 from the center of the boundary face (for a cartesian grid). Thus diffusive flux read Area*(phi_b-phi_C)/(dx/2). After simple algebra, you get what you are looking for.

Thanks! I see it now.


All times are GMT -4. The time now is 22:24.