Skip to main content

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.

Release files for redpic 0.11.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redpic 0.11.8
File Size Uploaded
redpic-0.11.8.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for redpic 0.11.8
File Interpreter ABI Platform
redpic-0.11.8-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / redpic-0.11.8.tar.gz

Download URL redpic-0.11.8.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9978316dd691ab235693b1cc6c249a1125c0f740c4352e4d4aa8fe10f31eae2d
BLAKE2b-256 checksum
How to use checksums
31a29f7e21a61373a75fc9a5f39ac63f1017c9e7e79b5bbe6a00656ea0ea6dec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / redpic-0.11.8-py3-none-any.whl

Download URL redpic-0.11.8-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1c8d2cac2729444ed5014f261c680eb635ef54c6e4255bea161d2c445e10be4
BLAKE2b-256 checksum
How to use checksums
752fe59747dc3af940ae38fe01d8dcf92367d1ca3a0fd3dc67ac3563cd2817bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.11.8 This release

2 release files

0.10.3

2 release files

0.9.5

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.8.1

2 release files

0.7.58

2 release files

0.7.57

2 release files

0.7.56

2 release files

0.7.55

2 release files

0.7.54

2 release files

0.7.53

2 release files

0.7.51

2 release files

0.7.50

2 release files

0.7.49

2 release files

0.7.48

2 release files

0.7.47

2 release files

0.7.45

2 release files

0.7.44

2 release files

0.7.43

2 release files

0.7.42

2 release files

0.7.41

2 release files

0.7.40

2 release files

0.7.39

2 release files

0.7.38

2 release files

0.7.37

2 release files

0.7.36

2 release files

0.7.35

2 release files

0.7.34

2 release files

0.7.33

2 release files

0.7.32

2 release files

0.7.31

2 release files

0.7.30

2 release files

0.7.29

2 release files

0.7.28

2 release files

0.7.27

2 release files

0.7.26

2 release files

0.7.25

2 release files

0.7.24

2 release files

0.7.23

2 release files

0.7.22

2 release files

0.7.21

2 release files

0.7.20

2 release files

0.7.19

2 release files

0.7.18

2 release files

0.7.17

2 release files

0.7.16

2 release files

0.7.15

2 release files

0.7.14

2 release files

0.7.13

2 release files

0.7.12

2 release files

0.7.11

2 release files

0.7.9

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.1

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page