SkillAgentSearch skills...

Navier

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

Install / Use

/learn @dorchard/Navier
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars54
CategoryDevelopment
Updated4mo ago
Forks15

Languages

Haskell

Security Score

92/100

Audited on Nov 9, 2025

No findings