https://github.com/jzrake/hydro-rs
How to write a hydro code, in Rust!
https://github.com/jzrake/hydro-rs
hydro rust
Last synced: 5 months ago
JSON representation
How to write a hydro code, in Rust!
- Host: GitHub
- URL: https://github.com/jzrake/hydro-rs
- Owner: jzrake
- Created: 2020-08-20T21:42:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T18:46:07.000Z (almost 6 years ago)
- Last Synced: 2024-01-29T20:58:55.211Z (over 2 years ago)
- Topics: hydro, rust
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hydro-rs
How to write a hydro code, in Rust!
## Intro
This project is intended to help students learn how to write fast, pedagogical hydrodynamics codes for use in astrophysics modeling. I have decided to write these tutorials in Rust for a number of reasons:
1. For my own enjoyment, I wanted to learn Rust!
2. Rust is easier to learn than C++ and it yields safer code; no more seg-faults for new programmers!
3. Because of Cargo and the Rust ecosystem: just write your physics solver in Rust and harvest the rest of your app from the hive
## Download, build, and run, and plot
```
$> git clone https://github.com/jzrake/hydro-rs
$> cd hydro-rs
$> cargo run --bin euler1d-nodeps --release
$> ./plot.py output.dat
```