Skip to main content

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

Project description

Relativistic Difference Scheme Particles-In-Cell (REDPIC)

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.

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.7.47.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

redpic-0.7.47-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: redpic-0.7.47.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for redpic-0.7.47.tar.gz
Algorithm Hash digest
SHA256 9ec735f4017a5b2065c0634468b53f858fdb3d4bcdc5c7adeb0dd450f78eb332
MD5 d6b7b7bcb817b9a4f8e572568188fa18
BLAKE2b-256 1e61d5de253c53b7062e8f6c312cf69166c099ccece4f22582bad5e0e8a599a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: redpic-0.7.47-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for redpic-0.7.47-py3-none-any.whl
Algorithm Hash digest
SHA256 2b6a149f4c656fa6280f0e57160852ab843e1ad8037afd96d92c80384837b2a6
MD5 48c5223dd9fd81bfa14059adef1f834b
BLAKE2b-256 1801740aaefdf77aace428b43d2cab5c533a3768038bc46d3389dcf5c914cf1f

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