Hello all,
I aim to compute discharge with TELEMAC but the method I use does not seem correct.
My calculation is based on the definition of the discharge that says that the discharge through a surface S is equal to the integral of the dot product of the normal vector and the speed V. So if I want to compute the discharge through the surface defined by two neighbouring points of my mesh I, J, the free surface and the bathymetry (under the assumption that the speed is constant between I and J and equal to (U(I)+U(J);V(I)+V(J))/2 the formula I use in TELEMAC is :
DOT_PRODUCT((/U(I)+U(J),V(I)+V(J)/)/2,NLOCAL)*(d/2)*(H(I)+H(J))
where DOT_PRODUCT((/U(I)+U(J),V(I)+V(J)/)/2,NLOCAL) stands for the dot product between the speed vector and the normal vector and (d/2)*(H(I)+H(J)) stands for the surface of S.
I tried to apply this formula with liquid boundaries where I impose discharge and there is a difference between the fluxes computed with TELEMAC (which are correct) and the fluxes computed with my formula. I have two questions :
- What is wrong with my formula ?
- Should I use TELEMAC subroutines to compute the discharge and what subroutines ? I tried to take a look but it's far from being obvious.