Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in Burgers, the import statements appeared twice #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 11 additions & 42 deletions Burgers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,6 @@
"# Burgers' equation"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_format = 'svg'\n",
"from ipywidgets import interact\n",
"from ipywidgets import widgets\n",
"from ipywidgets import FloatSlider, fixed\n",
"from exact_solvers import burgers\n",
"from exact_solvers import burgers_demos\n",
"from IPython.display import HTML"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -81,15 +49,6 @@
"However, since the charactistic speed depends on the solution, these lines are not parallel and characterstics may converge or spread out."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Shock formation\n",
"\n",
"In the figure below we consider Burgers' equation with a Gaussian hump as the initial data. Since the characteristic speed in Burgers' equation is given by $q$ itself, the peak of the hump travels faster than the rest, and characteristics are converging at the front of the traveling wave (where $f'(q)$ decreases with $x$) while they are spreading out behind the peak (where $f'(q)$ increases with $x$). The dashed line shows the initial condition while the solid lines show the solution at later times."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -118,7 +77,17 @@
"from ipywidgets import widgets\n",
"from ipywidgets import FloatSlider, fixed\n",
"from exact_solvers import burgers\n",
"from exact_solvers import burgers_demos"
"from exact_solvers import burgers_demos\n",
"from IPython.display import HTML"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Shock formation\n",
"\n",
"In the figure below we consider Burgers' equation with a Gaussian hump as the initial data. Since the characteristic speed in Burgers' equation is given by $q$ itself, the peak of the hump travels faster than the rest, and characteristics are converging at the front of the traveling wave (where $f'(q)$ decreases with $x$) while they are spreading out behind the peak (where $f'(q)$ increases with $x$). The dashed line shows the initial condition while the solid lines show the solution at later times."
]
},
{
Expand Down