StreamFunction-Vorticity based solver for Navier stokes
The vorticity-stream function formulation sometimes will offer more insight on the flow feature than the conventional velocity based formulation.
Herewith, The vorticity-stream function solver Matlab code is attached.
Since the NS is solved in non-dimensional form, Changing 'nu' is enough to change the flow field.
One mandatory criteria
Assuming dx and dy are same =h
Herewith, The vorticity-stream function solver Matlab code is attached.
Since the NS is solved in non-dimensional form, Changing 'nu' is enough to change the flow field.
One mandatory criteria
Assuming dx and dy are same =h
nu*dt/h <=0.25
Change the mesh size, dt and h accordingly
The code is validated for simple channel flow case, but for turbulence study some more work has to be done.
Pictures below
download the code here:
Contact me in case of any questions.. happy to discuss
Cheers
Dhanush
Comments
Post a Comment