Skip to main content

Simulate and animate supersolids.

Project description

Supersolids

Package to simulate and animate supersolids. This is done by solving the dimensionless time-dependent non-linear Schrodinger equation for an arbitrary potential. The split operator method with the Trotter-Suzuki approximation is used.

Documentation

https://supersolids.readthedocs.io/en/latest/

Installing

For the animation to work, ffmpeg needs to be installed on your system.

pip

  • pip install supersolids

Archlinux

It is provided in the AUR

Windows

You need to add python to your path (if you didn't do it, when installing python/anaconda).

  • Then continue with pip installation

Source

Go to the directory, where the "setup.py" lies.

  • For Linux use "python setup.py install --user" from console to build and install the package

Usage

The package uses main.py, so it can be run as module. To get help for the flags, run:

  • python -m supersolids -h
  • python -m supersolids.tools.load_npz -h
  • python -m supersolids.tools.simulate_npz -h

To actually run (example):

  • python -m supersolids -Res='{"x": 16, "y": 32, "z": 62}' -Box='{"x0": -10, "x1": 10, "y0": -6, "y1": 5, "z0": -8, "z1": 8}'
  • python -m supersolids.tools.load_npz -frame_start=79000
  • python -m supersolids.tools.simulate_npz -dir_name=movie004 -filename_npz=step_079000.npz

If you use an IDE and your script parameter includes double quotes, escape the double quotes with backslashes, for example:

  • "-Res={\"x\": 256}" "-Box={\"x0\": -10, \"x1\": 10}" "-a={\"a_x\": 2.0}" -max_timesteps=51 "-V=lambda x, y, z: 100.0 * np.exp(-(x ** 2 + y ** 2)/ 1.0 ** 2)"

The default path for the results is ~/supersolids/results

Issues

  1. Please read the README.md closely.
  2. If the issue persist please open an "Issue" in git:
    • Click on "New Issue" on https://github.com/Scheiermann/supersolids/issues.
    • Assign a suitable label.
    • Follow the steps on git the to create the issue. Please describe your issue closely (what are your configurations, did it work before, what have you changed, what is the result, what have you expected as a result?).
    • Try to include screenshots.
    • Describe what you think causes the issue and if you have suggestions how to solve it, mention it!
    • Close the issue, if you accidentally did something wrong (but mention that before closing).

Contributing

Please read the CONTRIBUTING.rst.

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

supersolids-0.1.33.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

supersolids-0.1.33-py3-none-any.whl (65.7 kB view details)

Uploaded Python 3

File details

Details for the file supersolids-0.1.33.tar.gz.

File metadata

  • Download URL: supersolids-0.1.33.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for supersolids-0.1.33.tar.gz
Algorithm Hash digest
SHA256 01d7068678a577fcf6b8b4a5785a00333128ad22d9e4596c3dd3c1eba7103e7e
MD5 c461e8149cf2653007bd47acfbbabec2
BLAKE2b-256 9cf832d5ac9611011394cc9c726beb049f7980120b77e0d941f4c2e0b548906c

See more details on using hashes here.

File details

Details for the file supersolids-0.1.33-py3-none-any.whl.

File metadata

  • Download URL: supersolids-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 65.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for supersolids-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 3e20bb598d59745265e058debf332684ab71561180025f99f7dab9ec53f8d961
MD5 73795e8a0dd4196e8f96f3263f24f5ad
BLAKE2b-256 2854f7c55066395652ccf1e9f34123bf8d711230919ad8c514d96c58d430429b

See more details on using hashes here.

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