terraz_dev
Theophile Terraz 2025-06-05 11:01:46 +02:00
parent 5aef0bbf3c
commit 3e8132646d
1 changed files with 8 additions and 5 deletions

View File

@ -463,11 +463,14 @@ class InitialConditions(SQLSubModel):
if not compute_height: if not compute_height:
height = data_height[profile.rk] height = data_height[profile.rk]
else: else:
height = ( if abs(incline) <= 0:
discharge height = 0.0
/ else:
((width * 0.8) * strickler * (abs(incline) ** (0.5))) height = (
) ** (0.6) discharge
/
((width * 0.8) * strickler * (abs(incline) ** (0.5)))
) ** (0.6)
elevation = max( elevation = max(
profile.z_min() + height, profile.z_min() + height,