Sedov blast solution#

This example shows how to plot the analytical solution to the sedov blast

 9 import matplotlib.pyplot as plt
10 import numpy as np
11
12 import shamrock
18 x = np.linspace(0, 1, 300)
19 p = []
20 vr = []
21 rho = []
22 for i in range(len(x)):
23     _rho, _vr, _p = sedov_sol.get_value(x[i])
24     p.append(_p)
25     vr.append(_vr)
26     rho.append(_rho)
29 plt.plot(x, rho, label="rho")
30 plt.plot(x, vr, label="vr")
31 plt.plot(x, p, label="p")
32 plt.xlabel("r")
33 plt.legend()
34 plt.tight_layout()
35 plt.show()
run sedov soluce

Total running time of the script: (0 minutes 0.333 seconds)

Estimated memory usage: 80 MB

Gallery generated by Sphinx-Gallery