Merge branch 'test-overtopping' into swash

This commit is contained in:
Edgar P. Burkhart 2022-03-30 11:08:38 +02:00
commit 0ab50eeca8
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
5 changed files with 22 additions and 21 deletions

View file

@ -88,14 +88,14 @@ if config.has_option("post", "compare"):
G_ = H_ / U_
th_eta_u_ = np.angle(phi_eta_u_[1])
#R_ = np.sqrt(
# (np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) - 2 * np.abs(phi_eta_u_[1]))
# / (np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) + 2 * np.abs(phi_eta_u_[1]))
#)
R_ = np.sqrt(
(np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) - 2 * np.abs(phi_eta_u_[1]))
/ (np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) + 2 * np.abs(phi_eta_u_[1]))
(1 + G_**2 - 2 * G_ * np.cos(th_eta_u_))
/ (1 + G_**2 + 2 * G_ * np.cos(th_eta_u_))
)
# R_ = np.sqrt(
# (1 + G_**2 - 2 * G_ * np.cos(th_eta_u_))
# / (1 + G_**2 + 2 * G_ * np.cos(th_eta_u_))
# )
# Plotting