https://github.com/severindenisenko/riemann-problem-solver
https://github.com/severindenisenko/riemann-problem-solver
numerical-methods riemann-solvers termodinamycs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/severindenisenko/riemann-problem-solver
- Owner: SeverinDenisenko
- License: mit
- Created: 2024-10-13T18:02:55.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-04T10:15:44.000Z (6 months ago)
- Last Synced: 2024-12-04T11:24:47.632Z (6 months ago)
- Topics: numerical-methods, riemann-solvers, termodinamycs
- Language: C++
- Homepage:
- Size: 188 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riemann problem solver
## Solver API
You create solver:
```c++
gas_discontinuity discontinuity {
.left = gas_state { .density = 1.0, .velocity = 0.0, .pressure = 3.0 },
.right = gas_state { .density = 1.0, .velocity = 0.0, .pressure = 1.0 },
.gamma = gamma
};solver solver(discontinuity);
```Then you can recive function, representing solution:
```c++
auto solution = solver.solve();gas_state state = solution(t, x);
out << x << " " << state.density << " " << state.velocity << " " << state.pressure << std::endl;
```## This project uses
* C++23
* Meson build system for C++
* Matplotlib for plotting results## Solutions



