1
Fork 0

Black reformat on processing

This commit is contained in:
Edgar P. Burkhart 2022-04-07 11:51:03 +02:00
parent eff2b09c8f
commit 358b57f23d
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
7 changed files with 62 additions and 41 deletions

View File

@ -70,7 +70,9 @@ def PUV_dam(u, p, h, fs, zmesP, zmesU):
ccs.append(cs)
cccp.append(ccp)
# calcul des amplitudes des ondes incidentes a partir de uhoriz et p
aincident13.append(0.5 * np.sqrt(
aincident13.append(
0.5
* np.sqrt(
a1 * a1 / (cc * cc)
+ a3
* a3
@ -79,9 +81,18 @@ def PUV_dam(u, p, h, fs, zmesP, zmesU):
* xf[ii]
* xf[ii]
/ (omega[ii] * omega[ii] * ccp * ccp)
+ 2 * a1 * a3 * g * k_xb[ii] * np.cos(phi3 - phi1) / (cc * ccp * omega[ii])
))
areflechi13.append(0.5 * np.sqrt(
+ 2
* a1
* a3
* g
* k_xb[ii]
* np.cos(phi3 - phi1)
/ (cc * ccp * omega[ii])
)
)
areflechi13.append(
0.5
* np.sqrt(
a1 * a1 / (cc * cc)
+ a3
* a3
@ -90,8 +101,15 @@ def PUV_dam(u, p, h, fs, zmesP, zmesU):
* k_xb[ii]
* k_xb[ii]
/ (omega[ii] * omega[ii] * ccp * ccp)
- 2 * a1 * a3 * g * xf[ii] * np.cos(phi3 - phi1) / (cc * ccp * omega[ii])
))
- 2
* a1
* a3
* g
* xf[ii]
* np.cos(phi3 - phi1)
/ (cc * ccp * omega[ii])
)
)
cv = g * xf[ii] / (omega[ii] * ccp)
cp = 1 / cc
aprog.append(a3 / (g * xf[ii] / (omega[ii] * ccp)))

View File

@ -40,7 +40,9 @@ for r in np.arange(0, 1.1, 0.1):
*Rn,
c="#ff6600",
)
axr.annotate(f"{r=:.1f}", (Rn[0][0], Rn[1][0]), bbox={"boxstyle": "square", "facecolor": "w"})
axr.annotate(
f"{r=:.1f}", (Rn[0][0], Rn[1][0]), bbox={"boxstyle": "square", "facecolor": "w"}
)
axr.grid()
axr.autoscale(True, "x", tight=True)
axr.set(ylim=(0, 1), ylabel="R", xlabel="f")

View File

@ -7,6 +7,7 @@ import numpy as np
log = logging.getLogger("read_swash")
class ReadSwash:
def __init__(self):
self._n_x = None