mirror of https://gitlab.com/pamhyr/pamhyr2
debug Froude
parent
2951f5e093
commit
5204b2cef2
Binary file not shown.
|
|
@ -200,9 +200,9 @@ class CustomPlot(PamhyrPlot):
|
||||||
p.get_ts_key(self._timestamp, "Q"),
|
p.get_ts_key(self._timestamp, "Q"),
|
||||||
p.get_ts_key(self._timestamp, "Z")) /
|
p.get_ts_key(self._timestamp, "Z")) /
|
||||||
sqrt(9.81 * (
|
sqrt(9.81 * (
|
||||||
p.geometry.wet_width(
|
|
||||||
p.get_ts_key(self._timestamp, "Z")) /
|
|
||||||
p.geometry.wet_area(
|
p.geometry.wet_area(
|
||||||
|
p.get_ts_key(self._timestamp, "Z")) /
|
||||||
|
p.geometry.wet_width(
|
||||||
p.get_ts_key(self._timestamp, "Z"))
|
p.get_ts_key(self._timestamp, "Z"))
|
||||||
)),
|
)),
|
||||||
reach.profiles
|
reach.profiles
|
||||||
|
|
@ -394,8 +394,8 @@ class CustomPlot(PamhyrPlot):
|
||||||
map(lambda z, q:
|
map(lambda z, q:
|
||||||
profile.geometry.speed(q, z) /
|
profile.geometry.speed(q, z) /
|
||||||
sqrt(9.81 * (
|
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)
|
), z, q)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,8 +121,8 @@ class TableModel(PamhyrTableModel):
|
||||||
q = self._lst[row].get_ts_key(self._timestamp, "Q")
|
q = self._lst[row].get_ts_key(self._timestamp, "Q")
|
||||||
z = self._lst[row].get_ts_key(self._timestamp, "Z")
|
z = self._lst[row].get_ts_key(self._timestamp, "Z")
|
||||||
v = self._lst[row].geometry.speed(q, z)
|
v = self._lst[row].geometry.speed(q, z)
|
||||||
b = self._lst[row].geometry.wet_area(z)
|
a = self._lst[row].geometry.wet_area(z)
|
||||||
a = self._lst[row].geometry.wet_width(z)
|
b = self._lst[row].geometry.wet_width(z)
|
||||||
froude = v / sqrt(9.81 * (a / b))
|
froude = v / sqrt(9.81 * (a / b))
|
||||||
return f"{froude:.4f}"
|
return f"{froude:.4f}"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue