Hi AP,
you can use the private variables foreseen in the code to be used by the enduser.
You could add the following keywords to your steering file:
NUMBER OF PRIVATE ARRAYS =1
NAMES OF PRIVATE VARIABLES ='CULVERTS M3/S
! make sure you ask output for the private variable
VARIABLES FOR GRAPHIC PRINTOUTS =U,V,S,H,TA1,PRIVE1 '
and then add the following lines of code to the telemac2d.f fortran routine. You have to add the lines after the call for the BUSE.f subroutine. (actually the code is for telemac3d so you might need to change the names a little bit; I think PRIVE2D will just be PRIVE)
! this writes a zero to all nodes of the mesh
CALL OS('X=0 ',X=PRIVE2D)
! then write discharge data to the specific culvert point in your mesh.
DO I=1,NBUSE
PRIVE2D%ADR(1)%P%R(ENTBUS(I))=-DBUS%R(I)
PRIVE2D%ADR(1)%P%R(SORBUS(I))= DBUS%R(I)
ENDDO
! the variable CULVERTS will then be present in your results file and you can extract the time series from there.
Hope this helps
Sven