Skip to main content

Python base classes for PICMI standard

Project description

PICMI

The Particle-In-Cell Modeling Interface (PICMI) standard establishes conventions for the naming and structuring of input files for Particle-In-Cell simulations.

The goal of the standard is to propose a set (or dictionary) of names and definitions that can be used in simulations, with as little changes as possible between codes.

Just as two persons do generally not use the exact same set of words from a dictionary (whatever the language), each code will use syntax (associated with unique functionalities of the code) that others will not. However, it is expected that, just like two persons will use and understand the same words and syntax for the most common topics, codes will share the same language for common definitions and tasks.

For example, it is expected that most PIC codes can share the same syntax to define a grid, a commonly-used field solver, a set of particles, etc. On the other hand, only a subset of the codes will offer, e.g. mesh refinement, field ionization, or code steering by the user. In this case, it is up to the implementation with each code to decide whether to ignore, raise a warning or an error, when an undefined statement is encountered. For more flexibility and robustness, conditional statements are available to the user to execute or read lines of the input script, based on the targeted code.

The intent is for the standard to be agnostic of the language of implementation, which can then potentially be performed using JSON, Python, FORTRAN or other means.

Warning: The standard is still evolving at this point. The most basic components of the standard have been defined and are being refined. New components are being added.

Contents of this repository

This repository contains:

  • A set of example scripts that use the PICMI standard (in the directory Examples)

  • A Python package that contains the base classes for the implementation of the PICMI standard (in the directory PICMI_Python). It is best to install the package from PyPI:

    pip install picmistandard
    

    Optionally, it can be installed from the source (run from the main directory where the pyproject.toml file is).

    python -m pip install .
    

    (The code will be automatically uploaded to PyPI upon creation of a new release on Github.)

  • The sources to generate the Sphinx documentation for the PICMI standard (in the directory Docs). In order to generate the Sphinx documentation, first install Sphinx, as well as the version of the PICMI standard that you would like to document (e.g. via python setup.py). Then type:

    cd Docs
    make html
    

    You can then view the documentation by opening the file Docs/build/html/index.html with a standard web browser.

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

picmistandard-0.34.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

picmistandard-0.34.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file picmistandard-0.34.0.tar.gz.

File metadata

  • Download URL: picmistandard-0.34.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for picmistandard-0.34.0.tar.gz
Algorithm Hash digest
SHA256 28db66c652c7ce7bedf79ecf7e764a02fa5e51ac05a2fb1cf9433354ac056ec1
MD5 ea9298f2c9d1e4f44b9e98cf0ea44c8f
BLAKE2b-256 7dd3822f5862294ea787fdf9de4a85c78cc5a20e1e0434feb9c52b7318232539

See more details on using hashes here.

Provenance

The following attestation bundles were made for picmistandard-0.34.0.tar.gz:

Publisher: publish-to-pypi.yml on picmi-standard/picmi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file picmistandard-0.34.0-py3-none-any.whl.

File metadata

  • Download URL: picmistandard-0.34.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for picmistandard-0.34.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6879ed821c0c2a75d8ac0a7ee95e190146a4be72a3896bcf35ad70272da48b6
MD5 848264b30ebd0d4c180b87b3a554864f
BLAKE2b-256 3230ca8dc969caab18241c2b23e181569b6ceef0d97756446cdaeac8b94e1939

See more details on using hashes here.

Provenance

The following attestation bundles were made for picmistandard-0.34.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on picmi-standard/picmi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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