Hello Fabien,
First, be sure that you cannot get what you want with current features of TELEMAC.
Otherwise, I think you are now mature enough to read the developer guide. :)
available in
$HOMETEL/documentation/Misc/developer_guide
or
wiki.opentelemac.org/doku.php?id=documentation_v8p1r1 in Miscellaneous Manuals (bottom of the page).
See the BIEF_DEF module in sources/utils/bief and first advice, have a look at weirs, breaches or culverts features which could help you.
Good luck,
Chi-Tuan