Skip to content

Commit

Permalink
Fix interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrete committed Sep 9, 2024
1 parent 5319ff3 commit 45165ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ def Analyse(self, parameters):
"[Decaying 3D Linear Wave]: "
"Mesh size {} x {} x {}".format(2 * nx, nx, nx)
)
filename = os.path.join(parameters.output_path, f"{nx}.hst")
filename = os.path.join(parameters.output_path, f"{nx}.out2.hst")
hst_data = np.genfromtxt(filename, names=True, skip_header=1)

tt = hst_data["1time"]
max_vy = hst_data["11MaxAbsV2"]
max_vy = hst_data["13MaxAbsV2"]
# estimate the decay rate from simulation, using weighted least-squares (WLS)
yy = np.log(np.abs(max_vy))
plt.plot(tt, yy)
Expand Down

0 comments on commit 45165ff

Please sign in to comment.