Skip to content

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

License

Notifications You must be signed in to change notification settings

Nikkinoodl/CFD-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFD-Demo

An incompressible Navier-Stokes solver for a Lid Cavity flow problem written in C# and .NET 7 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 work of Owkes, Barba, Alvarez and Nobe. 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.

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 7 with WinForms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages