Open DanielTollenaar opened 1 week ago
The min_crest_level
is optional, and defaults to -Inf. In that case, or in the case that it is below the Basin bottom, this reduction factor is never applied. If the upstream Basin is about to run dry this reduction factor should still apply, but perhaps can be easily overstepped completely. Do you see these instabilities / crashes also with default adaptive solvers?
We should probably default min_crest_level
to the upstream Basin bottom, and validate that it is not set to a value lower than that (but not automatically raise it to the bottom, I want users to be aware of this).
And I think it also makes sense to require TabulatedRatingCurve level
to start at or above bottom, just as flow_rate
needs to start at 0.
Do you see these instabilities / crashes also with default adaptive solvers?
Yes
For the rest, I think we see it the same way. And even if it doesn't/wouldn't serve a numeric purpose, in case of an Outlet
of TabulatedRatingCurve
(min_crest_)level
lower than upstream basin-bottom is (in my view) faulty input that cannot be and therefore should be corrected :-)
Would it be a good idea to set the min_crest_level
of Outlet to 0?
Assuming you want to make 0 the default value.... ... I don't think that is a good idea. 0 is in my opion an arbitrary choice as you do not know at what elevation your model is located. If the majority is below mean sea level and your 0-reference is mean sea level your default value makes life complicated as the modeller might not be aware that you apply this default.
What When specifying an
Outlet
orTabulatedRatingCurve
one can specifymin_crest_level
orlevel
that is lower than the upstreamBasin / profile
. This is one of the most common causes of model instability/crashes.Why Validating the
min_crest_level
andlevel
column with the minimumlevel
upstreamBasin / profile
prior to modelling would speed-up model debugging.How Compare
min_crest_level
andlevel
columns inOutlet
orTabulatedRatingCurve
with upstreamBasin / profile
and give a validation error whenmin_crest_level
andlevel
are lower than the minimum level in the basin-profile