Skip to main content

Relativistic Difference Scheme Particle-in-Cell code (REDPIC)

Project description

Relativistic Difference Scheme Particles-In-Cell (REDPIC)

PyPI - Version PyPI - Python Version

Check Test Release

This PIC code has been developed since 2022 as an alternative to ASTRA, WARP, XTRACK and other codes.

For particle dynamics simulation using finite difference scheme relativistic.

Table of content

Getting Started

Local build and launch

To build our application and create a Docker image, it will be enough to run the following command:

docker build -t redpic .

To launch the application, use the command:

docker run -it redpic

Documentation

The documentation contains all the Latex files needed to generate documentation. The main source files are located in the manual.

  • main.tex is documentation source file. The final PDF can be found here.

main.tex is the source file that Latex compiler will use to generate the paper. However, in order to keep the code cleaner, the main sections of the paper are all located in the sections. In this way you will experience less merging issues when two or more people are working on the same doc.

Just edit the text in the relative Latex file (e.g., introduction, methodology, etc.) and you should be ready to go. No need to change any other file.

Adding a new section

Just copy a section file (e.g., introduction.tex) paste it in the same directory. Rename the pasted file (e.g. first_chapter.tex) and add this file to main.tex.

Additional Resources

Alternatively you can find great resources on the Overleaf Tutorial website or on Latex wikibooks.

CUDA installation

For CUDA implementation we use Numba library. For more information about CUDA installation see Numba CUDA installation guide.

Prerequisites

Latex

Latex IDE and compiler installed locally on your machine. We recommend using a PyCharm plugin called TeXiFy IDEA as IDE and miktex as Latex compiler

Alternatively you can push your code to Overleaf using git and only use Overleaf. We would discourage you from doing this! Overleaf should only be used for the review.

Useful Resources

IDE

You may want to take advantage of the power of IDEs. For Python We would recommend using PyCharm.

Alternatives are:

Git

You should install git on your computer. And have GitHub account.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Contributing

Dependencies

Use make deps command to install library, its production and development dependencies.

Formatting

Use make format to autoformat code with black tool.

Linter

Use make lint to run only linters for current python version

Test

Use make test to run test for current python version

Maintaining

If pull request consists of several meaningful commits, that should be preserved, then use "Rebase and merge" option. Otherwise use "Squash and merge".

New release (changelog, tag and pypi upload) will be automatically created on each push to master via Github Actions workflow.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redpic-0.10.5.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

redpic-0.10.5-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file redpic-0.10.5.tar.gz.

File metadata

  • Download URL: redpic-0.10.5.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for redpic-0.10.5.tar.gz
Algorithm Hash digest
SHA256 37d207de58573573e6433336b776833f4d064fbd9a9f534ee612187bc12967d1
MD5 b8a4ac3093dfb21c831a6e407a678596
BLAKE2b-256 e445bf22d9e60c6c4789e8403c2e09fe76e312d8edea27833c730c7233a74cc8

See more details on using hashes here.

File details

Details for the file redpic-0.10.5-py3-none-any.whl.

File metadata

  • Download URL: redpic-0.10.5-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for redpic-0.10.5-py3-none-any.whl
Algorithm Hash digest
SHA256 62c649da218b9917796c5f94ff384b79bea783a885356e4585ca1698ff1f0611
MD5 bc4a84cef804bc9a0a2f29ff6841c2b7
BLAKE2b-256 b2496d8c3c2f61ee031d3a84b4aa96329e95dc98550e456a77c3c020b1f4603e

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