CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   wall b.c. in presence of gravity (https://www.cfd-online.com/Forums/main/10518-wall-b-c-presence-gravity.html)

doug December 22, 2005 11:22

wall b.c. in presence of gravity
 
in my cell-centered fvm code, the pressure in the ghost cell is set to the pressure in the boundary cell - however, if gravitational force is taken into account then:

p_ghost = p_bndry + r_bndry*grav*dy

dy = y_bndry - y_ghost

but now p_r (i.e., p_ghost) is not equal to p_l (i.e., p_bndry) in the riemann problem. the solution looks fine but mass and energy are not conserved. and setting p_ghost = p_bndry does not work either.

has anyone encountered such a problem - any help in setting wall boundary conditions in the presence of gravity will be greatly appreciated. thank you.


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