Giter VIP home page Giter VIP logo

vortex_simulations's Introduction

Vortex Simulations

This work was part of my Ph.D. thesis work in Indian Statistical Institute, Calcutta (Kolkatta). At that time it ran on VAX systems with 512MB RAM! Dr.U.N.Sinha, developed his FloSolver in 1986, a powerful super computer for such flow simulations. Now I am able to run this on my laptop with 12th generation Intel 5 and 12 CPU cores using OpenMP support!

We use FORTRAN for generating flow data and Lua-Love2D for displaying results as a graphical simulation. Rewriting the FORTRAN code in Mojo to see how fast it runs on my laptop. Also hoping to do some Deep Learning simulations of vorticity flows with some application to ocean and atmospheric flows.

Running FORTRAN code (Linux UBUNTU users):

For boundaryless free flow:

cd free2d/
./free_vortices2d.sh
0

Please supply '0' as input as it waits to receive it. If you have alreday run till 25 iterations then you can restart from 25. The output is written to free2d/out/ folder.

For 2D channel flow:

cd channel2d/
./channel_vortices2d.sh
0

Please supply '0' as input as it waits to receive it. If you have alreday run till 25 iterations then you can restart from 25. The output is written to channel2d/outc/ folder.

Display simulation using Lua code

Install Lua and Love2d

For boundaryless free flow:

love free2d/ free2d/out/

Sample 1: free vortices video

For 2D channel flow:

love channel2d/ channel2d/out/

You should here sound of water flowing!

Sample 2D channel flow video:

Sample 2: 2D channel flow video

If you are Windows user you should be able to modify the shell script to a batch script and run it on Windows. Lua-Love2d also should run fine on Windows! Please do tell me if you have difficulties running on Windows!

vortex_simulations's People

Contributors

sukii 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.