Skip to main content

Python package for the data-driven Rosenbluth-Fokker-Planck equation.

Project description

Python Package for the Rosenbluth Fokker Planck (RFP) Equation

Currently, heavily under renovation (refactoring) from my old code (in my other private repository)

Description

This package is refactored version of a part of the pystops_ml code. I've separated only data generation and training part from pystops_ml.

Unlike pystops_ml, this module doesn't utilize distributed training. (DDP feature not needed)

This code is part of my paper, Data-Driven Stochastic Particle Scheme for Collisional Plasma Simulations.

  • Preprint is available at SSRN

Features

  • Data generation
    • Uncertainty quantification using the maximum entropy distribution (using pymaxed)
    • Axisymmetric evaluation of the Rosenbluth potentials and their derivatives
  • Data training: supports cpu, cuda, and mps training
  • Data-driven simulation: rfp-ann

Installation

You can install via pip

$python3 -m pip install pyrfp

Dependencies

  • Global

  • python >=3.10

  • torch >= 1.13.1

  • Personal project

    • pymaxed (for the Maximum Entropy Distribution)
    • pyapes (for the field solver)
    • pymytools (miscellaneous tools including data IO, logging, and progress bar)

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

pyrfp-0.1.2.tar.gz (19.4 kB view hashes)

Uploaded Source

Built Distribution

pyrfp-0.1.2-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

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