Simulation of the Minkowski metric for Python

physics-simulation, python, simulation-model, uml
pip install pymms==1.0.9


Build Status Python 2.7 License: MIT

MMS: The Minkowski Metric Simulation

Now, simulation models are widely used in logistics, healthcare, technology, and much other areas. However, in scientific research, preference is given to numerical modeling.

The reason for this is as follows. In simulation modeling, conceptual models describe as formalism DEVS or as ontologies, for example, on ontoUML. It is non-numerical modeling.
If we will use simulation, for example, in nanotechnology then we must be able to simulate of relativistic and quantum effects, and it is't clear. There is no clear understanding of how to build such simulation models.

Here, we introduce MMS, an implementation on Python of simulation model of spacetime for the special relativity theory. This package is intended to demonstration of possible of relativistic effect simulation. The package also demonstration production numerical data from non-numerical model. All numerical results is result of measurement on data structurs.

We used Python on two reasons. First, the Python is object-orientred language and it is can use ontology. Second, the Python is interpretation language and it is do flexy change code.In documentation, we present package API.

We propose simulation model of spacetime as the discrete model of physical space. The simulation model described as ontology. A detailed description of this model can be found in the documentation. We use the UML2 SP. The UML2 SP (UML Scientific Profile) used to development of simulation models. It is a profile of UML. UML2 SP models are do not depend from programming languages.
In documentation, we present description some experiments. Experiments demonstrating the time dilation and dynamic relativistic effects.

Getting started with PyMMS

Currently, only Python 2.7 is supported.

The following dependency is required to install

matplotlib (>= 1.4, version 2.2.4 recommended)

for the module

If you has matplotlib then take PyMMS from source.
Go to and click the green button "Clone or download", then click "Download ZIP" to download the whole repository.

You must take the package pymms and files from the experiments directory.
You must make directory

   │      └── ... modules ...  

You can executed experiments, for example, in command line

$ cd src  
$ python  ,and etc.   

or in IDLE.

Also you may install MMS from PyPI, see Getting Started.


Gurianov V.I. Direct procedure for measuring particle energy-momentum in a discrete space-time model // Mathematical models and their applications: Sat. sci. tr. Issue. 21. - Cheboksary: Publishing house Chuvash. Univ., 2019. - P. 62-67.