4.3. pyMF6¶
pyMF6 is a Python-wrapped version of MODFLOW 6 created specifically for coupled simulation with HSPF. pyMF6 provides the full functionality of MODFLOW 6 because it references all of the MODFLOW 6 source code.
For coupled simulation with pyMF6, four extended types, or objects, are available to the coupled program. Figure pyMF6 Python-wrapping and extended types shows the Python- wrapping methodology along with the extended types added to the source code. The purpose of the extended objects or types is to provide for passing an array into MODFLOW 6 from the independent, external mHSP2 process and to provide for sending an array from pyMF6 to the mHSP2 process.
The passing of these arrays provides for the dynamic simulation capabilities in pyHS2MF6.
pyMF6 Python-wrapping and extended types¶
pyMF6 retains all MODFLOW 6 functionality, input structure, and output formats. The only changes to MODFLOW 6 in pyMF6 are wrapping of subroutines and modules for access from Python modules and addition of four extended types to provide for dynamic information sharing with mHSP2.