Coder Social home page Coder Social logo

nikkinoodl / fvm-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 415 KB

A Navier Stokes cell-centered FVM method - a testbed for experimenting with solutions on irregular and regular meshes in lid cavity environments.

License: GNU General Public License v3.0

C# 49.14% Visual Basic .NET 50.86%
csharp fvm navier-stokes predictor-corrector cfd oxyplot poisson-equation windows-forms tiling conway-tiling

fvm-demo's Introduction

FVM-Demo

This Windows Forms/C#/VB/.NET 7 application uses the cell-centered finite volume method (FVM) to generate fluid flow simulations by solving the incompressible Navier-Stokes equations for a lid-cavity problem.

The application allows grids of different types to be generated (e.g. irregular triangles, equilateral triangles, rectangular) and uses the same grid-agnostic FVM solver for all grid types. A newly added feature allows grids to be transformed via 2D Conway tiling operations: kis, join, kis+join and trunc.

Stable solutions are much easier to find on regular grids (play around with mesh granularity, lid velocity, density and viscosity) than on irregular grids, and also on grids which tend to have consistent cell sizes. In its present state the solution does not account for numerical diffusion perpendicular to face normals, so solutions are difficult to achieve on grids that have cells with non-regular geometries.

The code is well commented, so it can be read easily if you are looking for help with building your own FVM methods. The solution to the pressure equation, in particular, will be useful as it is not often well covered in online materials.

Linear equations are solved step-by-step using the SIMPLE predictor-corrector method and central differencing. No matrix methods are used, but parallelization is used throughout.

The images show sample plots at Reynolds Number 80 on an equilateral triangle grid with kis and join tiling:

Equilateral Kis Join U Equilateral Kis Join 80 Re V Equilateral Kis Join 80 Re P Equilateral Kis Join 80 Re

fvm-demo's People

Contributors

nikkinoodl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.