Coder Social home page Coder Social logo

emadmasroor / simplenavierstokes.jl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 133 KB

Implements the 2D incompressible Navier-Stokes equations in vorticity-streamfunction formulation with a simple user interface

License: MIT License

Julia 100.00%

simplenavierstokes.jl's Introduction

SimpleNavierStokes.jl

Status Coverage
Build Status codecov.io

Hello! Welcome to this simple package. It is currently under active development. If you'd like to see a demonstration of how this code works, head over to my blog post or the associated Nextjournal notebook.

Installation Instructions

This package is not (yet) part of the official Julia package repository, Pkg. To add the package to your Julia environment, you'll need to enter the full package URL like this:

] add https://github.com/emadmasroor/SimpleNavierStokes.jl

in the Julia REPL. Then, type

using SimpleNavierStokes.

That's it!

Running your first simulation

Try the following code to get started:

sol1 = LidDrivenCavity()

This will solve the Navier-Stokes equations on a square 32x32 grid and store the results in a custom type, SimpleNavierStokes.Results. The first time you run this (inside a particular instance of the Julia REPL), it will be rather slow, while the functions compile. The next few times, it should be much faster.

To visualize the results, call the following function directly on sol1:

ShowStreamlines(sol1)

ShowStreamlines() is a custom function, also exported by SimpleNavierStokes (and therefore available for you to use), which operates on objects of type Results. This will visualize the steady-state flow in a square lid-driven cavity.

Lid-driven cavity result

simplenavierstokes.jl's People

Contributors

emadmasroor avatar

Stargazers

Khurram Pervez  avatar

Watchers

 avatar

Forkers

gsagoo

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.