Skip to main content

A simple one zone code that can do many different flavours of flares

Project description

flaremodel

Overview

flaremodel is a Python package designed for one-zone modeling of astrophysical synchrotron sources.

The code aims to provide modular interface for the modeling of synchrotron sources with efficient low level utility functions written in C - the cfuncs module. These functions constitute the core of the flaremodel. The Python interface is built on top of these functions for convenience and guidance to formulate new models. Multithreading support is implemented with OpenMP at a lower level in the cfuncs module where it is found useful. At the same time, these low level functions bypass the infamous Global Interpreter Lock (GIL) of Python. In simple words, users can implement efficient high level multithreading on python side when low level C functions are used and avoid the costly overheads of multiprocessing.

Our documentation covers the installation, module references and examples.

The documentation mostly covers the usage of the code. The detailed methodology/physics are covered in our paper (to be added*). The examples introduced in the paper are provided as jupyter notebooks in notebooks/ directory of the tarball and can also serve as a test of the compiled code.

Please cite the paper when the code is used in academical studies. Note that the paper refers to our first stable release.

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

flaremodel-1.0.2.tar.gz (6.5 MB view details)

Uploaded Source

File details

Details for the file flaremodel-1.0.2.tar.gz.

File metadata

  • Download URL: flaremodel-1.0.2.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for flaremodel-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5269cc430ebc85eef9122f5495d5b12d289b6bb18286878d5767217499ab0678
MD5 1b7855176b3230e903e26eb3a54c3751
BLAKE2b-256 7166eec1a750b7e11580ca4e711d5ac109807e94493de33f3e9eeeb8937250ad

See more details on using hashes here.

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