Due by 11:00pm on February 23, 2023
For submission instructions, see: http://faculty.washington.edu/rjl/classes/am574w2023/homework5.html
Ideally you will do this homework by modifying this Jupyter notebook $AM574/homeworks/hw5/hw5.ipynb
to fill in the solutions, with plots to accompany your results. If necessary you can scan some handwritten things instead.
All of the problems below concern the same nonlinear hyperbolic system $q_t + f(q)_x=0$ given by the p-system arising from Lagrangian gas dynamics (2.108) in the case of isothermal flow (as in Problem 2.8(b) from hw1):
$$ \begin{split} v_t - u_x &= 0,\\ u_t + (a^2/v)_x &=0. \end{split} $$Write out formulas for general values of $a$ but use $a=2$ for the specific examples.
The figure below shows a set of Hugoniot loci (in red and blue) and integral curves of the eigenvectors (in green and magenta) through the set of points $(v_*,u_*)$ where $u_*=0$ and $v_* = 0.5,~1,~1.5,~\ldots,~10$ (marked with dots in the figure).
Note that these curves agree well near the points $(v_*,u_*)$ but are not identical farther away.
You will be asked to produce a similar figure and this shows what you are aiming for.
from IPython.display import Image
Image('isothermal1.png', width=500)
Question 1.
Work out the flux Jacobian and its eigenvalues and eigenvectors. Show that both characteristic families are genuinely nonlinear.
Question 2.
Following Section 13.8.1, work out the equations for the integral
curves of the eigenvectors through an arbitrary point
$(v_*, u_*)$, e.g. specifying $u(v)$ as $v$ varies (with $u(v_*) = u_*$).
You may find it convenient to use this to define Python functions
uint1(v,vstar,ustar,a)
, uint2(v,vstar,ustar,a)
, so that you can easily plot these as
functions of $v$.
Question 3.
Determine similar equations for the Hugoniot loci through an
arbitrary point $(v_*, u_*)$, e.g. specifying $v(u)$ as $u$ varies
away from $u_*$. You may find it convenient to use this to define Python functions
uhug1(v,vstar,ustar)
, uhug2(v,vstar,ustar)
, so that you can easily plot these as
functions of $v$.
Also give the formula for the shock speed $s(v)$ for any point $(v,u(v))$ along this curve and show that this can be written as
$$ s(v)= \pm \frac{a}{\sqrt{vv_*}}. $$(Note that, as expected, this converges to the corresponding eigenvalue as $v \rightarrow v_*$.)
Question 4.
For the particular case $a=2$, plot these curves to produce a plot similar to that shown above, and indicate which curves correspond to which family and which are Hugoniot loci or integral curves. If you can't produce your own plot, at least figure this out for the plot shown above, as best you can, and specify what each color curve corresponds to.
Question 5.
Given the physical interpretation of this system (and remembering that $q=(v,u)$), we expect that if $q_\ell = (1,-2)$ and $q_r = (1,2)$, then the solution to the Riemann problem with this data should consist of two rarefaction waves. For the case $a=2$, determine the middle state $q_m$ for this solution. You should be able to solve this analytically.
Confirm that this is the physically correct solution by considering how the relevant eigenvalue varies as you move from $q_\ell$ to $q_m$ to $q_r$.
Note: You do not need to find the form of the rarefaction waves $\tilde q(x/t)$ for this homework. But you will for the next homework, so you might want to think about this too.
Question 6.
What is the two-shock Riemann solution for arbitrary $q_\ell$ and $q_r$? You should also be able to solve this analytically.
Hint: solve a quadratic equation for $\sqrt{v_m}$.
As an example, what is the 2-shock solution for the data from the previous part, $a=2, ~q_\ell = (1,-2)$ and $q_r = (1,2)$?
How far is this from the correct middle state from the 2-rarefaction solution?
Question 7.
Produce a phase plane plot that shows $q_\ell,~q_m,~q_r$, and the curves connecting them from the answer to Question 5, and also the Hugoniot loci from Question 6.