Skip to content

Commit df4af86

Browse files
author
Daniel Ruprecht
committed
stiff limit plot script now indicates number of nodes M where spectral radius becomes larger than one
Conflicts: examples/fwsw/plot_stifflimit_specrad.py
1 parent c530b9a commit df4af86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/fwsw/plot_stifflimit_specrad.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
specrad[0,i] = np.linalg.norm( evals, np.inf )
7373

7474

75+
print ("Spectral radius of infinitely fast wave case > 1.0 for M=%2i" % nodes_v[np.argmax(specrad[0,:]>1.0)])
76+
print ("Spectral radius of > 1.0 for M=%2i" % nodes_v[np.argmax(specrad[1,:]>1.0)])
77+
7578
### Plot result
7679
rcParams['figure.figsize'] = 2.5, 2.5
7780
fig = plt.figure()
@@ -83,7 +86,7 @@
8386
#plt.title(r'$\Delta t \left| \lambda_{\rm slow} \right|$ = %2.1f' % step.status.dt*abs(problem.lambda_s[0]), fontsize=fs)
8487
plt.legend(loc='lower right', fontsize=fs, prop={'size':fs})
8588
plt.xlim([np.min(nodes_v), np.max(nodes_v)])
86-
plt.ylim([0, 1.0])
89+
plt.ylim([0, 1.2])
8790
plt.yticks(fontsize=fs)
8891
plt.xticks(fontsize=fs)
8992
#plt.show()

0 commit comments

Comments
 (0)