HydPy 6.2.dev1__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hydpy/__init__.py +275 -0
- hydpy/aliases.py +2554 -0
- hydpy/auxs/__init__.py +0 -0
- hydpy/auxs/anntools.py +1305 -0
- hydpy/auxs/armatools.py +883 -0
- hydpy/auxs/calibtools.py +3337 -0
- hydpy/auxs/interptools.py +1094 -0
- hydpy/auxs/iuhtools.py +543 -0
- hydpy/auxs/networktools.py +597 -0
- hydpy/auxs/ppolytools.py +809 -0
- hydpy/auxs/quadtools.py +61 -0
- hydpy/auxs/roottools.py +228 -0
- hydpy/auxs/smoothtools.py +273 -0
- hydpy/auxs/statstools.py +2125 -0
- hydpy/auxs/validtools.py +81 -0
- hydpy/conf/HydPyConfigBase.xsd +68637 -0
- hydpy/conf/HydPyConfigBase.xsdt +358 -0
- hydpy/conf/HydPyConfigMultipleRuns.xsd +25 -0
- hydpy/conf/HydPyConfigSingleRun.xsd +24 -0
- hydpy/conf/__init__.py +0 -0
- hydpy/conf/a_coefficients_explicit_lobatto_sequence.npy +0 -0
- hydpy/conf/support_points_for_smoothpar_logistic2.npy +0 -0
- hydpy/config.py +42 -0
- hydpy/core/__init__.py +0 -0
- hydpy/core/aliastools.py +214 -0
- hydpy/core/autodoctools.py +1947 -0
- hydpy/core/auxfiletools.py +1169 -0
- hydpy/core/devicetools.py +3810 -0
- hydpy/core/exceptiontools.py +269 -0
- hydpy/core/filetools.py +1985 -0
- hydpy/core/hydpytools.py +3089 -0
- hydpy/core/importtools.py +1398 -0
- hydpy/core/indextools.py +345 -0
- hydpy/core/itemtools.py +1849 -0
- hydpy/core/masktools.py +460 -0
- hydpy/core/modeltools.py +4868 -0
- hydpy/core/netcdftools.py +2683 -0
- hydpy/core/objecttools.py +2023 -0
- hydpy/core/optiontools.py +1045 -0
- hydpy/core/parametertools.py +4674 -0
- hydpy/core/printtools.py +222 -0
- hydpy/core/propertytools.py +643 -0
- hydpy/core/pubtools.py +254 -0
- hydpy/core/selectiontools.py +1571 -0
- hydpy/core/sequencetools.py +4476 -0
- hydpy/core/seriestools.py +339 -0
- hydpy/core/testtools.py +2483 -0
- hydpy/core/timetools.py +3567 -0
- hydpy/core/typingtools.py +333 -0
- hydpy/core/variabletools.py +2615 -0
- hydpy/cythons/__init__.py +24 -0
- hydpy/cythons/annutils.pxd +33 -0
- hydpy/cythons/annutils.pyi +25 -0
- hydpy/cythons/annutils.pyx +120 -0
- hydpy/cythons/autogen/__init__.py +0 -0
- hydpy/cythons/autogen/annutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/annutils.pxd +42 -0
- hydpy/cythons/autogen/annutils.pyx +129 -0
- hydpy/cythons/autogen/c_arma.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_arma.pxd +179 -0
- hydpy/cythons/autogen/c_arma.pyx +356 -0
- hydpy/cythons/autogen/c_arma_rimorido.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_arma_rimorido.pxd +179 -0
- hydpy/cythons/autogen/c_arma_rimorido.pyx +356 -0
- hydpy/cythons/autogen/c_conv.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_conv.pxd +198 -0
- hydpy/cythons/autogen/c_conv.pyx +491 -0
- hydpy/cythons/autogen/c_conv_idw.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_conv_idw.pxd +124 -0
- hydpy/cythons/autogen/c_conv_idw.pyx +264 -0
- hydpy/cythons/autogen/c_conv_idw_ed.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_conv_idw_ed.pxd +197 -0
- hydpy/cythons/autogen/c_conv_idw_ed.pyx +481 -0
- hydpy/cythons/autogen/c_conv_nn.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_conv_nn.pxd +120 -0
- hydpy/cythons/autogen/c_conv_nn.pyx +224 -0
- hydpy/cythons/autogen/c_dam.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam.pxd +805 -0
- hydpy/cythons/autogen/c_dam.pyx +1477 -0
- hydpy/cythons/autogen/c_dam_llake.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_llake.pxd +364 -0
- hydpy/cythons/autogen/c_dam_llake.pyx +705 -0
- hydpy/cythons/autogen/c_dam_lreservoir.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_lreservoir.pxd +365 -0
- hydpy/cythons/autogen/c_dam_lreservoir.pyx +708 -0
- hydpy/cythons/autogen/c_dam_lretention.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_lretention.pxd +340 -0
- hydpy/cythons/autogen/c_dam_lretention.pyx +625 -0
- hydpy/cythons/autogen/c_dam_pump.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_pump.pxd +402 -0
- hydpy/cythons/autogen/c_dam_pump.pyx +724 -0
- hydpy/cythons/autogen/c_dam_pump_sluice.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_pump_sluice.pxd +452 -0
- hydpy/cythons/autogen/c_dam_pump_sluice.pyx +829 -0
- hydpy/cythons/autogen/c_dam_sluice.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_sluice.pxd +404 -0
- hydpy/cythons/autogen/c_dam_sluice.pyx +726 -0
- hydpy/cythons/autogen/c_dam_v001.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_v001.pxd +452 -0
- hydpy/cythons/autogen/c_dam_v001.pyx +816 -0
- hydpy/cythons/autogen/c_dam_v002.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_v002.pxd +394 -0
- hydpy/cythons/autogen/c_dam_v002.pyx +703 -0
- hydpy/cythons/autogen/c_dam_v003.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_v003.pxd +417 -0
- hydpy/cythons/autogen/c_dam_v003.pyx +744 -0
- hydpy/cythons/autogen/c_dam_v004.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_v004.pxd +486 -0
- hydpy/cythons/autogen/c_dam_v004.pyx +891 -0
- hydpy/cythons/autogen/c_dam_v005.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dam_v005.pxd +524 -0
- hydpy/cythons/autogen/c_dam_v005.pyx +928 -0
- hydpy/cythons/autogen/c_dummy.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy.pxd +151 -0
- hydpy/cythons/autogen/c_dummy.pyx +263 -0
- hydpy/cythons/autogen/c_dummy_interceptedwater.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_interceptedwater.pxd +69 -0
- hydpy/cythons/autogen/c_dummy_interceptedwater.pyx +104 -0
- hydpy/cythons/autogen/c_dummy_node2node.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_node2node.pxd +89 -0
- hydpy/cythons/autogen/c_dummy_node2node.pyx +148 -0
- hydpy/cythons/autogen/c_dummy_snowalbedo.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_snowalbedo.pxd +69 -0
- hydpy/cythons/autogen/c_dummy_snowalbedo.pyx +104 -0
- hydpy/cythons/autogen/c_dummy_snowcover.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_snowcover.pxd +69 -0
- hydpy/cythons/autogen/c_dummy_snowcover.pyx +104 -0
- hydpy/cythons/autogen/c_dummy_snowycanopy.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_snowycanopy.pxd +69 -0
- hydpy/cythons/autogen/c_dummy_snowycanopy.pyx +104 -0
- hydpy/cythons/autogen/c_dummy_soilwater.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_dummy_soilwater.pxd +69 -0
- hydpy/cythons/autogen/c_dummy_soilwater.pyx +104 -0
- hydpy/cythons/autogen/c_evap.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap.pxd +1029 -0
- hydpy/cythons/autogen/c_evap.pyx +2601 -0
- hydpy/cythons/autogen/c_evap_aet_hbv96.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_aet_hbv96.pxd +227 -0
- hydpy/cythons/autogen/c_evap_aet_hbv96.pyx +584 -0
- hydpy/cythons/autogen/c_evap_aet_minhas.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_aet_minhas.pxd +193 -0
- hydpy/cythons/autogen/c_evap_aet_minhas.pyx +478 -0
- hydpy/cythons/autogen/c_evap_aet_morsim.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_aet_morsim.pxd +681 -0
- hydpy/cythons/autogen/c_evap_aet_morsim.pyx +1642 -0
- hydpy/cythons/autogen/c_evap_pet_ambav1.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_pet_ambav1.pxd +532 -0
- hydpy/cythons/autogen/c_evap_pet_ambav1.pyx +1296 -0
- hydpy/cythons/autogen/c_evap_pet_hbv96.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_pet_hbv96.pxd +179 -0
- hydpy/cythons/autogen/c_evap_pet_hbv96.pyx +328 -0
- hydpy/cythons/autogen/c_evap_pet_m.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_pet_m.pxd +124 -0
- hydpy/cythons/autogen/c_evap_pet_m.pyx +214 -0
- hydpy/cythons/autogen/c_evap_pet_mlc.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_pet_mlc.pxd +126 -0
- hydpy/cythons/autogen/c_evap_pet_mlc.pyx +214 -0
- hydpy/cythons/autogen/c_evap_ret_fao56.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_ret_fao56.pxd +305 -0
- hydpy/cythons/autogen/c_evap_ret_fao56.pyx +624 -0
- hydpy/cythons/autogen/c_evap_ret_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_ret_io.pxd +112 -0
- hydpy/cythons/autogen/c_evap_ret_io.pyx +176 -0
- hydpy/cythons/autogen/c_evap_ret_tw2002.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_evap_ret_tw2002.pxd +139 -0
- hydpy/cythons/autogen/c_evap_ret_tw2002.pyx +273 -0
- hydpy/cythons/autogen/c_exch.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_exch.pxd +230 -0
- hydpy/cythons/autogen/c_exch.pyx +462 -0
- hydpy/cythons/autogen/c_exch_branch_hbv96.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_exch_branch_hbv96.pxd +134 -0
- hydpy/cythons/autogen/c_exch_branch_hbv96.pyx +255 -0
- hydpy/cythons/autogen/c_exch_waterlevel.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_exch_waterlevel.pxd +54 -0
- hydpy/cythons/autogen/c_exch_waterlevel.pyx +78 -0
- hydpy/cythons/autogen/c_exch_weir_hbv96.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_exch_weir_hbv96.pxd +156 -0
- hydpy/cythons/autogen/c_exch_weir_hbv96.pyx +282 -0
- hydpy/cythons/autogen/c_ga.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_ga.pxd +353 -0
- hydpy/cythons/autogen/c_ga.pyx +1204 -0
- hydpy/cythons/autogen/c_ga_garto.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_ga_garto.pxd +330 -0
- hydpy/cythons/autogen/c_ga_garto.pyx +1105 -0
- hydpy/cythons/autogen/c_ga_garto_submodel1.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_ga_garto_submodel1.pxd +236 -0
- hydpy/cythons/autogen/c_ga_garto_submodel1.pyx +944 -0
- hydpy/cythons/autogen/c_gland.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_gland.pxd +437 -0
- hydpy/cythons/autogen/c_gland.pyx +726 -0
- hydpy/cythons/autogen/c_gland_gr4.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_gland_gr4.pxd +382 -0
- hydpy/cythons/autogen/c_gland_gr4.pyx +605 -0
- hydpy/cythons/autogen/c_gland_gr5.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_gland_gr5.pxd +368 -0
- hydpy/cythons/autogen/c_gland_gr5.pyx +568 -0
- hydpy/cythons/autogen/c_gland_gr6.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_gland_gr6.pxd +420 -0
- hydpy/cythons/autogen/c_gland_gr6.pyx +673 -0
- hydpy/cythons/autogen/c_hland.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_hland.pxd +855 -0
- hydpy/cythons/autogen/c_hland.pyx +2486 -0
- hydpy/cythons/autogen/c_hland_96.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_hland_96.pxd +631 -0
- hydpy/cythons/autogen/c_hland_96.pyx +1724 -0
- hydpy/cythons/autogen/c_hland_96c.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_hland_96c.pxd +621 -0
- hydpy/cythons/autogen/c_hland_96c.pyx +1822 -0
- hydpy/cythons/autogen/c_hland_96p.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_hland_96p.pxd +683 -0
- hydpy/cythons/autogen/c_hland_96p.pyx +1911 -0
- hydpy/cythons/autogen/c_kinw.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_kinw.pxd +509 -0
- hydpy/cythons/autogen/c_kinw.pyx +965 -0
- hydpy/cythons/autogen/c_kinw_williams.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_kinw_williams.pxd +409 -0
- hydpy/cythons/autogen/c_kinw_williams.pyx +763 -0
- hydpy/cythons/autogen/c_kinw_williams_ext.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_kinw_williams_ext.pxd +220 -0
- hydpy/cythons/autogen/c_kinw_williams_ext.pyx +440 -0
- hydpy/cythons/autogen/c_lland.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_lland.pxd +1386 -0
- hydpy/cythons/autogen/c_lland.pyx +3679 -0
- hydpy/cythons/autogen/c_lland_dd.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_lland_dd.pxd +679 -0
- hydpy/cythons/autogen/c_lland_dd.pyx +1719 -0
- hydpy/cythons/autogen/c_lland_knauf.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_lland_knauf.pxd +1096 -0
- hydpy/cythons/autogen/c_lland_knauf.pyx +2784 -0
- hydpy/cythons/autogen/c_lland_knauf_ic.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_lland_knauf_ic.pxd +1369 -0
- hydpy/cythons/autogen/c_lland_knauf_ic.pyx +3625 -0
- hydpy/cythons/autogen/c_meteo.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo.pxd +469 -0
- hydpy/cythons/autogen/c_meteo.pyx +879 -0
- hydpy/cythons/autogen/c_meteo_clear_glob_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_clear_glob_io.pxd +75 -0
- hydpy/cythons/autogen/c_meteo_clear_glob_io.pyx +107 -0
- hydpy/cythons/autogen/c_meteo_glob_fao56.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_glob_fao56.pxd +209 -0
- hydpy/cythons/autogen/c_meteo_glob_fao56.pyx +339 -0
- hydpy/cythons/autogen/c_meteo_glob_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_glob_io.pxd +63 -0
- hydpy/cythons/autogen/c_meteo_glob_io.pyx +91 -0
- hydpy/cythons/autogen/c_meteo_glob_morsim.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_glob_morsim.pxd +289 -0
- hydpy/cythons/autogen/c_meteo_glob_morsim.pyx +527 -0
- hydpy/cythons/autogen/c_meteo_precip_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_precip_io.pxd +112 -0
- hydpy/cythons/autogen/c_meteo_precip_io.pyx +176 -0
- hydpy/cythons/autogen/c_meteo_psun_sun_glob_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_psun_sun_glob_io.pxd +87 -0
- hydpy/cythons/autogen/c_meteo_psun_sun_glob_io.pyx +123 -0
- hydpy/cythons/autogen/c_meteo_sun_fao56.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_sun_fao56.pxd +209 -0
- hydpy/cythons/autogen/c_meteo_sun_fao56.pyx +343 -0
- hydpy/cythons/autogen/c_meteo_sun_morsim.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_sun_morsim.pxd +286 -0
- hydpy/cythons/autogen/c_meteo_sun_morsim.pyx +519 -0
- hydpy/cythons/autogen/c_meteo_temp_io.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_meteo_temp_io.pxd +112 -0
- hydpy/cythons/autogen/c_meteo_temp_io.pyx +176 -0
- hydpy/cythons/autogen/c_musk.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_musk.pxd +282 -0
- hydpy/cythons/autogen/c_musk.pyx +605 -0
- hydpy/cythons/autogen/c_musk_classic.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_musk_classic.pxd +138 -0
- hydpy/cythons/autogen/c_musk_classic.pyx +226 -0
- hydpy/cythons/autogen/c_musk_mct.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_musk_mct.pxd +282 -0
- hydpy/cythons/autogen/c_musk_mct.pyx +609 -0
- hydpy/cythons/autogen/c_rconc.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_rconc.pxd +119 -0
- hydpy/cythons/autogen/c_rconc.pyx +174 -0
- hydpy/cythons/autogen/c_rconc_nash.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_rconc_nash.pxd +111 -0
- hydpy/cythons/autogen/c_rconc_nash.pyx +185 -0
- hydpy/cythons/autogen/c_rconc_uh.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_rconc_uh.pxd +92 -0
- hydpy/cythons/autogen/c_rconc_uh.pyx +125 -0
- hydpy/cythons/autogen/c_sw1d.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d.pxd +511 -0
- hydpy/cythons/autogen/c_sw1d.pyx +1263 -0
- hydpy/cythons/autogen/c_sw1d_channel.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_channel.pxd +119 -0
- hydpy/cythons/autogen/c_sw1d_channel.pyx +300 -0
- hydpy/cythons/autogen/c_sw1d_gate_out.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_gate_out.pxd +240 -0
- hydpy/cythons/autogen/c_sw1d_gate_out.pyx +476 -0
- hydpy/cythons/autogen/c_sw1d_lias.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_lias.pxd +320 -0
- hydpy/cythons/autogen/c_sw1d_lias.pyx +619 -0
- hydpy/cythons/autogen/c_sw1d_lias_sluice.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_lias_sluice.pxd +325 -0
- hydpy/cythons/autogen/c_sw1d_lias_sluice.pyx +644 -0
- hydpy/cythons/autogen/c_sw1d_network.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_network.pxd +90 -0
- hydpy/cythons/autogen/c_sw1d_network.pyx +246 -0
- hydpy/cythons/autogen/c_sw1d_pump.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_pump.pxd +256 -0
- hydpy/cythons/autogen/c_sw1d_pump.pyx +502 -0
- hydpy/cythons/autogen/c_sw1d_q_in.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_q_in.pxd +224 -0
- hydpy/cythons/autogen/c_sw1d_q_in.pyx +383 -0
- hydpy/cythons/autogen/c_sw1d_q_out.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_q_out.pxd +224 -0
- hydpy/cythons/autogen/c_sw1d_q_out.pyx +383 -0
- hydpy/cythons/autogen/c_sw1d_storage.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_storage.pxd +193 -0
- hydpy/cythons/autogen/c_sw1d_storage.pyx +349 -0
- hydpy/cythons/autogen/c_sw1d_weir_out.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_sw1d_weir_out.pxd +212 -0
- hydpy/cythons/autogen/c_sw1d_weir_out.pyx +404 -0
- hydpy/cythons/autogen/c_test.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_test.pxd +175 -0
- hydpy/cythons/autogen/c_test.pyx +348 -0
- hydpy/cythons/autogen/c_test_discontinous.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_test_discontinous.pxd +146 -0
- hydpy/cythons/autogen/c_test_discontinous.pyx +256 -0
- hydpy/cythons/autogen/c_test_stiff0d.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_test_stiff0d.pxd +146 -0
- hydpy/cythons/autogen/c_test_stiff0d.pyx +250 -0
- hydpy/cythons/autogen/c_test_stiff1d.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_test_stiff1d.pxd +145 -0
- hydpy/cythons/autogen/c_test_stiff1d.pyx +294 -0
- hydpy/cythons/autogen/c_whmod.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_whmod.pxd +482 -0
- hydpy/cythons/autogen/c_whmod.pyx +1156 -0
- hydpy/cythons/autogen/c_whmod_rural.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_whmod_rural.pxd +411 -0
- hydpy/cythons/autogen/c_whmod_rural.pyx +982 -0
- hydpy/cythons/autogen/c_whmod_urban.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_whmod_urban.pxd +482 -0
- hydpy/cythons/autogen/c_whmod_urban.pyx +1155 -0
- hydpy/cythons/autogen/c_wland.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wland.pxd +842 -0
- hydpy/cythons/autogen/c_wland.pyx +1890 -0
- hydpy/cythons/autogen/c_wland_gd.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wland_gd.pxd +829 -0
- hydpy/cythons/autogen/c_wland_gd.pyx +1847 -0
- hydpy/cythons/autogen/c_wland_wag.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wland_wag.pxd +810 -0
- hydpy/cythons/autogen/c_wland_wag.pyx +1780 -0
- hydpy/cythons/autogen/c_wq.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wq.pxd +275 -0
- hydpy/cythons/autogen/c_wq.pyx +652 -0
- hydpy/cythons/autogen/c_wq_trapeze.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wq_trapeze.pxd +170 -0
- hydpy/cythons/autogen/c_wq_trapeze.pyx +400 -0
- hydpy/cythons/autogen/c_wq_trapeze_strickler.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wq_trapeze_strickler.pxd +243 -0
- hydpy/cythons/autogen/c_wq_trapeze_strickler.pyx +578 -0
- hydpy/cythons/autogen/c_wq_walrus.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/c_wq_walrus.pxd +61 -0
- hydpy/cythons/autogen/c_wq_walrus.pyx +82 -0
- hydpy/cythons/autogen/configutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/configutils.pxd +17 -0
- hydpy/cythons/autogen/configutils.pyx +119 -0
- hydpy/cythons/autogen/interfaceutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/interfaceutils.pxd +31 -0
- hydpy/cythons/autogen/interfaceutils.pyx +82 -0
- hydpy/cythons/autogen/interputils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/interputils.pxd +42 -0
- hydpy/cythons/autogen/interputils.pyx +118 -0
- hydpy/cythons/autogen/masterinterface.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/masterinterface.pxd +153 -0
- hydpy/cythons/autogen/masterinterface.pyx +222 -0
- hydpy/cythons/autogen/pointerutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/pointerutils.pxd +31 -0
- hydpy/cythons/autogen/pointerutils.pyx +650 -0
- hydpy/cythons/autogen/ppolyutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/ppolyutils.pxd +35 -0
- hydpy/cythons/autogen/ppolyutils.pyx +59 -0
- hydpy/cythons/autogen/quadutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/quadutils.pxd +26 -0
- hydpy/cythons/autogen/quadutils.pyx +973 -0
- hydpy/cythons/autogen/rootutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/rootutils.pxd +28 -0
- hydpy/cythons/autogen/rootutils.pyx +109 -0
- hydpy/cythons/autogen/sequenceutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/sequenceutils.pxd +45 -0
- hydpy/cythons/autogen/sequenceutils.pyx +101 -0
- hydpy/cythons/autogen/smoothutils.cp313-win_amd64.pyd +0 -0
- hydpy/cythons/autogen/smoothutils.pxd +29 -0
- hydpy/cythons/autogen/smoothutils.pyx +833 -0
- hydpy/cythons/configutils.pxd +8 -0
- hydpy/cythons/configutils.pyi +5 -0
- hydpy/cythons/configutils.pyx +110 -0
- hydpy/cythons/interfaceutils.pxd +22 -0
- hydpy/cythons/interfaceutils.pyi +15 -0
- hydpy/cythons/interfaceutils.pyx +73 -0
- hydpy/cythons/interputils.pxd +33 -0
- hydpy/cythons/interputils.pyi +32 -0
- hydpy/cythons/interputils.pyx +109 -0
- hydpy/cythons/modelutils.py +2990 -0
- hydpy/cythons/pointerutils.pxd +22 -0
- hydpy/cythons/pointerutils.pyi +89 -0
- hydpy/cythons/pointerutils.pyx +641 -0
- hydpy/cythons/ppolyutils.pxd +26 -0
- hydpy/cythons/ppolyutils.pyi +21 -0
- hydpy/cythons/ppolyutils.pyx +50 -0
- hydpy/cythons/quadutils.pxd +17 -0
- hydpy/cythons/quadutils.pyi +13 -0
- hydpy/cythons/quadutils.pyx +964 -0
- hydpy/cythons/rootutils.pxd +19 -0
- hydpy/cythons/rootutils.pyi +21 -0
- hydpy/cythons/rootutils.pyx +100 -0
- hydpy/cythons/sequenceutils.pxd +36 -0
- hydpy/cythons/sequenceutils.pyi +7 -0
- hydpy/cythons/sequenceutils.pyx +92 -0
- hydpy/cythons/smoothutils.pxd +20 -0
- hydpy/cythons/smoothutils.pyi +15 -0
- hydpy/cythons/smoothutils.pyx +824 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/land_dill_assl.py +13 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/land_lahn_kalk.py +13 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/land_lahn_leun.py +14 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/land_lahn_marb.py +13 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/stream_dill_assl_lahn_leun.py +5 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/stream_lahn_leun_lahn_kalk.py +5 -0
- hydpy/data/HydPy-H-Lahn/conditions/init_1996_01_01_00_00_00/stream_lahn_marb_lahn_leun.py +5 -0
- hydpy/data/HydPy-H-Lahn/control/default/land.py +9 -0
- hydpy/data/HydPy-H-Lahn/control/default/land_dill_assl.py +57 -0
- hydpy/data/HydPy-H-Lahn/control/default/land_lahn_kalk.py +57 -0
- hydpy/data/HydPy-H-Lahn/control/default/land_lahn_leun.py +56 -0
- hydpy/data/HydPy-H-Lahn/control/default/land_lahn_marb.py +57 -0
- hydpy/data/HydPy-H-Lahn/control/default/stream_dill_assl_lahn_leun.py +7 -0
- hydpy/data/HydPy-H-Lahn/control/default/stream_lahn_leun_lahn_kalk.py +7 -0
- hydpy/data/HydPy-H-Lahn/control/default/stream_lahn_marb_lahn_leun.py +7 -0
- hydpy/data/HydPy-H-Lahn/multiple_runs.xml +309 -0
- hydpy/data/HydPy-H-Lahn/multiple_runs_alpha.xml +71 -0
- hydpy/data/HydPy-H-Lahn/network/default/headwaters.py +11 -0
- hydpy/data/HydPy-H-Lahn/network/default/nonheadwaters.py +11 -0
- hydpy/data/HydPy-H-Lahn/network/default/streams.py +8 -0
- hydpy/data/HydPy-H-Lahn/series/default/dill_assl_obs_q.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/evap_pet_hbv96_input_normalairtemperature.nc +0 -0
- hydpy/data/HydPy-H-Lahn/series/default/evap_pet_hbv96_input_normalevapotranspiration.nc +0 -0
- hydpy/data/HydPy-H-Lahn/series/default/hland_96_input_p.nc +0 -0
- hydpy/data/HydPy-H-Lahn/series/default/hland_96_input_t.nc +0 -0
- hydpy/data/HydPy-H-Lahn/series/default/lahn_kalk_obs_q.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/lahn_leun_obs_q.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/lahn_marb_obs_q.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_dill_assl_evap_pet_hbv96_input_normalairtemperature.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_dill_assl_evap_pet_hbv96_input_normalevapotranspiration.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_dill_assl_hland_96_input_p.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_dill_assl_hland_96_input_t.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_kalk_evap_pet_hbv96_input_normalairtemperature.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_kalk_evap_pet_hbv96_input_normalevapotranspiration.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_kalk_hland_96_input_p.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_kalk_hland_96_input_t.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_leun_evap_pet_hbv96_input_normalairtemperature.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_leun_evap_pet_hbv96_input_normalevapotranspiration.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_leun_hland_96_input_p.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_leun_hland_96_input_t.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_marb_evap_pet_hbv96_input_normalairtemperature.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_marb_evap_pet_hbv96_input_normalevapotranspiration.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_marb_hland_96_input_p.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/land_lahn_marb_hland_96_input_t.asc +11387 -0
- hydpy/data/HydPy-H-Lahn/series/default/obs_q.nc +0 -0
- hydpy/data/HydPy-H-Lahn/single_run.xml +152 -0
- hydpy/data/HydPy-H-Lahn/single_run.xmlt +143 -0
- hydpy/data/__init__.py +17 -0
- hydpy/docs/__init__.py +0 -0
- hydpy/docs/autofigs/__init__.py +0 -0
- hydpy/docs/bib/__init__.py +0 -0
- hydpy/docs/bib/refs.bib +566 -0
- hydpy/docs/combine_docversions.py +133 -0
- hydpy/docs/draw_model_sketches.py +1301 -0
- hydpy/docs/enable_autodoc.py +7 -0
- hydpy/docs/figs/HydPy-G-GR4.png +0 -0
- hydpy/docs/figs/HydPy-G-GR5.png +0 -0
- hydpy/docs/figs/HydPy-G-GR6.png +0 -0
- hydpy/docs/figs/HydPy-H-HBV96-COSERO.png +0 -0
- hydpy/docs/figs/HydPy-H-HBV96-PREVAH.png +0 -0
- hydpy/docs/figs/HydPy-H-HBV96.png +0 -0
- hydpy/docs/figs/HydPy-H-Lahn.png +0 -0
- hydpy/docs/figs/HydPy-KinW-Williams.png +0 -0
- hydpy/docs/figs/HydPy-L-DD.png +0 -0
- hydpy/docs/figs/HydPy-W-Wag.png +0 -0
- hydpy/docs/figs/HydPy_Logo.png +0 -0
- hydpy/docs/figs/HydPy_Logo_Text.png +0 -0
- hydpy/docs/figs/IDLE-editor.png +0 -0
- hydpy/docs/figs/IDLE-shell.png +0 -0
- hydpy/docs/figs/LAWA_river-basin-bumbers.png +0 -0
- hydpy/docs/figs/__init__.py +0 -0
- hydpy/docs/html_/__init__.py +0 -0
- hydpy/docs/polish_html.py +57 -0
- hydpy/docs/prepare.py +224 -0
- hydpy/docs/publish_docs.py +53 -0
- hydpy/docs/rst/HydPy-ARMA.rst +27 -0
- hydpy/docs/rst/HydPy-Conv.rst +22 -0
- hydpy/docs/rst/HydPy-Dam.rst +79 -0
- hydpy/docs/rst/HydPy-Dummy.rst +21 -0
- hydpy/docs/rst/HydPy-Evap.rst +26 -0
- hydpy/docs/rst/HydPy-Exch.rst +36 -0
- hydpy/docs/rst/HydPy-G.rst +40 -0
- hydpy/docs/rst/HydPy-GA.rst +34 -0
- hydpy/docs/rst/HydPy-H.rst +24 -0
- hydpy/docs/rst/HydPy-KinW.rst +32 -0
- hydpy/docs/rst/HydPy-L.rst +42 -0
- hydpy/docs/rst/HydPy-Meteo.rst +28 -0
- hydpy/docs/rst/HydPy-Musk.rst +21 -0
- hydpy/docs/rst/HydPy-Rconc.rst +17 -0
- hydpy/docs/rst/HydPy-SW1D.rst +49 -0
- hydpy/docs/rst/HydPy-Test.rst +19 -0
- hydpy/docs/rst/HydPy-W.rst +20 -0
- hydpy/docs/rst/HydPy-WHMod.rst +19 -0
- hydpy/docs/rst/HydPy-WQ.rst +20 -0
- hydpy/docs/rst/__init__.py +0 -0
- hydpy/docs/rst/additional_repositories.rst +40 -0
- hydpy/docs/rst/auxiliaries.rst +31 -0
- hydpy/docs/rst/continuous_integration.rst +75 -0
- hydpy/docs/rst/core.rst +75 -0
- hydpy/docs/rst/cythons.rst +47 -0
- hydpy/docs/rst/definitions.rst +506 -0
- hydpy/docs/rst/developer_guide.rst +54 -0
- hydpy/docs/rst/example_projects.rst +40 -0
- hydpy/docs/rst/execution.rst +22 -0
- hydpy/docs/rst/framework_tools.rst +56 -0
- hydpy/docs/rst/how_to_read_the_reference_manual.rst +156 -0
- hydpy/docs/rst/hydpydependencies.rst +55 -0
- hydpy/docs/rst/index.rst +125 -0
- hydpy/docs/rst/installation.rst +155 -0
- hydpy/docs/rst/model_families.rst +79 -0
- hydpy/docs/rst/model_overview.rst +291 -0
- hydpy/docs/rst/modelimports.rst +10 -0
- hydpy/docs/rst/options.rst +119 -0
- hydpy/docs/rst/programming_style.rst +572 -0
- hydpy/docs/rst/project_structure.rst +520 -0
- hydpy/docs/rst/quickstart.rst +304 -0
- hydpy/docs/rst/reference_manual.rst +29 -0
- hydpy/docs/rst/required_tools.rst +50 -0
- hydpy/docs/rst/simulation.rst +514 -0
- hydpy/docs/rst/submodel_interfaces.rst +32 -0
- hydpy/docs/rst/tests_and_documentation.rst +85 -0
- hydpy/docs/rst/user_guide.rst +38 -0
- hydpy/docs/rst/version_control.rst +116 -0
- hydpy/docs/rst/zbibliography.rst +8 -0
- hydpy/docs/sphinx/__init__.py +0 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/changes/frameset.html +11 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/changes/rstsource.html +15 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/changes/versionchanges.html +33 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/defindex.html +35 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/domainindex.html +56 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/genindex-single.html +63 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/genindex-split.html +41 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/genindex.html +76 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/globaltoc.html +11 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/layout.html +221 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/localtoc.html +15 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/opensearch.xml +13 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/page.html +13 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/relations.html +23 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/search.html +65 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/searchbox.html +21 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/searchfield.html +23 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/sourcelink.html +18 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/basic.css_t +925 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/doctools.js +156 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/documentation_options.js_t +13 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/file.png +0 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/language_data.js_t +26 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/minus.png +0 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/plus.png +0 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/searchtools.js +574 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/static/sphinx_highlight.js +154 -0
- hydpy/docs/sphinx/_themes/basic_hydpy/theme.conf +16 -0
- hydpy/docs/sphinx/_themes/classic_hydpy/layout.html +23 -0
- hydpy/docs/sphinx/_themes/classic_hydpy/static/classic.css_t +358 -0
- hydpy/docs/sphinx/_themes/classic_hydpy/static/sidebar.js_t +72 -0
- hydpy/docs/sphinx/_themes/classic_hydpy/theme.conf +32 -0
- hydpy/docs/sphinx/conf.py +398 -0
- hydpy/docs/sphinx/defaultlinks_extension.py +36 -0
- hydpy/docs/sphinx/integrationtest_extension.py +104 -0
- hydpy/docs/sphinx/projectstructure_extension.py +58 -0
- hydpy/docs/sphinx/submodelgraph_extension.py +53 -0
- hydpy/exe/__init__.py +0 -0
- hydpy/exe/commandtools.py +651 -0
- hydpy/exe/hyd.py +277 -0
- hydpy/exe/modelimports.py +41 -0
- hydpy/exe/replacetools.py +216 -0
- hydpy/exe/servertools.py +2348 -0
- hydpy/exe/xmltools.py +3280 -0
- hydpy/interfaces/__init__.py +0 -0
- hydpy/interfaces/aetinterfaces.py +94 -0
- hydpy/interfaces/dischargeinterfaces.py +45 -0
- hydpy/interfaces/petinterfaces.py +117 -0
- hydpy/interfaces/precipinterfaces.py +42 -0
- hydpy/interfaces/radiationinterfaces.py +79 -0
- hydpy/interfaces/rconcinterfaces.py +30 -0
- hydpy/interfaces/routinginterfaces.py +324 -0
- hydpy/interfaces/soilinterfaces.py +96 -0
- hydpy/interfaces/stateinterfaces.py +98 -0
- hydpy/interfaces/tempinterfaces.py +46 -0
- hydpy/models/__init__.py +0 -0
- hydpy/models/arma/__init__.py +14 -0
- hydpy/models/arma/arma_control.py +383 -0
- hydpy/models/arma/arma_derived.py +204 -0
- hydpy/models/arma/arma_fluxes.py +41 -0
- hydpy/models/arma/arma_inlets.py +11 -0
- hydpy/models/arma/arma_logs.py +19 -0
- hydpy/models/arma/arma_model.py +461 -0
- hydpy/models/arma/arma_outlets.py +11 -0
- hydpy/models/arma_rimorido.py +381 -0
- hydpy/models/conv/__init__.py +12 -0
- hydpy/models/conv/conv_control.py +303 -0
- hydpy/models/conv/conv_derived.py +271 -0
- hydpy/models/conv/conv_fluxes.py +54 -0
- hydpy/models/conv/conv_inlets.py +11 -0
- hydpy/models/conv/conv_model.py +687 -0
- hydpy/models/conv/conv_outlets.py +11 -0
- hydpy/models/conv_idw.py +120 -0
- hydpy/models/conv_idw_ed.py +184 -0
- hydpy/models/conv_nn.py +112 -0
- hydpy/models/dam/__init__.py +16 -0
- hydpy/models/dam/dam_aides.py +17 -0
- hydpy/models/dam/dam_control.py +346 -0
- hydpy/models/dam/dam_derived.py +559 -0
- hydpy/models/dam/dam_factors.py +46 -0
- hydpy/models/dam/dam_fluxes.py +179 -0
- hydpy/models/dam/dam_inlets.py +29 -0
- hydpy/models/dam/dam_logs.py +52 -0
- hydpy/models/dam/dam_model.py +5011 -0
- hydpy/models/dam/dam_outlets.py +23 -0
- hydpy/models/dam/dam_receivers.py +41 -0
- hydpy/models/dam/dam_senders.py +23 -0
- hydpy/models/dam/dam_solver.py +75 -0
- hydpy/models/dam/dam_states.py +11 -0
- hydpy/models/dam_llake.py +499 -0
- hydpy/models/dam_lreservoir.py +548 -0
- hydpy/models/dam_lretention.py +343 -0
- hydpy/models/dam_pump.py +278 -0
- hydpy/models/dam_pump_sluice.py +339 -0
- hydpy/models/dam_sluice.py +319 -0
- hydpy/models/dam_v001.py +1127 -0
- hydpy/models/dam_v002.py +381 -0
- hydpy/models/dam_v003.py +422 -0
- hydpy/models/dam_v004.py +665 -0
- hydpy/models/dam_v005.py +479 -0
- hydpy/models/dummy/__init__.py +15 -0
- hydpy/models/dummy/dummy_control.py +22 -0
- hydpy/models/dummy/dummy_fluxes.py +11 -0
- hydpy/models/dummy/dummy_inlets.py +11 -0
- hydpy/models/dummy/dummy_inputs.py +41 -0
- hydpy/models/dummy/dummy_model.py +196 -0
- hydpy/models/dummy/dummy_outlets.py +11 -0
- hydpy/models/dummy_interceptedwater.py +85 -0
- hydpy/models/dummy_node2node.py +83 -0
- hydpy/models/dummy_snowalbedo.py +84 -0
- hydpy/models/dummy_snowcover.py +84 -0
- hydpy/models/dummy_snowycanopy.py +86 -0
- hydpy/models/dummy_soilwater.py +85 -0
- hydpy/models/evap/__init__.py +13 -0
- hydpy/models/evap/evap_control.py +354 -0
- hydpy/models/evap/evap_derived.py +236 -0
- hydpy/models/evap/evap_factors.py +188 -0
- hydpy/models/evap/evap_fixed.py +68 -0
- hydpy/models/evap/evap_fluxes.py +150 -0
- hydpy/models/evap/evap_inputs.py +54 -0
- hydpy/models/evap/evap_logs.py +91 -0
- hydpy/models/evap/evap_masks.py +48 -0
- hydpy/models/evap/evap_model.py +9170 -0
- hydpy/models/evap/evap_parameters.py +149 -0
- hydpy/models/evap/evap_sequences.py +32 -0
- hydpy/models/evap/evap_states.py +18 -0
- hydpy/models/evap_aet_hbv96.py +372 -0
- hydpy/models/evap_aet_minhas.py +331 -0
- hydpy/models/evap_aet_morsim.py +627 -0
- hydpy/models/evap_pet_ambav1.py +483 -0
- hydpy/models/evap_pet_hbv96.py +147 -0
- hydpy/models/evap_pet_m.py +94 -0
- hydpy/models/evap_pet_mlc.py +107 -0
- hydpy/models/evap_ret_fao56.py +265 -0
- hydpy/models/evap_ret_io.py +74 -0
- hydpy/models/evap_ret_tw2002.py +165 -0
- hydpy/models/exch/__init__.py +14 -0
- hydpy/models/exch/exch_control.py +262 -0
- hydpy/models/exch/exch_derived.py +36 -0
- hydpy/models/exch/exch_factors.py +26 -0
- hydpy/models/exch/exch_fluxes.py +48 -0
- hydpy/models/exch/exch_inlets.py +11 -0
- hydpy/models/exch/exch_logs.py +12 -0
- hydpy/models/exch/exch_model.py +451 -0
- hydpy/models/exch/exch_outlets.py +17 -0
- hydpy/models/exch/exch_receivers.py +17 -0
- hydpy/models/exch_branch_hbv96.py +186 -0
- hydpy/models/exch_waterlevel.py +73 -0
- hydpy/models/exch_weir_hbv96.py +609 -0
- hydpy/models/ga/__init__.py +14 -0
- hydpy/models/ga/ga_aides.py +17 -0
- hydpy/models/ga/ga_control.py +208 -0
- hydpy/models/ga/ga_derived.py +77 -0
- hydpy/models/ga/ga_fluxes.py +83 -0
- hydpy/models/ga/ga_inputs.py +26 -0
- hydpy/models/ga/ga_logs.py +17 -0
- hydpy/models/ga/ga_model.py +2952 -0
- hydpy/models/ga/ga_states.py +87 -0
- hydpy/models/ga_garto.py +1001 -0
- hydpy/models/ga_garto_submodel1.py +79 -0
- hydpy/models/gland/__init__.py +14 -0
- hydpy/models/gland/gland_control.py +90 -0
- hydpy/models/gland/gland_derived.py +113 -0
- hydpy/models/gland/gland_fluxes.py +137 -0
- hydpy/models/gland/gland_inputs.py +12 -0
- hydpy/models/gland/gland_model.py +1439 -0
- hydpy/models/gland/gland_outlets.py +11 -0
- hydpy/models/gland/gland_states.py +90 -0
- hydpy/models/gland_gr4.py +501 -0
- hydpy/models/gland_gr5.py +463 -0
- hydpy/models/gland_gr6.py +487 -0
- hydpy/models/hland/__init__.py +20 -0
- hydpy/models/hland/hland_aides.py +19 -0
- hydpy/models/hland/hland_constants.py +37 -0
- hydpy/models/hland/hland_control.py +1530 -0
- hydpy/models/hland/hland_derived.py +683 -0
- hydpy/models/hland/hland_factors.py +57 -0
- hydpy/models/hland/hland_fixed.py +42 -0
- hydpy/models/hland/hland_fluxes.py +279 -0
- hydpy/models/hland/hland_inputs.py +19 -0
- hydpy/models/hland/hland_masks.py +107 -0
- hydpy/models/hland/hland_model.py +4664 -0
- hydpy/models/hland/hland_outlets.py +11 -0
- hydpy/models/hland/hland_parameters.py +227 -0
- hydpy/models/hland/hland_sequences.py +382 -0
- hydpy/models/hland/hland_states.py +236 -0
- hydpy/models/hland_96.py +1812 -0
- hydpy/models/hland_96c.py +1196 -0
- hydpy/models/hland_96p.py +1204 -0
- hydpy/models/kinw/__init__.py +18 -0
- hydpy/models/kinw/kinw_aides.py +306 -0
- hydpy/models/kinw/kinw_control.py +270 -0
- hydpy/models/kinw/kinw_derived.py +197 -0
- hydpy/models/kinw/kinw_fixed.py +33 -0
- hydpy/models/kinw/kinw_fluxes.py +37 -0
- hydpy/models/kinw/kinw_inlets.py +11 -0
- hydpy/models/kinw/kinw_model.py +3026 -0
- hydpy/models/kinw/kinw_outlets.py +11 -0
- hydpy/models/kinw/kinw_solver.py +45 -0
- hydpy/models/kinw/kinw_states.py +17 -0
- hydpy/models/kinw_williams.py +1299 -0
- hydpy/models/kinw_williams_ext.py +768 -0
- hydpy/models/lland/__init__.py +42 -0
- hydpy/models/lland/lland_aides.py +38 -0
- hydpy/models/lland/lland_constants.py +88 -0
- hydpy/models/lland/lland_control.py +1329 -0
- hydpy/models/lland/lland_derived.py +380 -0
- hydpy/models/lland/lland_factors.py +18 -0
- hydpy/models/lland/lland_fixed.py +128 -0
- hydpy/models/lland/lland_fluxes.py +626 -0
- hydpy/models/lland/lland_inlets.py +12 -0
- hydpy/models/lland/lland_inputs.py +33 -0
- hydpy/models/lland/lland_logs.py +17 -0
- hydpy/models/lland/lland_masks.py +212 -0
- hydpy/models/lland/lland_model.py +7690 -0
- hydpy/models/lland/lland_outlets.py +12 -0
- hydpy/models/lland/lland_parameters.py +195 -0
- hydpy/models/lland/lland_sequences.py +67 -0
- hydpy/models/lland/lland_states.py +280 -0
- hydpy/models/lland_dd.py +2270 -0
- hydpy/models/lland_knauf.py +2156 -0
- hydpy/models/lland_knauf_ic.py +1920 -0
- hydpy/models/meteo/__init__.py +12 -0
- hydpy/models/meteo/meteo_control.py +154 -0
- hydpy/models/meteo/meteo_derived.py +159 -0
- hydpy/models/meteo/meteo_factors.py +88 -0
- hydpy/models/meteo/meteo_fixed.py +19 -0
- hydpy/models/meteo/meteo_fluxes.py +46 -0
- hydpy/models/meteo/meteo_inputs.py +47 -0
- hydpy/models/meteo/meteo_logs.py +30 -0
- hydpy/models/meteo/meteo_model.py +2904 -0
- hydpy/models/meteo/meteo_parameters.py +14 -0
- hydpy/models/meteo/meteo_sequences.py +22 -0
- hydpy/models/meteo_clear_glob_io.py +77 -0
- hydpy/models/meteo_glob_fao56.py +217 -0
- hydpy/models/meteo_glob_io.py +68 -0
- hydpy/models/meteo_glob_morsim.py +444 -0
- hydpy/models/meteo_precip_io.py +76 -0
- hydpy/models/meteo_psun_sun_glob_io.py +83 -0
- hydpy/models/meteo_sun_fao56.py +188 -0
- hydpy/models/meteo_sun_morsim.py +466 -0
- hydpy/models/meteo_temp_io.py +76 -0
- hydpy/models/musk/__init__.py +15 -0
- hydpy/models/musk/musk_control.py +328 -0
- hydpy/models/musk/musk_derived.py +32 -0
- hydpy/models/musk/musk_factors.py +53 -0
- hydpy/models/musk/musk_fluxes.py +24 -0
- hydpy/models/musk/musk_inlets.py +11 -0
- hydpy/models/musk/musk_masks.py +15 -0
- hydpy/models/musk/musk_model.py +838 -0
- hydpy/models/musk/musk_outlets.py +11 -0
- hydpy/models/musk/musk_sequences.py +88 -0
- hydpy/models/musk/musk_solver.py +68 -0
- hydpy/models/musk/musk_states.py +64 -0
- hydpy/models/musk_classic.py +228 -0
- hydpy/models/musk_mct.py +1247 -0
- hydpy/models/rconc/__init__.py +12 -0
- hydpy/models/rconc/rconc_control.py +473 -0
- hydpy/models/rconc/rconc_derived.py +76 -0
- hydpy/models/rconc/rconc_fluxes.py +19 -0
- hydpy/models/rconc/rconc_logs.py +74 -0
- hydpy/models/rconc/rconc_model.py +260 -0
- hydpy/models/rconc/rconc_states.py +11 -0
- hydpy/models/rconc_nash.py +48 -0
- hydpy/models/rconc_uh.py +53 -0
- hydpy/models/sw1d/__init__.py +17 -0
- hydpy/models/sw1d/sw1d_control.py +356 -0
- hydpy/models/sw1d/sw1d_derived.py +85 -0
- hydpy/models/sw1d/sw1d_factors.py +78 -0
- hydpy/models/sw1d/sw1d_fixed.py +12 -0
- hydpy/models/sw1d/sw1d_fluxes.py +55 -0
- hydpy/models/sw1d/sw1d_inlets.py +17 -0
- hydpy/models/sw1d/sw1d_model.py +3385 -0
- hydpy/models/sw1d/sw1d_outlets.py +11 -0
- hydpy/models/sw1d/sw1d_receivers.py +11 -0
- hydpy/models/sw1d/sw1d_senders.py +11 -0
- hydpy/models/sw1d/sw1d_states.py +23 -0
- hydpy/models/sw1d_channel.py +2051 -0
- hydpy/models/sw1d_gate_out.py +599 -0
- hydpy/models/sw1d_lias.py +105 -0
- hydpy/models/sw1d_lias_sluice.py +531 -0
- hydpy/models/sw1d_network.py +1219 -0
- hydpy/models/sw1d_pump.py +448 -0
- hydpy/models/sw1d_q_in.py +79 -0
- hydpy/models/sw1d_q_out.py +81 -0
- hydpy/models/sw1d_storage.py +78 -0
- hydpy/models/sw1d_weir_out.py +75 -0
- hydpy/models/test/__init__.py +14 -0
- hydpy/models/test/test_control.py +28 -0
- hydpy/models/test/test_fluxes.py +17 -0
- hydpy/models/test/test_model.py +201 -0
- hydpy/models/test/test_solver.py +48 -0
- hydpy/models/test/test_states.py +17 -0
- hydpy/models/test_discontinous.py +46 -0
- hydpy/models/test_stiff0d.py +47 -0
- hydpy/models/test_stiff1d.py +42 -0
- hydpy/models/whmod/__init__.py +21 -0
- hydpy/models/whmod/whmod_constants.py +77 -0
- hydpy/models/whmod/whmod_control.py +333 -0
- hydpy/models/whmod/whmod_derived.py +210 -0
- hydpy/models/whmod/whmod_factors.py +9 -0
- hydpy/models/whmod/whmod_fluxes.py +105 -0
- hydpy/models/whmod/whmod_inputs.py +15 -0
- hydpy/models/whmod/whmod_masks.py +178 -0
- hydpy/models/whmod/whmod_model.py +2091 -0
- hydpy/models/whmod/whmod_parameters.py +155 -0
- hydpy/models/whmod/whmod_sequences.py +193 -0
- hydpy/models/whmod/whmod_states.py +73 -0
- hydpy/models/whmod_rural.py +794 -0
- hydpy/models/whmod_urban.py +1011 -0
- hydpy/models/wland/__init__.py +43 -0
- hydpy/models/wland/wland_aides.py +55 -0
- hydpy/models/wland/wland_constants.py +103 -0
- hydpy/models/wland/wland_control.py +508 -0
- hydpy/models/wland/wland_derived.py +330 -0
- hydpy/models/wland/wland_factors.py +11 -0
- hydpy/models/wland/wland_fixed.py +12 -0
- hydpy/models/wland/wland_fluxes.py +166 -0
- hydpy/models/wland/wland_inputs.py +33 -0
- hydpy/models/wland/wland_masks.py +54 -0
- hydpy/models/wland/wland_model.py +3755 -0
- hydpy/models/wland/wland_outlets.py +11 -0
- hydpy/models/wland/wland_parameters.py +214 -0
- hydpy/models/wland/wland_sequences.py +108 -0
- hydpy/models/wland/wland_solver.py +45 -0
- hydpy/models/wland/wland_states.py +56 -0
- hydpy/models/wland_gd.py +888 -0
- hydpy/models/wland_wag.py +1244 -0
- hydpy/models/wq/__init__.py +14 -0
- hydpy/models/wq/wq_control.py +117 -0
- hydpy/models/wq/wq_derived.py +182 -0
- hydpy/models/wq/wq_factors.py +79 -0
- hydpy/models/wq/wq_fluxes.py +17 -0
- hydpy/models/wq/wq_model.py +1889 -0
- hydpy/models/wq_trapeze.py +168 -0
- hydpy/models/wq_trapeze_strickler.py +101 -0
- hydpy/models/wq_walrus.py +57 -0
- hydpy/py.typed +0 -0
- hydpy/tests/.coveragerc +22 -0
- hydpy/tests/__init__.py +0 -0
- hydpy/tests/check_consistency.py +32 -0
- hydpy/tests/hydpydoctestcustomize.pth +1 -0
- hydpy/tests/hydpydoctestcustomize.py +15 -0
- hydpy/tests/iotesting/__init__.py +0 -0
- hydpy/tests/run_doctests.py +233 -0
- hydpy-6.2.dev1.data/scripts/hyd.py +277 -0
- hydpy-6.2.dev1.dist-info/LICENSE +165 -0
- hydpy-6.2.dev1.dist-info/METADATA +163 -0
- hydpy-6.2.dev1.dist-info/RECORD +890 -0
- hydpy-6.2.dev1.dist-info/WHEEL +5 -0
- hydpy-6.2.dev1.dist-info/licenses_hydpy_installer.txt +42 -0
- hydpy-6.2.dev1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
# pylint: disable=line-too-long, unused-wildcard-import
|
|
2
|
+
"""
|
|
3
|
+
.. _`German Federal Institute of Hydrology (BfG)`: https://www.bafg.de/EN
|
|
4
|
+
|
|
5
|
+
|exch_weir_hbv96| implements the general weir formula. We implemented it on behalf of
|
|
6
|
+
the `German Federal Institute of Hydrology (BfG)`_ to connect different |dam_llake|
|
|
7
|
+
instances (lake models), enabling them to exchange water in both directions based on
|
|
8
|
+
water level differences. This specific combination models some huge, connected
|
|
9
|
+
(sub)lakes of the Rhine basin similar to HBV96 :cite:p:`ref-Lindstrom1997HBV96`.
|
|
10
|
+
Combinations with other models providing (something like) water level information and
|
|
11
|
+
allowing for an additional inflow that can be positive and negative are possible.
|
|
12
|
+
|
|
13
|
+
Integration tests
|
|
14
|
+
=================
|
|
15
|
+
|
|
16
|
+
.. how_to_understand_integration_tests::
|
|
17
|
+
|
|
18
|
+
We perform all integration tests over a month with a simulation step of one day:
|
|
19
|
+
|
|
20
|
+
>>> from hydpy import Element, FusedVariable, Nodes, PPoly, prepare_model, pub
|
|
21
|
+
>>> pub.timegrids = "2000-01-01", "2000-02-01", "1d"
|
|
22
|
+
|
|
23
|
+
The following examples demonstrate how |exch_weir_hbv96| interacts with lake models
|
|
24
|
+
like |dam_llake|. Therefore, we must set up one |exch_weir_hbv96| instance and two
|
|
25
|
+
|dam_llake| instances.
|
|
26
|
+
|
|
27
|
+
First, we define the eight required |Node| objects:
|
|
28
|
+
|
|
29
|
+
* `inflow1` and `inflow2` pass the inflow into the first and the second lake.
|
|
30
|
+
* `outflow1` and `outflow2` receive the lakes' outflows.
|
|
31
|
+
* `overflow1` and `overflow2` exchange water between the lakes.
|
|
32
|
+
* `waterlevel1` and `waterlevel2` inform the exchange model about the lakes' current
|
|
33
|
+
water levels.
|
|
34
|
+
|
|
35
|
+
We define the |Node.variable| type of all nodes explicitly. For the inflow and outflow
|
|
36
|
+
nodes, we stick to the default by using the string literal "Q", telling |dam_llake| to
|
|
37
|
+
connect these nodes to the inlet sequence |dam_inlets.Q| and outlet sequence
|
|
38
|
+
|dam_outlets.Q|, respectively:
|
|
39
|
+
|
|
40
|
+
>>> inflow1, inflow2 = Nodes("inflow1", "inflow2", defaultvariable="Q")
|
|
41
|
+
>>> outflow1, outflow2 = Nodes("outflow1", "outflow2", defaultvariable="Q")
|
|
42
|
+
|
|
43
|
+
The overflow nodes do not connect both lakes directly but the lakes with the exchange
|
|
44
|
+
model. Therefore, we define a |FusedVariable| that combines the aliases of the outlet
|
|
45
|
+
sequence |exch_outlets.Exchange| of |exch_weir_hbv96| and the inlet sequence
|
|
46
|
+
|dam_inlets.E| of |dam_llake|:
|
|
47
|
+
|
|
48
|
+
>>> from hydpy.aliases import exch_outlets_Exchange, dam_inlets_E
|
|
49
|
+
>>> Exchange = FusedVariable("Exchange", exch_outlets_Exchange, dam_inlets_E)
|
|
50
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable=Exchange)
|
|
51
|
+
|
|
52
|
+
Next, we define a |FusedVariable| that combines the aliases of the receiver sequence
|
|
53
|
+
|exch_receivers.WaterLevels| of |exch_weir_hbv96| and the output sequence
|
|
54
|
+
|dam_factors.WaterLevel| of |dam_llake|:
|
|
55
|
+
|
|
56
|
+
>>> from hydpy.aliases import exch_receivers_WaterLevels, dam_factors_WaterLevel
|
|
57
|
+
>>> WaterLevel = FusedVariable("WaterLevel", exch_receivers_WaterLevels, dam_factors_WaterLevel)
|
|
58
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
59
|
+
|
|
60
|
+
Now, we prepare the two |Element| objects holding the |dam_llake| instances. The
|
|
61
|
+
configuration is similar to the one in the documentation on |dam_llake|, except in
|
|
62
|
+
connecting `waterlevel1` and `waterlevel2` as additional output nodes:
|
|
63
|
+
|
|
64
|
+
>>> lake1 = Element("lake1",
|
|
65
|
+
... inlets=(inflow1, overflow1),
|
|
66
|
+
... outlets=outflow1,
|
|
67
|
+
... outputs=waterlevel1)
|
|
68
|
+
>>> lake2 = Element("lake2",
|
|
69
|
+
... inlets=(inflow2, overflow2),
|
|
70
|
+
... outlets=outflow2,
|
|
71
|
+
... outputs=waterlevel2)
|
|
72
|
+
|
|
73
|
+
From the perspective of the exchange element, `waterlevel1` and `waterlevel2` are
|
|
74
|
+
receiver nodes, while `overflow1` and `overflow2` are outlet nodes. At the beginning
|
|
75
|
+
of each simulation step, |exch_weir_hbv96| receives water level information from both
|
|
76
|
+
lakes. Then, it calculates the correct exchange and sends it to both lakes via the
|
|
77
|
+
overflow nodes, but with different signs. If the first lake's water level is higher,
|
|
78
|
+
it passes a negative value to `overflow1` (the first lake loses water) and a positive
|
|
79
|
+
value to `overflow2` (the second lake gains water), and vice versa:
|
|
80
|
+
|
|
81
|
+
>>> exchange = Element("exchange",
|
|
82
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
83
|
+
... outlets=(overflow1, overflow2))
|
|
84
|
+
|
|
85
|
+
In our test configuration, the nodes' names and the order in which we pass them to the
|
|
86
|
+
constructor of class |Element| agree with the nodes' target lakes. This practice seems
|
|
87
|
+
advisable for keeping clarity, but it is not a technical requirement. The
|
|
88
|
+
documentation on class |exch_weir_hbv96.Model| explains the internal sorting mechanisms
|
|
89
|
+
and plausibility checks underlying the connection-related functionalities of
|
|
90
|
+
|exch_weir_hbv96|.
|
|
91
|
+
|
|
92
|
+
We parameterise both lake models identically. All of the following values stem from the
|
|
93
|
+
documentation on |dam_llake|. We will use them in all examples:
|
|
94
|
+
|
|
95
|
+
>>> lake1.model = prepare_model("dam_llake")
|
|
96
|
+
>>> lake2.model = prepare_model("dam_llake")
|
|
97
|
+
>>> from numpy import inf
|
|
98
|
+
>>> for model_ in (lake1.model, lake2.model):
|
|
99
|
+
... control = model_.parameters.control
|
|
100
|
+
... control.catchmentarea(86.4)
|
|
101
|
+
... control.surfacearea(1.44)
|
|
102
|
+
... control.correctionprecipitation(1.2)
|
|
103
|
+
... control.correctionevaporation(1.2)
|
|
104
|
+
... control.weightevaporation(0.8)
|
|
105
|
+
... control.thresholdevaporation(0.0)
|
|
106
|
+
... control.dischargetolerance(0.1)
|
|
107
|
+
... control.toleranceevaporation(0.001)
|
|
108
|
+
... control.allowedwaterleveldrop(inf)
|
|
109
|
+
... control.watervolume2waterlevel(PPoly.from_data(xs=[0.0, 1.0], ys=[0.0, 1.0]))
|
|
110
|
+
... control.pars.update()
|
|
111
|
+
|
|
112
|
+
Now, we prepare the exchange model. We will use common values for the flow coefficient
|
|
113
|
+
and exponent throughout the following examples:
|
|
114
|
+
|
|
115
|
+
>>> from hydpy.models.exch_weir_hbv96 import *
|
|
116
|
+
>>> parameterstep("1d")
|
|
117
|
+
>>> flowcoefficient(0.62)
|
|
118
|
+
>>> flowexponent(1.5)
|
|
119
|
+
>>> exchange.model = model
|
|
120
|
+
|
|
121
|
+
An |IntegrationTest| object will help us to perform the individual examples:
|
|
122
|
+
|
|
123
|
+
>>> from hydpy.core.testtools import IntegrationTest
|
|
124
|
+
>>> test = IntegrationTest(exchange)
|
|
125
|
+
>>> test.plotting_options.axis1 = (factors.waterlevels,)
|
|
126
|
+
>>> test.plotting_options.axis2 = (fluxes.potentialexchange, fluxes.actualexchange)
|
|
127
|
+
|
|
128
|
+
We set both lakes' inflow to zero for simplicity:
|
|
129
|
+
|
|
130
|
+
>>> inflow1.sequences.sim.series = 0.0
|
|
131
|
+
>>> inflow2.sequences.sim.series = 0.0
|
|
132
|
+
|
|
133
|
+
The only difference between both lakes is their initial state. The first lake starts
|
|
134
|
+
empty, and the second starts with a water volume of 1 million m³. Note that
|
|
135
|
+
|exch_weir_hbv96| requires the same information. We must give it to the log sequence
|
|
136
|
+
|LoggedWaterLevels|:
|
|
137
|
+
|
|
138
|
+
>>> test.inits = [(lake1.model.sequences.states.watervolume, 0.0),
|
|
139
|
+
... (lake1.model.sequences.logs.loggedadjustedevaporation, 0.0),
|
|
140
|
+
... (lake2.model.sequences.states.watervolume, 1.0),
|
|
141
|
+
... (lake2.model.sequences.logs.loggedadjustedevaporation, 0.0),
|
|
142
|
+
... (logs.loggedwaterlevels, (0.0, 1.0))]
|
|
143
|
+
|
|
144
|
+
.. _exch_weir_hbv96_base_scenario:
|
|
145
|
+
|
|
146
|
+
base scenario
|
|
147
|
+
_____________
|
|
148
|
+
|
|
149
|
+
Our base scenario defines a small crest width of 0.2 meters, enabling only limited
|
|
150
|
+
water exchange:
|
|
151
|
+
|
|
152
|
+
>>> crestwidth(0.2)
|
|
153
|
+
|
|
154
|
+
The crest height of 0.0 m and the allowed exchange of 5.0 m³/s are so low and high,
|
|
155
|
+
respectively, that they do not affect the following results:
|
|
156
|
+
|
|
157
|
+
>>> crestheight(0.0)
|
|
158
|
+
>>> allowedexchange(5.0)
|
|
159
|
+
|
|
160
|
+
We define a linear relationship between the water level and the outflow for both lakes:
|
|
161
|
+
|
|
162
|
+
>>> for model_ in (lake1.model, lake2.model):
|
|
163
|
+
... model_.parameters.control.waterlevel2flooddischarge(
|
|
164
|
+
... PPoly.from_data(xs=[0.0, 1.0], ys=[0.0, 2.0]))
|
|
165
|
+
|
|
166
|
+
The following results show that the first lake's water level drops fast due to the
|
|
167
|
+
release of water to the second lake and its outlet. The second lake receives this
|
|
168
|
+
overflow throughout the simulation period but with a decreasing tendency. Hence, the
|
|
169
|
+
water level rises initially but finally falls again because of the lake's outflow:
|
|
170
|
+
|
|
171
|
+
.. integration-test::
|
|
172
|
+
|
|
173
|
+
>>> test("exch_weir_hbv96_base_scenario")
|
|
174
|
+
| date | waterlevels | deltawaterlevel | potentialexchange | actualexchange | inflow1 | inflow2 | outflow1 | outflow2 | overflow1 | overflow2 | waterlevel1 | waterlevel2 |
|
|
175
|
+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
176
|
+
| 2000-01-01 00:00:00 | 0.0 1.0 | -1.0 | -0.124 | -0.124 | 0.0 | 0.0 | 0.010123 | 1.826616 | 0.124 | -0.124 | 0.009839 | 0.831467 |
|
|
177
|
+
| 2000-01-02 00:00:00 | 0.009839 0.831467 | -0.821628 | -0.092349 | -0.092349 | 0.0 | 0.0 | 0.025611 | 1.519648 | 0.092349 | -0.092349 | 0.015605 | 0.69219 |
|
|
178
|
+
| 2000-01-03 00:00:00 | 0.015605 0.69219 | -0.676585 | -0.069009 | -0.069009 | 0.0 | 0.0 | 0.034296 | 1.265739 | 0.069009 | -0.069009 | 0.018604 | 0.576868 |
|
|
179
|
+
| 2000-01-04 00:00:00 | 0.018604 0.576868 | -0.558264 | -0.051723 | -0.051723 | 0.0 | 0.0 | 0.038391 | 1.055333 | 0.051723 | -0.051723 | 0.019756 | 0.481218 |
|
|
180
|
+
| 2000-01-05 00:00:00 | 0.019756 0.481218 | -0.461462 | -0.038871 | -0.038871 | 0.0 | 0.0 | 0.039457 | 0.880699 | 0.038871 | -0.038871 | 0.019706 | 0.401767 |
|
|
181
|
+
| 2000-01-06 00:00:00 | 0.019706 0.401767 | -0.382062 | -0.029283 | -0.029283 | 0.0 | 0.0 | 0.038587 | 0.735551 | 0.029283 | -0.029283 | 0.018902 | 0.335686 |
|
|
182
|
+
| 2000-01-07 00:00:00 | 0.018902 0.335686 | -0.316784 | -0.022109 | -0.022109 | 0.0 | 0.0 | 0.036526 | 0.614762 | 0.022109 | -0.022109 | 0.017656 | 0.28066 |
|
|
183
|
+
| 2000-01-08 00:00:00 | 0.017656 0.28066 | -0.263004 | -0.016725 | -0.016725 | 0.0 | 0.0 | 0.033799 | 0.514134 | 0.016725 | -0.016725 | 0.016181 | 0.234794 |
|
|
184
|
+
| 2000-01-09 00:00:00 | 0.016181 0.234794 | -0.218613 | -0.012675 | -0.012675 | 0.0 | 0.0 | 0.030759 | 0.43022 | 0.012675 | -0.012675 | 0.014619 | 0.196528 |
|
|
185
|
+
| 2000-01-10 00:00:00 | 0.014619 0.196528 | -0.181909 | -0.009621 | -0.009621 | 0.0 | 0.0 | 0.02764 | 0.360182 | 0.009621 | -0.009621 | 0.013062 | 0.164577 |
|
|
186
|
+
| 2000-01-11 00:00:00 | 0.013062 0.164577 | -0.151515 | -0.007313 | -0.007313 | 0.0 | 0.0 | 0.024592 | 0.301685 | 0.007313 | -0.007313 | 0.011569 | 0.137879 |
|
|
187
|
+
| 2000-01-12 00:00:00 | 0.011569 0.137879 | -0.126311 | -0.005566 | -0.005566 | 0.0 | 0.0 | 0.021707 | 0.252792 | 0.005566 | -0.005566 | 0.010174 | 0.115557 |
|
|
188
|
+
| 2000-01-13 00:00:00 | 0.010174 0.115557 | -0.105383 | -0.004242 | -0.004242 | 0.0 | 0.0 | 0.019037 | 0.2119 | 0.004242 | -0.004242 | 0.008896 | 0.096883 |
|
|
189
|
+
| 2000-01-14 00:00:00 | 0.008896 0.096883 | -0.087987 | -0.003236 | -0.003236 | 0.0 | 0.0 | 0.016607 | 0.177682 | 0.003236 | -0.003236 | 0.007741 | 0.081251 |
|
|
190
|
+
| 2000-01-15 00:00:00 | 0.007741 0.081251 | -0.07351 | -0.002471 | -0.002471 | 0.0 | 0.0 | 0.014422 | 0.149034 | 0.002471 | -0.002471 | 0.006708 | 0.068161 |
|
|
191
|
+
| 2000-01-16 00:00:00 | 0.006708 0.068161 | -0.061453 | -0.001889 | -0.001889 | 0.0 | 0.0 | 0.012478 | 0.125039 | 0.001889 | -0.001889 | 0.005793 | 0.057195 |
|
|
192
|
+
| 2000-01-17 00:00:00 | 0.005793 0.057195 | -0.051401 | -0.001445 | -0.001445 | 0.0 | 0.0 | 0.010761 | 0.104933 | 0.001445 | -0.001445 | 0.004988 | 0.048004 |
|
|
193
|
+
| 2000-01-18 00:00:00 | 0.004988 0.048004 | -0.043015 | -0.001106 | -0.001106 | 0.0 | 0.0 | 0.009255 | 0.088079 | 0.001106 | -0.001106 | 0.004284 | 0.040298 |
|
|
194
|
+
| 2000-01-19 00:00:00 | 0.004284 0.040298 | -0.036013 | -0.000847 | -0.000847 | 0.0 | 0.0 | 0.00794 | 0.073947 | 0.000847 | -0.000847 | 0.003672 | 0.033836 |
|
|
195
|
+
| 2000-01-20 00:00:00 | 0.003672 0.033836 | -0.030164 | -0.00065 | -0.00065 | 0.0 | 0.0 | 0.006798 | 0.062094 | 0.00065 | -0.00065 | 0.00314 | 0.028415 |
|
|
196
|
+
| 2000-01-21 00:00:00 | 0.00314 0.028415 | -0.025274 | -0.000498 | -0.000498 | 0.0 | 0.0 | 0.00581 | 0.052149 | 0.000498 | -0.000498 | 0.002681 | 0.023866 |
|
|
197
|
+
| 2000-01-22 00:00:00 | 0.002681 0.023866 | -0.021184 | -0.000382 | -0.000382 | 0.0 | 0.0 | 0.004957 | 0.043804 | 0.000382 | -0.000382 | 0.002286 | 0.020048 |
|
|
198
|
+
| 2000-01-23 00:00:00 | 0.002286 0.020048 | -0.017762 | -0.000294 | -0.000294 | 0.0 | 0.0 | 0.004224 | 0.036799 | 0.000294 | -0.000294 | 0.001947 | 0.016843 |
|
|
199
|
+
| 2000-01-24 00:00:00 | 0.001947 0.016843 | -0.014897 | -0.000225 | -0.000225 | 0.0 | 0.0 | 0.003595 | 0.030918 | 0.000225 | -0.000225 | 0.001655 | 0.014153 |
|
|
200
|
+
| 2000-01-25 00:00:00 | 0.001655 0.014153 | -0.012497 | -0.000173 | -0.000173 | 0.0 | 0.0 | 0.003056 | 0.02598 | 0.000173 | -0.000173 | 0.001406 | 0.011893 |
|
|
201
|
+
| 2000-01-26 00:00:00 | 0.001406 0.011893 | -0.010486 | -0.000133 | -0.000133 | 0.0 | 0.0 | 0.002595 | 0.021833 | 0.000133 | -0.000133 | 0.001194 | 0.009995 |
|
|
202
|
+
| 2000-01-27 00:00:00 | 0.001194 0.009995 | -0.008801 | -0.000102 | -0.000102 | 0.0 | 0.0 | 0.002202 | 0.018354 | 0.000102 | -0.000102 | 0.001012 | 0.0084 |
|
|
203
|
+
| 2000-01-28 00:00:00 | 0.001012 0.0084 | -0.007388 | -0.000079 | -0.000079 | 0.0 | 0.0 | 0.001866 | 0.015426 | 0.000079 | -0.000079 | 0.000858 | 0.007061 |
|
|
204
|
+
| 2000-01-29 00:00:00 | 0.000858 0.007061 | -0.006203 | -0.000061 | -0.000061 | 0.0 | 0.0 | 0.001581 | 0.012967 | 0.000061 | -0.000061 | 0.000727 | 0.005935 |
|
|
205
|
+
| 2000-01-30 00:00:00 | 0.000727 0.005935 | -0.005209 | -0.000047 | -0.000047 | 0.0 | 0.0 | 0.001339 | 0.0109 | 0.000047 | -0.000047 | 0.000615 | 0.004989 |
|
|
206
|
+
| 2000-01-31 00:00:00 | 0.000615 0.004989 | -0.004374 | -0.000036 | -0.000036 | 0.0 | 0.0 | 0.001133 | 0.009163 | 0.000036 | -0.000036 | 0.00052 | 0.004195 |
|
|
207
|
+
|
|
208
|
+
.. _exch_weir_hbv96_crest_height:
|
|
209
|
+
|
|
210
|
+
crest height
|
|
211
|
+
____________
|
|
212
|
+
|
|
213
|
+
In this example, we increase the crest's width and, more importantly, set its height to
|
|
214
|
+
0.5 m, matching a water volume of 0.5 million m³:
|
|
215
|
+
|
|
216
|
+
>>> crestwidth(20.0)
|
|
217
|
+
>>> crestheight(0.5)
|
|
218
|
+
|
|
219
|
+
The crest height now influences the lakes' interaction significantly. For
|
|
220
|
+
clarification, we disallow both lakes to release any water:
|
|
221
|
+
|
|
222
|
+
>>> for model_ in (lake1.model, lake2.model):
|
|
223
|
+
... model_.parameters.control.waterlevel2flooddischarge(
|
|
224
|
+
... PPoly.from_data(xs=[0.0], ys=[0.0]))
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
Due to the identical parameter values of both models and the symmetrical initial
|
|
228
|
+
conditions of 0.0 and 1.0 million m³, both water levels move towards the defined crest
|
|
229
|
+
height asymptotically:
|
|
230
|
+
|
|
231
|
+
.. integration-test::
|
|
232
|
+
|
|
233
|
+
>>> test("exch_weir_hbv96_crest_height")
|
|
234
|
+
| date | waterlevels | deltawaterlevel | potentialexchange | actualexchange | inflow1 | inflow2 | outflow1 | outflow2 | overflow1 | overflow2 | waterlevel1 | waterlevel2 |
|
|
235
|
+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
236
|
+
| 2000-01-01 00:00:00 | 0.0 1.0 | -0.5 | -4.384062 | -4.384062 | 0.0 | 0.0 | 0.0 | 0.0 | 4.384062 | -4.384062 | 0.378783 | 0.621217 |
|
|
237
|
+
| 2000-01-02 00:00:00 | 0.378783 0.621217 | -0.121217 | -0.52332 | -0.52332 | 0.0 | 0.0 | 0.0 | 0.0 | 0.52332 | -0.52332 | 0.423998 | 0.576002 |
|
|
238
|
+
| 2000-01-03 00:00:00 | 0.423998 0.576002 | -0.076002 | -0.259813 | -0.259813 | 0.0 | 0.0 | 0.0 | 0.0 | 0.259813 | -0.259813 | 0.446446 | 0.553554 |
|
|
239
|
+
| 2000-01-04 00:00:00 | 0.446446 0.553554 | -0.053554 | -0.153679 | -0.153679 | 0.0 | 0.0 | 0.0 | 0.0 | 0.153679 | -0.153679 | 0.459723 | 0.540277 |
|
|
240
|
+
| 2000-01-05 00:00:00 | 0.459723 0.540277 | -0.040277 | -0.10023 | -0.10023 | 0.0 | 0.0 | 0.0 | 0.0 | 0.10023 | -0.10023 | 0.468383 | 0.531617 |
|
|
241
|
+
| 2000-01-06 00:00:00 | 0.468383 0.531617 | -0.031617 | -0.06971 | -0.06971 | 0.0 | 0.0 | 0.0 | 0.0 | 0.06971 | -0.06971 | 0.474406 | 0.525594 |
|
|
242
|
+
| 2000-01-07 00:00:00 | 0.474406 0.525594 | -0.025594 | -0.050772 | -0.050772 | 0.0 | 0.0 | 0.0 | 0.0 | 0.050772 | -0.050772 | 0.478793 | 0.521207 |
|
|
243
|
+
| 2000-01-08 00:00:00 | 0.478793 0.521207 | -0.021207 | -0.038295 | -0.038295 | 0.0 | 0.0 | 0.0 | 0.0 | 0.038295 | -0.038295 | 0.482102 | 0.517898 |
|
|
244
|
+
| 2000-01-09 00:00:00 | 0.482102 0.517898 | -0.017898 | -0.029692 | -0.029692 | 0.0 | 0.0 | 0.0 | 0.0 | 0.029692 | -0.029692 | 0.484667 | 0.515333 |
|
|
245
|
+
| 2000-01-10 00:00:00 | 0.484667 0.515333 | -0.015333 | -0.023543 | -0.023543 | 0.0 | 0.0 | 0.0 | 0.0 | 0.023543 | -0.023543 | 0.486701 | 0.513299 |
|
|
246
|
+
| 2000-01-11 00:00:00 | 0.486701 0.513299 | -0.013299 | -0.019017 | -0.019017 | 0.0 | 0.0 | 0.0 | 0.0 | 0.019017 | -0.019017 | 0.488344 | 0.511656 |
|
|
247
|
+
| 2000-01-12 00:00:00 | 0.488344 0.511656 | -0.011656 | -0.015604 | -0.015604 | 0.0 | 0.0 | 0.0 | 0.0 | 0.015604 | -0.015604 | 0.489692 | 0.510308 |
|
|
248
|
+
| 2000-01-13 00:00:00 | 0.489692 0.510308 | -0.010308 | -0.012976 | -0.012976 | 0.0 | 0.0 | 0.0 | 0.0 | 0.012976 | -0.012976 | 0.490814 | 0.509186 |
|
|
249
|
+
| 2000-01-14 00:00:00 | 0.490814 0.509186 | -0.009186 | -0.010918 | -0.010918 | 0.0 | 0.0 | 0.0 | 0.0 | 0.010918 | -0.010918 | 0.491757 | 0.508243 |
|
|
250
|
+
| 2000-01-15 00:00:00 | 0.491757 0.508243 | -0.008243 | -0.00928 | -0.00928 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00928 | -0.00928 | 0.492559 | 0.507441 |
|
|
251
|
+
| 2000-01-16 00:00:00 | 0.492559 0.507441 | -0.007441 | -0.00796 | -0.00796 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00796 | -0.00796 | 0.493246 | 0.506754 |
|
|
252
|
+
| 2000-01-17 00:00:00 | 0.493246 0.506754 | -0.006754 | -0.006882 | -0.006882 | 0.0 | 0.0 | 0.0 | 0.0 | 0.006882 | -0.006882 | 0.493841 | 0.506159 |
|
|
253
|
+
| 2000-01-18 00:00:00 | 0.493841 0.506159 | -0.006159 | -0.005994 | -0.005994 | 0.0 | 0.0 | 0.0 | 0.0 | 0.005994 | -0.005994 | 0.494359 | 0.505641 |
|
|
254
|
+
| 2000-01-19 00:00:00 | 0.494359 0.505641 | -0.005641 | -0.005254 | -0.005254 | 0.0 | 0.0 | 0.0 | 0.0 | 0.005254 | -0.005254 | 0.494813 | 0.505187 |
|
|
255
|
+
| 2000-01-20 00:00:00 | 0.494813 0.505187 | -0.005187 | -0.004633 | -0.004633 | 0.0 | 0.0 | 0.0 | 0.0 | 0.004633 | -0.004633 | 0.495213 | 0.504787 |
|
|
256
|
+
| 2000-01-21 00:00:00 | 0.495213 0.504787 | -0.004787 | -0.004107 | -0.004107 | 0.0 | 0.0 | 0.0 | 0.0 | 0.004107 | -0.004107 | 0.495568 | 0.504432 |
|
|
257
|
+
| 2000-01-22 00:00:00 | 0.495568 0.504432 | -0.004432 | -0.003659 | -0.003659 | 0.0 | 0.0 | 0.0 | 0.0 | 0.003659 | -0.003659 | 0.495884 | 0.504116 |
|
|
258
|
+
| 2000-01-23 00:00:00 | 0.495884 0.504116 | -0.004116 | -0.003274 | -0.003274 | 0.0 | 0.0 | 0.0 | 0.0 | 0.003274 | -0.003274 | 0.496167 | 0.503833 |
|
|
259
|
+
| 2000-01-24 00:00:00 | 0.496167 0.503833 | -0.003833 | -0.002943 | -0.002943 | 0.0 | 0.0 | 0.0 | 0.0 | 0.002943 | -0.002943 | 0.496421 | 0.503579 |
|
|
260
|
+
| 2000-01-25 00:00:00 | 0.496421 0.503579 | -0.003579 | -0.002655 | -0.002655 | 0.0 | 0.0 | 0.0 | 0.0 | 0.002655 | -0.002655 | 0.496651 | 0.503349 |
|
|
261
|
+
| 2000-01-26 00:00:00 | 0.496651 0.503349 | -0.003349 | -0.002404 | -0.002404 | 0.0 | 0.0 | 0.0 | 0.0 | 0.002404 | -0.002404 | 0.496858 | 0.503142 |
|
|
262
|
+
| 2000-01-27 00:00:00 | 0.496858 0.503142 | -0.003142 | -0.002184 | -0.002184 | 0.0 | 0.0 | 0.0 | 0.0 | 0.002184 | -0.002184 | 0.497047 | 0.502953 |
|
|
263
|
+
| 2000-01-28 00:00:00 | 0.497047 0.502953 | -0.002953 | -0.00199 | -0.00199 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00199 | -0.00199 | 0.497219 | 0.502781 |
|
|
264
|
+
| 2000-01-29 00:00:00 | 0.497219 0.502781 | -0.002781 | -0.001819 | -0.001819 | 0.0 | 0.0 | 0.0 | 0.0 | 0.001819 | -0.001819 | 0.497376 | 0.502624 |
|
|
265
|
+
| 2000-01-30 00:00:00 | 0.497376 0.502624 | -0.002624 | -0.001667 | -0.001667 | 0.0 | 0.0 | 0.0 | 0.0 | 0.001667 | -0.001667 | 0.49752 | 0.50248 |
|
|
266
|
+
| 2000-01-31 00:00:00 | 0.49752 0.50248 | -0.00248 | -0.001531 | -0.001531 | 0.0 | 0.0 | 0.0 | 0.0 | 0.001531 | -0.001531 | 0.497652 | 0.502348 |
|
|
267
|
+
|
|
268
|
+
.. _exch_weir_hbv96_numerical_accuracy:
|
|
269
|
+
|
|
270
|
+
numerical accuracy
|
|
271
|
+
__________________
|
|
272
|
+
|
|
273
|
+
|exch_weir_hbv96| s a flexible tool that requires users to apply wisely. One crucial
|
|
274
|
+
aspect is numerical accuracy. One can expect sufficiently accurate results only if the
|
|
275
|
+
simulation step size is relatively short compared to water level dynamics. In this
|
|
276
|
+
example, we illustrate what happens if there is too much exchange due to a large crest
|
|
277
|
+
width:
|
|
278
|
+
|
|
279
|
+
>>> crestwidth(200.0)
|
|
280
|
+
|
|
281
|
+
We see substantial numerical oscillations in the results. Due to the stiffness of the
|
|
282
|
+
underlying differential equations, a further increase of the crest width would even
|
|
283
|
+
result in a numerical overflow error that might be hard to trace back in a real-world
|
|
284
|
+
application:
|
|
285
|
+
|
|
286
|
+
.. integration-test::
|
|
287
|
+
|
|
288
|
+
>>> test("exch_weir_hbv96_numerical_accuracy")
|
|
289
|
+
| date | waterlevels | deltawaterlevel | potentialexchange | actualexchange | inflow1 | inflow2 | outflow1 | outflow2 | overflow1 | overflow2 | waterlevel1 | waterlevel2 |
|
|
290
|
+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
291
|
+
| 2000-01-01 00:00:00 | 0.0 1.0 | -0.5 | -43.84062 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.432 | 0.568 |
|
|
292
|
+
| 2000-01-02 00:00:00 | 0.432 0.568 | -0.068 | -2.198797 | -2.198797 | 0.0 | 0.0 | 0.0 | 0.0 | 2.198797 | -2.198797 | 0.621976 | 0.378024 |
|
|
293
|
+
| 2000-01-03 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
294
|
+
| 2000-01-04 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
295
|
+
| 2000-01-05 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
296
|
+
| 2000-01-06 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
297
|
+
| 2000-01-07 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
298
|
+
| 2000-01-08 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
299
|
+
| 2000-01-09 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
300
|
+
| 2000-01-10 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
301
|
+
| 2000-01-11 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
302
|
+
| 2000-01-12 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
303
|
+
| 2000-01-13 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
304
|
+
| 2000-01-14 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
305
|
+
| 2000-01-15 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
306
|
+
| 2000-01-16 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
307
|
+
| 2000-01-17 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
308
|
+
| 2000-01-18 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
309
|
+
| 2000-01-19 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
310
|
+
| 2000-01-20 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
311
|
+
| 2000-01-21 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
312
|
+
| 2000-01-22 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
313
|
+
| 2000-01-23 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
314
|
+
| 2000-01-24 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
315
|
+
| 2000-01-25 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
316
|
+
| 2000-01-26 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
317
|
+
| 2000-01-27 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
318
|
+
| 2000-01-28 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
319
|
+
| 2000-01-29 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
320
|
+
| 2000-01-30 00:00:00 | 0.189976 0.810024 | -0.310024 | -21.404969 | -5.0 | 0.0 | 0.0 | 0.0 | 0.0 | 5.0 | -5.0 | 0.621976 | 0.378024 |
|
|
321
|
+
| 2000-01-31 00:00:00 | 0.621976 0.378024 | 0.121976 | 5.282426 | 5.0 | 0.0 | 0.0 | 0.0 | 0.0 | -5.0 | 5.0 | 0.189976 | 0.810024 |
|
|
322
|
+
|
|
323
|
+
.. _exch_weir_hbv96_allowed_exchange:
|
|
324
|
+
|
|
325
|
+
allowed exchange
|
|
326
|
+
________________
|
|
327
|
+
|
|
328
|
+
Sometimes, there might be hydrological reasons to limit the water exchange. Still,
|
|
329
|
+
we use the related parameter |AllowedExchange| only as a stop-gap for stabilising
|
|
330
|
+
simulation results affected by numerical instability by setting its value to 2.0 m³/s:
|
|
331
|
+
|
|
332
|
+
>>> allowedexchange(2.0)
|
|
333
|
+
|
|
334
|
+
The results are far from perfect (the initial water levels change too slowly and still
|
|
335
|
+
oscillate for a few days) but are at least stable and not overly wrong:
|
|
336
|
+
|
|
337
|
+
.. integration-test::
|
|
338
|
+
|
|
339
|
+
>>> test("exch_weir_hbv96_allowed_exchange")
|
|
340
|
+
| date | waterlevels | deltawaterlevel | potentialexchange | actualexchange | inflow1 | inflow2 | outflow1 | outflow2 | overflow1 | overflow2 | waterlevel1 | waterlevel2 |
|
|
341
|
+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
342
|
+
| 2000-01-01 00:00:00 | 0.0 1.0 | -0.5 | -43.84062 | -2.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2.0 | -2.0 | 0.1728 | 0.8272 |
|
|
343
|
+
| 2000-01-02 00:00:00 | 0.1728 0.8272 | -0.3272 | -23.208209 | -2.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2.0 | -2.0 | 0.3456 | 0.6544 |
|
|
344
|
+
| 2000-01-03 00:00:00 | 0.3456 0.6544 | -0.1544 | -7.523027 | -2.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2.0 | -2.0 | 0.5184 | 0.4816 |
|
|
345
|
+
| 2000-01-04 00:00:00 | 0.5184 0.4816 | 0.0184 | 0.309491 | 0.309491 | 0.0 | 0.0 | 0.0 | 0.0 | -0.309491 | 0.309491 | 0.49166 | 0.50834 |
|
|
346
|
+
| 2000-01-05 00:00:00 | 0.49166 0.50834 | -0.00834 | -0.094444 | -0.094444 | 0.0 | 0.0 | 0.0 | 0.0 | 0.094444 | -0.094444 | 0.49982 | 0.50018 |
|
|
347
|
+
| 2000-01-06 00:00:00 | 0.49982 0.50018 | -0.00018 | -0.0003 | -0.0003 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0003 | -0.0003 | 0.499846 | 0.500154 |
|
|
348
|
+
| 2000-01-07 00:00:00 | 0.499846 0.500154 | -0.000154 | -0.000237 | -0.000237 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000237 | -0.000237 | 0.499866 | 0.500134 |
|
|
349
|
+
| 2000-01-08 00:00:00 | 0.499866 0.500134 | -0.000134 | -0.000192 | -0.000192 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000192 | -0.000192 | 0.499883 | 0.500117 |
|
|
350
|
+
| 2000-01-09 00:00:00 | 0.499883 0.500117 | -0.000117 | -0.000157 | -0.000157 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000157 | -0.000157 | 0.499896 | 0.500104 |
|
|
351
|
+
| 2000-01-10 00:00:00 | 0.499896 0.500104 | -0.000104 | -0.000131 | -0.000131 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000131 | -0.000131 | 0.499908 | 0.500092 |
|
|
352
|
+
| 2000-01-11 00:00:00 | 0.499908 0.500092 | -0.000092 | -0.00011 | -0.00011 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00011 | -0.00011 | 0.499917 | 0.500083 |
|
|
353
|
+
| 2000-01-12 00:00:00 | 0.499917 0.500083 | -0.000083 | -0.000093 | -0.000093 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000093 | -0.000093 | 0.499925 | 0.500075 |
|
|
354
|
+
| 2000-01-13 00:00:00 | 0.499925 0.500075 | -0.000075 | -0.00008 | -0.00008 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00008 | -0.00008 | 0.499932 | 0.500068 |
|
|
355
|
+
| 2000-01-14 00:00:00 | 0.499932 0.500068 | -0.000068 | -0.000069 | -0.000069 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000069 | -0.000069 | 0.499938 | 0.500062 |
|
|
356
|
+
| 2000-01-15 00:00:00 | 0.499938 0.500062 | -0.000062 | -0.00006 | -0.00006 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00006 | -0.00006 | 0.499943 | 0.500057 |
|
|
357
|
+
| 2000-01-16 00:00:00 | 0.499943 0.500057 | -0.000057 | -0.000053 | -0.000053 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000053 | -0.000053 | 0.499948 | 0.500052 |
|
|
358
|
+
| 2000-01-17 00:00:00 | 0.499948 0.500052 | -0.000052 | -0.000047 | -0.000047 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000047 | -0.000047 | 0.499952 | 0.500048 |
|
|
359
|
+
| 2000-01-18 00:00:00 | 0.499952 0.500048 | -0.000048 | -0.000041 | -0.000041 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000041 | -0.000041 | 0.499956 | 0.500044 |
|
|
360
|
+
| 2000-01-19 00:00:00 | 0.499956 0.500044 | -0.000044 | -0.000037 | -0.000037 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000037 | -0.000037 | 0.499959 | 0.500041 |
|
|
361
|
+
| 2000-01-20 00:00:00 | 0.499959 0.500041 | -0.000041 | -0.000033 | -0.000033 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000033 | -0.000033 | 0.499962 | 0.500038 |
|
|
362
|
+
| 2000-01-21 00:00:00 | 0.499962 0.500038 | -0.000038 | -0.00003 | -0.00003 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00003 | -0.00003 | 0.499964 | 0.500036 |
|
|
363
|
+
| 2000-01-22 00:00:00 | 0.499964 0.500036 | -0.000036 | -0.000027 | -0.000027 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000027 | -0.000027 | 0.499966 | 0.500034 |
|
|
364
|
+
| 2000-01-23 00:00:00 | 0.499966 0.500034 | -0.000034 | -0.000024 | -0.000024 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000024 | -0.000024 | 0.499969 | 0.500031 |
|
|
365
|
+
| 2000-01-24 00:00:00 | 0.499969 0.500031 | -0.000031 | -0.000022 | -0.000022 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000022 | -0.000022 | 0.49997 | 0.50003 |
|
|
366
|
+
| 2000-01-25 00:00:00 | 0.49997 0.50003 | -0.00003 | -0.00002 | -0.00002 | 0.0 | 0.0 | 0.0 | 0.0 | 0.00002 | -0.00002 | 0.499972 | 0.500028 |
|
|
367
|
+
| 2000-01-26 00:00:00 | 0.499972 0.500028 | -0.000028 | -0.000018 | -0.000018 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000018 | -0.000018 | 0.499974 | 0.500026 |
|
|
368
|
+
| 2000-01-27 00:00:00 | 0.499974 0.500026 | -0.000026 | -0.000017 | -0.000017 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000017 | -0.000017 | 0.499975 | 0.500025 |
|
|
369
|
+
| 2000-01-28 00:00:00 | 0.499975 0.500025 | -0.000025 | -0.000015 | -0.000015 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000015 | -0.000015 | 0.499976 | 0.500024 |
|
|
370
|
+
| 2000-01-29 00:00:00 | 0.499976 0.500024 | -0.000024 | -0.000014 | -0.000014 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000014 | -0.000014 | 0.499978 | 0.500022 |
|
|
371
|
+
| 2000-01-30 00:00:00 | 0.499978 0.500022 | -0.000022 | -0.000013 | -0.000013 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000013 | -0.000013 | 0.499979 | 0.500021 |
|
|
372
|
+
| 2000-01-31 00:00:00 | 0.499979 0.500021 | -0.000021 | -0.000012 | -0.000012 | 0.0 | 0.0 | 0.0 | 0.0 | 0.000012 | -0.000012 | 0.49998 | 0.50002 |
|
|
373
|
+
"""
|
|
374
|
+
# import...
|
|
375
|
+
|
|
376
|
+
# ...from HydPy
|
|
377
|
+
from hydpy.exe.modelimports import *
|
|
378
|
+
from hydpy.core import modeltools
|
|
379
|
+
from hydpy.core import objecttools
|
|
380
|
+
from hydpy.models.exch import exch_model
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
class Model(modeltools.AdHocModel):
|
|
384
|
+
"""|exch_weir_hbv96.DOCNAME.complete|.
|
|
385
|
+
|
|
386
|
+
Before continuing, please read the general documentation on application model
|
|
387
|
+
|exch_weir_hbv96|.
|
|
388
|
+
|
|
389
|
+
To work correctly, each |exch_weir_hbv96| must know which water level node and
|
|
390
|
+
which overflow node belong to the same lake model. The following examples might
|
|
391
|
+
provide insight into how we deal with this issue but are merely there for testing
|
|
392
|
+
that we handle all expected cases well.
|
|
393
|
+
|
|
394
|
+
We recreate the configuration of the |Node| and |Element| objects of the main
|
|
395
|
+
documentation, neglecting the lakes' inflow and outflow nodes, which are not
|
|
396
|
+
relevant for connecting |exch_weir_hbv96|:
|
|
397
|
+
|
|
398
|
+
>>> from hydpy.models.exch_weir_hbv96 import *
|
|
399
|
+
>>> parameterstep()
|
|
400
|
+
>>> from hydpy import Element, FusedVariable, Node, Nodes
|
|
401
|
+
>>> from hydpy.aliases import exch_outlets_Exchange, dam_factors_WaterLevel, exch_receivers_WaterLevels
|
|
402
|
+
>>> WaterLevel = FusedVariable("WaterLevel", exch_receivers_WaterLevels, dam_factors_WaterLevel)
|
|
403
|
+
|
|
404
|
+
>>> Element.clear_all()
|
|
405
|
+
>>> Node.clear_all()
|
|
406
|
+
|
|
407
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable=exch_outlets_Exchange)
|
|
408
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
409
|
+
>>> lake1 = Element("lake1", inlets=overflow1, outputs=waterlevel1)
|
|
410
|
+
>>> lake2 = Element("lake2", inlets=overflow2, outputs=waterlevel2)
|
|
411
|
+
>>> exchange = Element("exchange",
|
|
412
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
413
|
+
... outlets=(overflow1, overflow2))
|
|
414
|
+
>>> exchange.model = model
|
|
415
|
+
|
|
416
|
+
The water levels of `lake1` and `lake2` are available via the first and the second
|
|
417
|
+
entry of the receiver sequence |exch_receivers.WaterLevels|, respectively:
|
|
418
|
+
|
|
419
|
+
>>> waterlevel1.sequences.sim = 1.0
|
|
420
|
+
>>> waterlevel2.sequences.sim = 2.0
|
|
421
|
+
>>> receivers.waterlevels
|
|
422
|
+
waterlevels(1.0, 2.0)
|
|
423
|
+
|
|
424
|
+
Likewise, the first and the second entry of the outlet sequence
|
|
425
|
+
|exch_outlets.Exchange| are available to the overflow nodes `lake1` and `lake2`,
|
|
426
|
+
respectively:
|
|
427
|
+
|
|
428
|
+
>>> outlets.exchange = 3.0, 4.0
|
|
429
|
+
>>> overflow1.sequences.sim
|
|
430
|
+
sim(3.0)
|
|
431
|
+
>>> overflow2.sequences.sim
|
|
432
|
+
sim(4.0)
|
|
433
|
+
|
|
434
|
+
We recreate this configuration multiple times, each time changing one aspect
|
|
435
|
+
(marked by exclamation marks). First, we connect node `waterlevel2` with èlement
|
|
436
|
+
`lake1` and node `waterlevel1` with element `lake2`:
|
|
437
|
+
|
|
438
|
+
>>> Element.clear_all()
|
|
439
|
+
>>> Node.clear_all()
|
|
440
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable="E")
|
|
441
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
442
|
+
>>> lake1 = Element("lake1", inlets=overflow1, outputs=waterlevel2) # !!!
|
|
443
|
+
>>> lake2 = Element("lake2", inlets=overflow2, outputs=waterlevel1) # !!!
|
|
444
|
+
>>> exchange = Element("exchange",
|
|
445
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
446
|
+
... outlets=(overflow1, overflow2))
|
|
447
|
+
>>> exchange.model = model
|
|
448
|
+
|
|
449
|
+
Due to this swap, the first of the outlet sequence |exch_outlets.Exchange| connects to
|
|
450
|
+
node `overflow2` and the second one to node `overflow1`:
|
|
451
|
+
|
|
452
|
+
>>> waterlevel1.sequences.sim = 1.0
|
|
453
|
+
>>> waterlevel2.sequences.sim = 2.0
|
|
454
|
+
>>> receivers.waterlevels
|
|
455
|
+
waterlevels(1.0, 2.0)
|
|
456
|
+
|
|
457
|
+
>>> outlets.exchange = 3.0, 4.0
|
|
458
|
+
>>> overflow1.sequences.sim
|
|
459
|
+
sim(4.0)
|
|
460
|
+
>>> overflow2.sequences.sim
|
|
461
|
+
sim(3.0)
|
|
462
|
+
|
|
463
|
+
Swapping the nodes `overflow1` and `overflow2` instead of `waterlevel1` and
|
|
464
|
+
`waterlevel2` leads to the same results (we arbitrarily decided to ground the
|
|
465
|
+
internal sorting on the alphabetical order of the receiver nodes' names):
|
|
466
|
+
|
|
467
|
+
>>> Element.clear_all()
|
|
468
|
+
>>> Node.clear_all()
|
|
469
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable="E")
|
|
470
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
471
|
+
>>> lake1 = Element("lake1", inlets=overflow2, outputs=waterlevel1) # !!!
|
|
472
|
+
>>> lake2 = Element("lake2", inlets=overflow1, outputs=waterlevel2) # !!!
|
|
473
|
+
>>> exchange = Element("exchange",
|
|
474
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
475
|
+
... outlets=(overflow1, overflow2))
|
|
476
|
+
>>> exchange.model = model
|
|
477
|
+
|
|
478
|
+
>>> waterlevel1.sequences.sim = 1.0
|
|
479
|
+
>>> waterlevel2.sequences.sim = 2.0
|
|
480
|
+
>>> receivers.waterlevels
|
|
481
|
+
waterlevels(1.0, 2.0)
|
|
482
|
+
|
|
483
|
+
>>> outlets.exchange = 3.0, 4.0
|
|
484
|
+
>>> overflow1.sequences.sim
|
|
485
|
+
sim(4.0)
|
|
486
|
+
>>> overflow2.sequences.sim
|
|
487
|
+
sim(3.0)
|
|
488
|
+
|
|
489
|
+
Now, we (accidentally) connect node `waterlevel2` to both lakes. Therefore,
|
|
490
|
+
|exch_weir_hbv96| cannot find a water level node connected to the same lake model
|
|
491
|
+
as outlet node `overflow1`:
|
|
492
|
+
|
|
493
|
+
>>> Element.clear_all()
|
|
494
|
+
>>> Node.clear_all()
|
|
495
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable="E")
|
|
496
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
497
|
+
>>> lake1 = Element("lake1", inlets=overflow1, outputs=waterlevel2) # !!!
|
|
498
|
+
>>> lake2 = Element("lake2", inlets=overflow2, outputs=waterlevel2)
|
|
499
|
+
>>> exchange = Element("exchange",
|
|
500
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
501
|
+
... outlets=(overflow1, overflow2))
|
|
502
|
+
>>> exchange.model = model
|
|
503
|
+
Traceback (most recent call last):
|
|
504
|
+
...
|
|
505
|
+
RuntimeError: While trying to build the node connection of the `outlet` sequences \
|
|
506
|
+
of the model handled by element `exchange`, the following error occurred: Outlet node \
|
|
507
|
+
`overflow1` does not correspond to any available receiver node.
|
|
508
|
+
|
|
509
|
+
|exch_weir_hbv96| raises the following error if not precisely two water level nodes
|
|
510
|
+
are available:
|
|
511
|
+
|
|
512
|
+
>>> Element.clear_all()
|
|
513
|
+
>>> Node.clear_all()
|
|
514
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable="E")
|
|
515
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
516
|
+
>>> lake1 = Element("lake1", inlets=overflow1, outputs=waterlevel1)
|
|
517
|
+
>>> lake2 = Element("lake2", inlets=overflow2, outputs=waterlevel2)
|
|
518
|
+
>>> exchange = Element("exchange",
|
|
519
|
+
... receivers=waterlevel1, # !!!
|
|
520
|
+
... outlets=(overflow1, overflow2))
|
|
521
|
+
>>> exchange.model = model
|
|
522
|
+
Traceback (most recent call last):
|
|
523
|
+
...
|
|
524
|
+
RuntimeError: While trying to build the node connection of the `receiver` \
|
|
525
|
+
sequences of the model handled by element `exchange`, the following error occurred: \
|
|
526
|
+
There must be exactly 2 outlet receiver but the following `1` receiver nodes are \
|
|
527
|
+
defined: waterlevel1.
|
|
528
|
+
|
|
529
|
+
Correspondingly, |exch_weir_hbv96| raises the following error if there are not
|
|
530
|
+
precisely two overflow nodes available:
|
|
531
|
+
|
|
532
|
+
>>> Element.clear_all()
|
|
533
|
+
>>> Node.clear_all()
|
|
534
|
+
>>> overflow1, overflow2 = Nodes("overflow1", "overflow2", defaultvariable="E")
|
|
535
|
+
>>> waterlevel1, waterlevel2 = Nodes("waterlevel1", "waterlevel2", defaultvariable=WaterLevel)
|
|
536
|
+
>>> lake1 = Element("lake1", inlets=overflow1, outputs=waterlevel1)
|
|
537
|
+
>>> lake2 = Element("lake2", inlets=overflow2, outputs=waterlevel2)
|
|
538
|
+
>>> exchange = Element("exchange",
|
|
539
|
+
... receivers=(waterlevel1, waterlevel2),
|
|
540
|
+
... outlets=(overflow1, overflow2, waterlevel2)) # !!!
|
|
541
|
+
>>> exchange.model = model
|
|
542
|
+
Traceback (most recent call last):
|
|
543
|
+
...
|
|
544
|
+
RuntimeError: While trying to build the node connection of the `outlet` sequences \
|
|
545
|
+
of the model handled by element `exchange`, the following error occurred: There must \
|
|
546
|
+
be exactly 2 outlet nodes but the following `3` outlet nodes are defined: overflow1, \
|
|
547
|
+
overflow2, and waterlevel2.
|
|
548
|
+
"""
|
|
549
|
+
|
|
550
|
+
DOCNAME = modeltools.DocName(
|
|
551
|
+
short="Exch-Weir-HBV96", description="weir model adopted from IHMS-HBV96"
|
|
552
|
+
)
|
|
553
|
+
__HYDPY_ROOTMODEL__ = False
|
|
554
|
+
|
|
555
|
+
INLET_METHODS = ()
|
|
556
|
+
RECEIVER_METHODS = (exch_model.Pic_LoggedWaterLevels_V1,)
|
|
557
|
+
RUN_METHODS = (
|
|
558
|
+
exch_model.Update_WaterLevels_V1,
|
|
559
|
+
exch_model.Calc_DeltaWaterLevel_V1,
|
|
560
|
+
exch_model.Calc_PotentialExchange_V1,
|
|
561
|
+
exch_model.Calc_ActualExchange_V1,
|
|
562
|
+
)
|
|
563
|
+
ADD_METHODS = ()
|
|
564
|
+
OUTLET_METHODS = (exch_model.Pass_ActualExchange_V1,)
|
|
565
|
+
SENDER_METHODS = ()
|
|
566
|
+
SUBMODELINTERFACES = ()
|
|
567
|
+
SUBMODELS = ()
|
|
568
|
+
|
|
569
|
+
def _connect_receivers(self, report_noconnect: bool = True) -> None:
|
|
570
|
+
element = self.element
|
|
571
|
+
assert element is not None
|
|
572
|
+
receivers = element.receivers
|
|
573
|
+
if len(receivers) != 2:
|
|
574
|
+
raise RuntimeError(
|
|
575
|
+
f"There must be exactly 2 outlet receiver but the following "
|
|
576
|
+
f"`{len(receivers)}` receiver nodes are defined: "
|
|
577
|
+
f"{objecttools.enumeration(node.name for node in receivers)}."
|
|
578
|
+
)
|
|
579
|
+
super()._connect_receivers(report_noconnect)
|
|
580
|
+
|
|
581
|
+
def _connect_outlets(self, report_noconnect: bool = True) -> None:
|
|
582
|
+
element = self.element
|
|
583
|
+
assert element is not None
|
|
584
|
+
outlets = element.outlets
|
|
585
|
+
if len(outlets) != 2:
|
|
586
|
+
raise RuntimeError(
|
|
587
|
+
f"There must be exactly 2 outlet nodes but the following "
|
|
588
|
+
f"`{len(outlets)}` outlet nodes are defined: "
|
|
589
|
+
f"{objecttools.enumeration(node.name for node in outlets)}."
|
|
590
|
+
)
|
|
591
|
+
idx2outlets = {}
|
|
592
|
+
for outlet in outlets:
|
|
593
|
+
for idx, receiver in enumerate(element.receivers):
|
|
594
|
+
if outlet.exits == receiver.entries:
|
|
595
|
+
idx2outlets[idx] = outlet
|
|
596
|
+
break
|
|
597
|
+
else:
|
|
598
|
+
raise RuntimeError(
|
|
599
|
+
f"Outlet node `{outlet.name}` does not correspond to any "
|
|
600
|
+
f"available receiver node."
|
|
601
|
+
)
|
|
602
|
+
sequence = element.model.sequences.outlets["exchange"]
|
|
603
|
+
sequence.shape = 2
|
|
604
|
+
for idx, outlet in idx2outlets.items():
|
|
605
|
+
sequence.set_pointer(outlet.get_double("outlets"), idx)
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
tester = Tester()
|
|
609
|
+
cythonizer = Cythonizer()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The |ga.DOCNAME.long| base model provides features to implement infiltration methods
|
|
3
|
+
based on Green & Ampt-like wetting fronts.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# import...
|
|
7
|
+
# ...from HydPy
|
|
8
|
+
from hydpy.exe.modelimports import *
|
|
9
|
+
|
|
10
|
+
# ...from exch
|
|
11
|
+
from hydpy.models.ga.ga_model import Model
|
|
12
|
+
|
|
13
|
+
tester = Tester()
|
|
14
|
+
cythonizer = Cythonizer()
|