CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Boundary condition, incompressible colocated code (http://www.cfd-online.com/Forums/main/102720-boundary-condition-incompressible-colocated-code.html)

Simbelmynė June 1, 2012 03:10

Boundary condition, incompressible colocated code
 
1 Attachment(s)
Hello,

I have written a simple FDM 1d colocated code with the nodes coinciding with boundaries. I have attached the code (it is C/C++).

My question is about the velocity derivatives that I need from outside the inlet boundary. I try to derive an expression based on the (normal) momentum equation but this does not work. If I just extrapolate the derivatives from the first interior node to the boundary node then everything works perfect. However, I do not understand why this is the case. Perhaps someone can point out what I am doing (or thinking) wrong?

Thank you.


All times are GMT -4. The time now is 03:36.