work on auto bondary and init cond

This commit is contained in:
Theophile Terraz committed 2025-05-26 14:53:47 +02:00
1 parent bb3dadc0c7
commit 5aef0bbf3c
3 files changed
+15 -7

No files matched your search

+6 -2
View File
@@ -372,8 +372,12 @@ class EditBoundaryConditionWindow(PamhyrWindow):
if strickler is None:
strickler = 25.0
height = [(i)*(z_max-z_min)/50 for i in range(51)]
q = [((profile.wet_width(z_min + h) * 0.8) * strickler
* (h ** (5/3)) * (abs(self.slope_value) ** (0.5)))
#q = [((profile.wet_width(z_min + h) * 0.8) * strickler
#* (h ** (5/3)) * (abs(self.slope_value) ** (0.5)))
#for h in height]
q = [profile.wet_area(z_min + h) * strickler
* (profile.wet_radius(z_min + h) ** (2/3))
* (abs(self.slope_value) ** (0.5))
for h in height]
for i in range(len(height)):
height[i] += z_min
-1
View File
@@ -169,7 +169,6 @@ class GeometryReachTableModel(PamhyrTableModel):
self.layoutChanged.emit()
def move_down(self, row, parent=QModelIndex()):
print(row)
if row >= self._data.number_profiles-1:
return