Boundary Conditions for FORTRAN Lid Driven Cavity Error
1 Attachment(s)
I am studying Numerical Methods for incompressible flows. part of the tasks is to model the lid driven cavity problem in 2D using the SIMPLE method.
I have been provided with Fortran code that is working solved, however is for a channel flow problem. I was informed that by modifying the boundary conditions I can convert it from channel flow to cavity flow. (by manipulating which walls as velocity etc etc). I have created a SIMPLE Solver for the the Lid Driven Cavity Problem in MATLAB. It is known working and Validated against the Ghia et al.(1982) However when I modify the fortran code to what I believe to be the correct boundary conditions my results.dat file contains NaN for all values of U and V for all X and Y locations. I have attached a .zip file with the original Fortran Code, my attempted Lid Driven Cavity Conversion and parameter file. for U Momentum function Code:
! set boundary conditions for coefficients in the equations Code:
! south and the output of my code is either incorrect values or NaN with different attempts of the boundary conditions Apologies for this being long, I wanted to be as thorough as possible as I cannot understand what is incorrect. (it is known that the Fortran solver is validated as accurate, and my MATLAB solver) however these results do not matchup after my boundary edits. Thanks in advance |
All times are GMT -4. The time now is 18:47. |