Skip to content

Use plasmapy.physics for plasma parameter calculations? #27

@namurphy

Description

@namurphy

The plasmapy.physics contains a bunch of functions to calculate plasma parameters, such as many of the ones in bapsflib.plasma.core. In plasmapy.transport, we also have some functions for collision frequencies, transport coefficients, and Coulomb logarithms. One possibility would be for bapsflib to use the functions in PlasmaPy instead.

This would also involve using the functionality in plasmapy.atomic which provides access to basic atomic and particle data. This subpackage lets us avoid having to figure out details like ion masses and things like that. The most important features are the Particle class and particle_input decorator.

Because PlasmaPy heavily uses astropy.units, this issue would need to be addressed after #26 is addressed.

One potential issue is that the API of PlasmaPy is still pretty unstable and things are likely to keep changing around for a while. I think plasmapy.atomic is probably our most stable subpackage. The API for plasmapy.physics may change somewhat, possibly including renaming it to something like plasmapy.parameters. The API of plasmapy.transport is probably going to change a lot. A strategy to get around this would be to set up an interface within bapsflib that does the calling of the PlasmaPy functions. That way, the calls to PlasmaPy would only need to be changed in one place if PlasmaPy's API changes, so the API within the rest of bapsflib could have a consistent API.

In any case, I would be very happy to talk more about this. The ultimate goal of PlasmaPy is to foster the creation of an open source software ecosystem for plasma physics, so it would be fantastic to work together.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions