06 December 2021 6 3K Report

I am doing a Matlab code to solve the lid driven cavity analytical solution. I have Dirichlet boundary conditions.

The momentum equation is already well implemented since it has a 2nd order convergence using analytical pressure and face velocities. Yet I am unable to converge the rest of the algorithm. Algorithm is indexed similar to the Matlab code (the general concept)

I find weird some parts:

- with analytical face velocities the mass inbalance is (1E-05 average), which it seems a lot to consider converged

- after correction of face velocities I do not have mass inbalance = numerical solver approximation (1E-10), instead it has a similar value

- p_deviation has an high value which makes the solution to explode very quickly (p' is almost constant which makes p_deviation nx*ny times higher than p' values - for initial analytical pressure and velocity values)

Is any error easily to find out just with this algorithm txt?

Thank you,

Best regards

Similar questions and discussions