4.2. mHSP2¶
mHSP2 is the port of HSPsquared created specifically for coupled simulation with MODFLOW 6. HSPsquared is a HSPF variant which was rewritten in pure Python. mHSP2 only provides the water movement and storage capabilities of HSPsquared.
The main difference between mHSP2 and HSPsquared is that mHSP2 was created with the simulation time loop as the main simulation loop to facilitate dynamic coupling to MODFLOW 6. HSPF-variants traditionally use an operating module instance loop that is executed in routing order as the main simulation loop. This approach requires that the time simulation loop be executed for each operating module instance. Figure mHSP2 structural modifications graphically depicts this structural modification.

mHSP2 structural modifications¶
Figure mHSP2 structural modifications panel A), HSPF uses an operating module instance loop as the outermost calculation loop. Panel B) In mHSP2, the simulation time loop is the outermost simulation loop. For coupling, the simulation time must be the outermost calculation loop so that information from and for all operating module instances can be passed to or received from MODFLOW 6.