debug Froude

compare_results
Theophile Terraz 2024-08-27 17:03:56 +02:00
parent 2951f5e093
commit 5204b2cef2
3 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -200,9 +200,9 @@ class CustomPlot(PamhyrPlot):
p.get_ts_key(self._timestamp, "Q"),
p.get_ts_key(self._timestamp, "Z")) /
sqrt(9.81 * (
p.geometry.wet_width(
p.get_ts_key(self._timestamp, "Z")) /
p.geometry.wet_area(
p.get_ts_key(self._timestamp, "Z")) /
p.geometry.wet_width(
p.get_ts_key(self._timestamp, "Z"))
)),
reach.profiles
@ -394,8 +394,8 @@ class CustomPlot(PamhyrPlot):
map(lambda z, q:
profile.geometry.speed(q, z) /
sqrt(9.81 * (
profile.geometry.wet_width(z) /
profile.geometry.wet_area(z))
profile.geometry.wet_area(z) /
profile.geometry.wet_width(z))
), z, q)
)

View File

@ -121,8 +121,8 @@ class TableModel(PamhyrTableModel):
q = self._lst[row].get_ts_key(self._timestamp, "Q")
z = self._lst[row].get_ts_key(self._timestamp, "Z")
v = self._lst[row].geometry.speed(q, z)
b = self._lst[row].geometry.wet_area(z)
a = self._lst[row].geometry.wet_width(z)
a = self._lst[row].geometry.wet_area(z)
b = self._lst[row].geometry.wet_width(z)
froude = v / sqrt(9.81 * (a / b))
return f"{froude:.4f}"
else: