Hi Christophe,
If such problems occurs, this could be linked to the local mesh size comparatively to the culvert size...
Absolutely !
I fully understand why it has been coded this way and it is indeed a user mistake.
But many user don't dive into source code to know how it works and just trust the code.
Cold you explain how the results could be false due to water availability limitation?
In case of a big culvert linked to small mesh, the culvert will never reach its full capacity as it will be caped by available water and final head loss will be greater than reality.
User should double checks computed flow with analytic formula (simple orifice formula is enough for pressure flow) but many don't do that.
That's why a warning could be great when flow is limited by available water just to warn user that what's wrong in his model design.