Skip to main content

A Python Simulation Toolkit for 1D Ultrafast Dynamics in Condensed Matter

Project description

Welcome to udkm1Dsim

Documentation Status CI pypi codecov PyPI downloads

The udkm1Dsim toolbox is a collection of Python classes and routines to simulate the thermal, structural, and magnetic dynamics after laser excitation as well as the according X-ray scattering response in one-dimensional sample structures after ultrafast excitation.

The toolbox provides the capabilities to define arbitrary layered structures on the atomic level including a rich database of element-specific physical properties. The excitation of ultrafast dynamics is represented by an N-temperature-model which is commonly applied for ultrafast optical excitations. Structural dynamics due to thermal stresses are calculated by a linear-chain model of masses and springs. The implementation of magnetic dynamics can be easily accomplished by the user for the individual problem.

The resulting X-ray diffraction response is computed by kinematical or dynamical X-ray theory which can also include magnetic scattering.

The udkm1Dsim toolbox is highly modular and allows to introduce user-defined results at any step in the simulation procedure.

The udkm1Dsim toolbox was initially developed for MATLAB® in the Ultrafast Dynamics in Condensed Matter group of Prof. Matias Bargheer at the University of Potsdam, Germany. The MATLAB® source code is still available at github.com/dschick/udkm1DsimML.

The current toolbox, written in Python, is maintained by Daniel Schick at the Max-Born-Institute, Berlin, Germany.

Documentation

The documentation can be found at udkm1Dsim.readthedocs.io.

Citation

Please cite the current preprint if you use the toolbox in your own work:

D. Schick, udkm1Dsim - A Python toolbox for simulating 1D ultrafast dynamics in condensed matter, Comput. Phys. Commun. 266, 108031 (2021) (preprint).

You can also cite the original publication if appropriate:

D. Schick, A. Bojahr, M. Herzog, R. Shayduk, C. von Korff Schmising & M. Bargheer, udkm1Dsim - A Simulation Toolkit for 1D Ultrafast Dynamics in Condensed Matter, Comput. Phys. Commun. 185, 651 (2014) (preprint).

Installation

Installing with pip

You can either install directly from pypi.org using the command

pip install udkm1Dsim

or if you want to work on the latest develop release you can clone udkm1Dsim from the main git repository:

git clone https://github.com/dschick/udkm1Dsim.git udkm1Dsim

To work in editable mode (source is only linked but not copied to the python site-packages), just do:

pip install -e ./udkm1Dsim

Or to do a normal install with

pip install ./udkm1Dsim

Optionally, you can also let pip install directly from the repository:

pip install git+https://github.com/dschick/udkm1Dsim.git

You can have the following optional installation to enable parallel computations, unit tests, as well as building the documentation:

pip install udkm1Dsim[parallel]
pip install udkm1Dsim[testing]
pip install udkm1Dsim[documentation]

Installing with conda

You can install directly from conda-forge using conda:

conda install -c conda-forge udkm1dsim

or using mamba:

mamba install udkm1dsim

See udkm1dsim-feedstock for more details

Contribute & Support

If you are having issues please let us know via the issue tracker.

You can also ask questions, share ideas, or engage with community members via the discussions.

You can contribute to the project via pull-requests following the GitHub flow concept.

License

The project is licensed 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

udkm1dsim-2.3.0.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

udkm1dsim-2.3.0-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file udkm1dsim-2.3.0.tar.gz.

File metadata

  • Download URL: udkm1dsim-2.3.0.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for udkm1dsim-2.3.0.tar.gz
Algorithm Hash digest
SHA256 6f4766fd2ab2691d0f5e8df1b81c19ae36c5a03df13c1783e05bcb18a8ea86d8
MD5 738cf84fdbf336aa5e17c0328ce14d9d
BLAKE2b-256 f5997316351eb32caffd618511fb4ddde318a161de50a9bc538217ebf22ef033

See more details on using hashes here.

File details

Details for the file udkm1dsim-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: udkm1dsim-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for udkm1dsim-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c75757c56a7eaa3780dcc717345e6090680a523a9989ee9fe209e1118a55ce0
MD5 5a8b9b112828fb37f47dad5504d1f3c8
BLAKE2b-256 6ccfb1dfc7a71d4872326ca137a6b654bbe9d0b195c7b06c3aeba9cc2bf6f2c2

See more details on using hashes here.

Supported by

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