Skip to main content

The imod_coupler can be used to couple hydrological kernels.

Project description

iMOD-coupler

Continuous integration

The imod_coupler is used to couple hydrological kernels. It currently focuses on groundwater and supports coupling between MetaSWAP and Modflow6.

It can be installed by running

pip install imod_coupler

Then you can run it as command line app via

imodc /path/to/imod_coupler.toml

In order to receive help for its usage, run

imodc --help

Configuration file

The configuration file is necessary to describe the model and its dependencies. It is in the toml format and should have a .toml extension.

Note that toml uses quote marks differently than python. Single quotes in toml ('') are interpreted similarly to how python would interpret a rawstring (r'' or r""), whereas double quotes ("") are interpreted in a similar manner to regular strings in python ("" or ''). This matters for paths on Windows, for which we advice to use single quotes.

# This is a configuration file for the imod_coupler
# Relative paths are interpreted as relative to the configuration file path

[kernels]
    [kernels.modflow6]
    dll = '/path/to/libmf6.dll'
    model = '.'

    [kernels.metaswap]
    dll = '/path/to/MetaSWAP.dll'
    model = './GWF_1/MSWAPINPUT'
    dll_dependency = '/path/to/MPICHDLL'


[[exchanges]]
# Two kernels per exchange
kernels = ['modflow6', 'metaswap']

Technical Reference

A technical explanation can be found here.

Known Issues

Release v0.9.0

FileNotFoundError: Could not find module "\path\to\MetaSWAP.dll" (or one of its dependencies). Try using the full path with constructor syntax. This is caused by not having the Intel redistrutable libraries on the system. They can be installed from https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-redistributable-libraries-by-version.html. Make sure to choose the correct platform and the version for 'Parallel Studio XE 2018'. (We are working on removing this dependency for future releases)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imod_coupler-0.10.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

imod_coupler-0.10.0-py3-none-any.whl (19.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page