Commit 5204b2ce authored by Theophile Terraz's avatar Theophile Terraz
Browse files

debug Froude

No related merge requests found
Pipeline #57706 passed with stages
in 6 minutes and 42 seconds
Showing with 6 additions and 6 deletions
+6 -6
No preview for this file type
......@@ -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)
)
......
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment