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
- Host: GitHub
- URL: https://github.com/hpcguy/zigshock
- Owner: HPCguy
- Created: 2025-07-04T04:39:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-07-18T22:25:16.000Z (6 months ago)
- Last Synced: 2025-07-19T03:05:26.640Z (6 months ago)
- Topics: application, benchmark, example, physics, physics-simulation, sample, science, zig, ziglang
- Language: Zig
- Homepage:
- Size: 119 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.