Git Product home page Git Product logo

fvortex's Introduction

Introduction

This is a Fortran implementation of the vortex method, a numerical technique for simulating fluid flow. The code solves the two-dimensional incompressible Euler and Navier-Stokes equations using a Lagrangian particle-based approach, where the fluid is represented by a collection of discrete vortices.

Dependencies

To run this program, you need a Fortran 77 compiler (tested with GNU Fortran, Intel, PGI, and HPE/Cray) and make.

Build

By default, the program uses GNU Fortran. To build the program, run:

$ (cd lib && make)
$ (cd example/gauss && make)
$ (cd example/omegaI && make)

Edit the conf.mk file to use a different Fortran compiler,

Unit tests

Navigate to the example/unit directory and run the following command (you will need to have gnuplot installed)

$ make
$ ./make_box.gp data/points

This will create a box for paritcles in data/points

Run

To run the program, navigate to one of the example directories and run the main executable. Here are two examples:

Elliptic Lamb–Oseen vortex:

$ cd example/gauss
$ ./main
 initial number of Particles        60025
           Particles :    60025      Time :  0.3405
...	   

Melander, McWilliams, and Zabusky vortex:

$ cd example/omegaI
$ ./main
 initial number of Particles       672400
           Particles :   672400      Time : 12.1381
...

Postprocessing

You can use the tool/heat.awk script to generate a heatmap from the simulation data. Here's an example:

$ awk -f tool/heat.awk example/gauss/w.00000001.dat > heat.ppm
$ convert heat.ppm heat.png


Results


References

Cottet, G. H., & Koumoutsakos, P. D. (2000). Vortex methods: theory and practice (Vol. 8). Cambridge: Cambridge university press.

fvortex's People

Contributors

slitvinov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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