CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   System Analysis (http://www.cfd-online.com/Forums/system-analysis/)
-   -   1D second order upwind (http://www.cfd-online.com/Forums/system-analysis/128054-1d-second-order-upwind.html)

tgts January 1, 2014 13:59

1D second order upwind
 
1 Attachment(s)
Hi all,
I am working on modeling hydrodynamic flow using a 2nd order upwind scheme (2nd order Runge-Kutta for the temporal discretization). The code mainly involves solving the Saint-Venantís equation (SWE) for a one-dimensional flow with a given boundary condition. Here I have attached the code. While running the model it has a problem both in stability and accuracy. But, according to the classical boundary condition that I used, it has to converge to a uniform 1m flow depth throughout the profile.

Could anyone help me please?
Regards,


All times are GMT -4. The time now is 15:18.