Deltares / imod-python

🐍🧰 Make massive MODFLOW models
https://deltares.github.io/imod-python/
MIT License
16 stars 0 forks source link

Support combining HFB packages into a single HFB for MODFLOW 6 #1090

Closed JoerivanEngelen closed 2 days ago

JoerivanEngelen commented 1 week ago

Related to #598

Given that we require SingleLayerHorizontalFlowBarrierResistance only to have one layer and MODFLOW 6 requires a single HFB package, we need to be able to combine all HFB packages into a single one.

Easiest I think is to combine the low-level Mf6HorizontalFlowBarrier packages into a single one. Thing to investigate is if MODFLOW 6 supports values defined on a specific single cell edge multiple times, and if yes, what it does. Ideally MODFLOW6 would add resistances together.

This would need to occur in the Modflow6Model.write method.

JoerivanEngelen commented 1 week ago

I can confirm that MODFLOW 6 drops an error for multiple values supplied to the same cell edge

JoerivanEngelen commented 2 days ago

Implemented in: https://github.com/Deltares/imod-python/pull/1093