An open API service indexing awesome lists of open source software.

https://github.com/hpcguy/zigshock

1D and 3D Zig shock physics examples
https://github.com/hpcguy/zigshock

application benchmark example physics physics-simulation sample science zig ziglang

Last synced: 6 months ago
JSON representation

1D and 3D Zig shock physics examples

Awesome Lists containing this project

README

          

# ZigShock
1D and 3D Zig shock physics examples

To try the 1D:
```
% zig build-exe -OReleaseFast 1D/shock.zig
% ./shock > ultra
% gnuplot
gnuplot> plot "ultra"
gnuplot> exit
%
```

These are perfect test cases to resolve the following Zig issue, since all numerics are centralized to a few lines.

https://github.com/ziglang/zig/issues/23173

==============================================

I will accept pull requests that:

(1) Make better use of Zig language features while keeping the source code approximately the same size or smaller.

** AND **

(2) Have performance that is exactly as fast or faster than the version being replaced, definitely for the ReleaseFast build of the code, and maybe also for the Debug build.