https://github.com/saecki/flowvis
https://github.com/saecki/flowvis
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/saecki/flowvis
- Owner: saecki
- Created: 2024-02-01T02:23:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T15:51:01.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T15:15:38.375Z (over 1 year ago)
- Language: Rust
- Size: 272 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flowvis
Visualize a 2D vector field from the `flow.raw` file, which needs to be placed in this directory.

## Build and run
- Install rust (using [rustup](https://rustup.rs/))
- Run `cargo run --release`
## Keymappings
| Key | Action |
|---------------------------|--------------------------------------------------------------------------|
| ctrl + | Zoom in |
| ctrl - | Zoom out |
| ctrl backspace | Reset pan and zoom |
| | |
| space | Play/pause video playback |
| . | Step to next frame |
| , | Step to previous frame |
| [ | Slow down playback |
| ] | Speed up playback |
| | |
| 1 | Show/hide the background velocity texture |
| ctrl 1 | Cycle through the color map for the background texture |
| F | Enable/disable linear filtering of the background texture |
| | |
| 2 | Show/hide stream lines |
| ctrl 2 | Cycle through the color map for stream lines |
| I | Enable/disable interactive an stream line at the cursor position |
| M | Cycle the stream line method between `Euler`, `RK2` and `RK4` |
| shift M | Cycle the stream line method between `Euler`, `RK2` and `RK4` in reverse |
| L | Spawn stream lines equally distributed on the left |
| shift L | Spawn stream lines more concentrated towards the center left |
| delete | Remove all stream lines |
| | |
| 3 | Show/hide the arrow plot |
| ctrl 3 | Cycle through the color map for the arrow plot |
| A | Increase arrow density |
| shift A | Decrease arrow density |
## Mouse/touchpad control
| Key | Action |
|----------------------------------|--------------------------|
| left-click | Add a stream line origin |
| right-click | Remove a stream line |
| ctrl scroll | Zoom |
| scroll | Pan |
| shift scroll | Pan in x-direction |
| middle-click and drag | Pan |