Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aadi-bh authored Nov 29, 2023
1 parent 2d1757e commit ac4153c
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# Spectral Methods for Hyperbolic Problems

This is an end-semester project to implement parts of the paper "Spectral Methods for Hyperbolic Problems" by Gottlieb and Hesthaven.
This code implements spectral filtering and Gibbs complimentary basis re-expansion, as outlined in the paper [_Spectral Methods for Hyperbolic Problems_](https://doi.org/10.1016/S0377-0427(00)00510-0) by Gottlieb and Hesthaven.

It is part of an end-semester project, which you can read more about [here](https://aadi.ink/spectral4hyp).

## Install
Download or clone this repository and then activate your environment
before running
```bash
pip install -r requirements.txt
```
to install the required packages, in case they are not already present.

## Run
```bash
python main.py -h
```
will show the list of options.


| Flag | Explanation |
| --- | --- |
| `-N` | Number of grid points and Fourier modes (can be used multiple times) |
| `--pde` | Whether to solve the linear advection or Burgers' equation |
| `--ggb` | Plot the re-expansion of Fourier coefficients in the basis of Gegenbauer polynomials |
| '--Lambda' | The value of Lambda (sometimes referred to with alpha) for the Gegenbauer polynomials |
| '--exact' | Path to the file containing the exact solution for the specified combination of PDE, initial condition, and final time. |

## Known issues
The Burgers' equation computes the right solution, but at a wrong speed.

0 comments on commit ac4153c

Please sign in to comment.