Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ASEM000 committed Oct 1, 2023
1 parent 2ce6029 commit ba01890
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ print(get_3x3_patches(mat)[0,0])
<details>
<summary>4️⃣ Linear convection </summary>

$\Large {\partial u \over \partial t} + c {\partial u \over \partial x} = 0$ <br> <br>
$\Large u_i^{n} = u_i^{n-1} - c \frac{\Delta t}{\Delta x}(u_i^{n-1}-u_{i-1}^{n-1})$

<div align ="center">
<table>
Expand All @@ -214,6 +212,7 @@ $\Large u_i^{n} = u_i^{n-1} - c \frac{\Delta t}{\Delta x}(u_i^{n-1}-u_{i-1}^{n-1
</div>

```python

import jax
import jax.numpy as jnp
import kernex as kex
Expand Down Expand Up @@ -269,9 +268,10 @@ kx_solution = F(jnp.array(u))
plt.figure(figsize=(20,7))
for line in kx_solution[::20]:
plt.plot(jnp.linspace(0,xmax,nx),line)

```

![image](assets/linear_convection.svg)
<img src="assets/linear_convection.svg">

</details>

Expand Down

0 comments on commit ba01890

Please sign in to comment.