Skip to main content

Mapping finite element data between meshes

Project description

Mapping finite element data between meshes

travis codecov PyPi Version

This package is a handy Python (re-)wrapper of MEDCoupling. It can be used to transfer finite element data defined on nodes (P1 fields) or on cells (P0 fields) between two meshio-compatible meshes.

Some notebook examples can be found in examples.

Documentation is available here.

Installing MEDCoupling

Before using this package, you need to install MEDCoupling. Currently the 9.3.0 version only supports Python 3.6 and not Python 3.7.

  1. Download and extract the source package from
  2. You will obtain two folders: CONFIGURATION_9.3.0 and MEDCOUPLING-9.3.0, enter MEDCOUPLING-9.3.0 and using cmake to build/install
mkdir build
cd build
cmake --build . --config Release --target INSTALL

For Windows users, the building has been tested with the latest Visual Studio 2019, with -G "Visual Studio 16 2019" -A x64. If you are using conda with py36 a Python 3.6 environment, you can

  1. Specify DCMAKE_INSTALL_PREFIX=...\Miniconda3\envs\py36\Library
  2. Specify DPYTHON_ROOT_DIR=...\Miniconda3\envs\py36
  3. After installation, move files in py36\Library\lib\python3.6\site-packages to py36\Lib\site-packages, and move .dll files in py36\Library\lib to py36\Library\bin

To assure that MEDCoupling is well installed, try importing it in your Python

import medcoupling  # should not raise error


To run the pymapping unit tests, check out this repository and type



pymapping is published under the MIT license.

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

pymapping-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded source

Built Distribution

pymapping-0.0.1-py3-none-any.whl (6.3 kB view hashes)

Uploaded py3

Supported by

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