Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • jalhyd jalhyd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous recommandons d'y créer tous vos nouveaux projets.

  • cassiopeecassiopee
  • jalhydjalhyd
  • Issues
  • #211
Closed
Open
Issue created Apr 24, 2020 by Dorchies David@david.dorchiesOwner

Lois d'ouvrages: ajout du seuil triangulaire épais

Bos (1989) gives the following relation between submergence ratio (H2/H1) and the submergence flow reduction factor (S)

image

Extract from Bos, M.G., 1989. Discharge measurement structures., 3rd edition. ed, Publication. International Institute for Land Reclamation and Improvement, Wageningen, The Netherlands. p.142

Abaque_Bos_1989_p142_-_WebPlotDigitilizer.csv

df <- read.table("Abaque Bos 1989 p142 - WebPlotDigitilizer.csv", sep = ";", header = F, stringsAsFactors =  F)
x <- 1- df[,2]
S <- df[,1]

modele = nls(
    S ~ sin(c1 *x^c2),
    start = list(c1 = 7, c2 = 0.4)
)
summary(modele)
## 
## Formula: S ~ sin(c1 * x^c2)
## 
## Parameters:
##    Estimate Std. Error t value Pr(>|t|)    
## c1 4.434899   0.130123   34.08   <2e-16 ***
## c2 0.608720   0.009778   62.25   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.01493 on 28 degrees of freedom
## 
## Number of iterations to convergence: 8 
## Achieved convergence tolerance: 2.378e-06
formula = paste("S = sin(", round(coef(modele)[1], 4), "(1 - H2/H1) ^", round(coef(modele)[2],4), ")")

plot(x,S, main = "Submergence reduction factor S = f(1 - H2/H1)", xlab = "1 - H2/H1")
xe = seq(min(x), max(x), (max(x) - min(x))/100)
regS <- function (x) {sin(coef(modele)[1] * x ^ coef(modele)[2])}
lines(xe, regS(xe), col="green")
legend(0.07,0.4, legend = c("Bos 1989", formula), col = c("black", "green"), lty = c(NA, 1), pch = c(1, NA) )

image

plot(x, (regS(x) - S) / S *100, main = "Regression relative error (%)")

image

Assignee
Assign to
Time tracking