Skip to content

A fast Navier Stokes FD solver for a Lid Cavity flow problem written in C# and .NET 8 with WinForms.

License

Notifications You must be signed in to change notification settings

Nikkinoodl/CFD-Demo

Repository files navigation

CFD-Demo

An incompressible Navier-Stokes solver for a Lid Cavity flow problem written in C#/.NET 8 for WinForms. The code uses a finite difference method with the SIMPLE algorithm (velocity prediction and pressure correction after solving the elliptical pressure Poisson equation).

This code is based on the works of Alvarez and Nobe, Owkes, Barba et al. It uses central differencing throughout with Dirichlet boundary conditions for velocity and a mix of Dirichlet and Neumann boundary conditions for pressure.

The application makes it easy to play around with different input variables to see how the solution (and the quality of the solution) changes with Reynolds Number, timesteps, grid quality, etc. Plotting is done with OxyPlot.

Running the application with the default settings unchanged will converge to a solution.

Sample results using the application default settings:

U Velocities in Lid Cavity - Re 100 V Velocities in Lid Cavity - Re 100 Pressure P in Lid Cavity - Re 100 U Velocities at Mid Line - Re 100

About

A fast Navier Stokes FD solver for a Lid Cavity flow problem written in C# and .NET 8 with WinForms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages