Skip to content

Commit

Permalink
Added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cbcoutinho committed Nov 10, 2016
1 parent 79d0164 commit 541238c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
.ipynb_checkpoints
data.out
raw.out
plot.png

main

*.o
*.mod
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
The generic_rk module is an attempt to modularize solvers for ordinary differential equations (ODEs).

Below is the result of an example problem known as the Brusselator using an adaptive timestep control. The first subplot shows the raw results of $y_1$ and $y_2$ within the range $t \in [0, 20]$. The second subplot shows the acceptable $dt$ used throughout the simulation.

$$
\begin{array}{r l}
y_1' &=& 1 + y_1^2 y_2 -4y_1 \\
y_2' &=& 3y_1 - y_1^2 y_2 \\
\end{array}
$$

$$ y_1(0) = 1.5, ~~~ y_2(0) = 3, ~~~ t \in [0, 20]$$

![alt text] [sample plot]


[sample plot]: ./plot.png
2 changes: 2 additions & 0 deletions obj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.o
*.mod
Binary file added plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plot.png
data.out
raw.out
2 changes: 2 additions & 0 deletions src/test/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
main
main.exe
2 changes: 2 additions & 0 deletions src/test/obj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.o
*.mod

0 comments on commit 541238c

Please sign in to comment.