Sitemap
mupif_platform

MuPIF platform description

A reliable multiscale/multiphysics numerical modeling requires including all relevant physical phenomena along the process chain, typically involving multiple scales, and the combination of knowledge from multiple fields. A pragmatic approach lies in combining existing tools, to build a customized multiphysics simulation chains. In order to achieve such a modular approach a multiphysics integration framework, called MuPIF has been designed, which provides an underlying infrastructure enabling high-level data exchange and steering of individual applications.

One of the main MMP objectives is to develop an integrated modelling platform, called MuPIF, especially targeted to multiscale and multi-physics engineering problems. The approach followed in MuPIF is based on an system of distributed, interacting objects designed to solve given problem. The individual objects represent entities in the problem domain, including individual simulation packages, but also the data, such as fields and properties. The abstract classes are introduced for all entities in the model space. They define a common interface that needs to be implemented by any derived class, representing particular implementation of specific component. Such interface concept allows using any derived class on a very abstract level, using common services defined by abstract class, without being concerned with the implementation details of an individual software component. This essentially allows to manipulate all simulation tools using the same interface. Moreover, as the simulation data are represented by objects as well, the platform is independent on particular data format(s), as the exchanged data (such as fields and properties) can be manipulated using the same abstract interface. Therefore, the focus on services is provided by objects (object interfaces) and not on underlying data itself.

The complex simulation pipeline developed in MuPIF consists of top-level script in Python language (called scenario) enriched by newly introduced classes. Even though the platform can be used locally on a single computer orchestrating installed applications, the real strength of the MMP platform is its distributed design, allowing to execute simulation scenarios involving remote applications. MuPIF provides a transparent distributed object system, which takes care of the network communication between the objects when they are distributed over different machines on the network. One can just call a method on a remote object as if it were a local object – the use of remote objects is (almost) transparent. This is achieved by using the concept of proxies representing remote objects, which forward the calls to the remote objects and pass the results back to the calling code. In this way, there is no difference between simulation script for local or distributed case, except for the initialization, where, instead of creating local object, one has to connect to the remote object.

Demonstration of platform use

Installation instructions

Since MuPIF is python-based framework, a working Python 2.x is required. A very helpful module is Python Packaging Index (pip), allowing easy install of several Python modules including MuPIF and taking care of dependencies. A characteristic installation looks like

  1. Windows platform
    • We suggest to install Anaconda scientific python package (tested version 2.1) including Python 2.x. It contains the majority of Python modules, including pip.
    • Optionally ssh client such as putty.exe,​
    • Optionally ssh key generator such as puttygen.exe,
    • Optionally ssh server if you need to accept SSH incoming connections and allowing others to be on your system. FreeSSHd server is recommended.
  2. Linux/Unix platform
    • Python Packaging Index pip
    • Optionally ssh client (normally included in standard distributions)
    • Optionally ssh server (required for application server installation)

The easiest installation happens through Python Package Index (pip) which takes care of dependencies and installs/updates missing modules automatically. Run as a command

pip install mupif

Alternatively, you may install MuPIF from git repository. You have to take care yourself on depending modules (Pyro4, numpy, scipy, setuptools, enum34, pyvtk, future).

Resources

mupif_platform.txt · Last modified: 2016/05/09 16:32 by patzak