Plot input wave
This commit is contained in:
parent
5d9a2f2fbd
commit
e49eda3d04
1 changed files with 9 additions and 0 deletions
|
@ -56,3 +56,12 @@ org = org.replace("{t}", "\n".join(t.astype(np.str_)))
|
|||
org = org.replace("{v}", "\n".join(v.astype(np.str_)))
|
||||
org = org.replace("{eta}", "\n".join(wl.astype(np.str_)))
|
||||
olaflow_root.joinpath("constant", "waveDict").write_text(org)
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
ax.plot(t, wl)
|
||||
ax.autoscale(True, "x", tight=True)
|
||||
ax.set(xlabel="t (s)", ylabel="z (m)")
|
||||
ax2 = ax.twinx()
|
||||
ax2.plot(t, v)
|
||||
ax2.set(ylabel="U (m/s)")
|
||||
fig.savefig(olaflow_root.joinpath("constant", "wave.pdf"))
|
||||
|
|
Loading…
Reference in a new issue