Skip to content

Navier-Stokes fluid simulation in various languages (C, Fortran, and Haskell using Repa)

License

Notifications You must be signed in to change notification settings

dorchard/navier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This project provides a sample program, that provides a significant numerical computation, written using a number of languages and approaches for the sake of comparison. The sample program is a slightly modified version of a Navier-Stokes fluid dynamics code by Griebel et al. [1].

Current implementations include C, Fortran, and Haskell (repa).

History

2012/13 - Accelerate (Haskell) and Ypnos (Haskell) implementations in progress.

Building and Running

C

cd c/nast2d-dom/
make
./navier
^C

^C when you're done running.

FORTRAN

cd fortran
make
./navier
^C

^C when you're done running. Then make the video by:

./build-vid output

References

[1]: Michael Griebel, Thomas Dornseifer, Tilman Neunhoeffer, Numerical Simulation in Fluid Dynamics, SIAM, 1998. https://people.math.sc.edu/Burkardt/cpp_src/nast2d/nast2d.html

About

Navier-Stokes fluid simulation in various languages (C, Fortran, and Haskell using Repa)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •