-
Notifications
You must be signed in to change notification settings - Fork 5
Rj/relativistic boris #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ce input files and plotting functionality
…ample scripts and implement relativistic equation of motion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a relativistic Boris pusher to support simulations involving relativistic plasmas and updates the simulation, particle, plotting, and configuration files accordingly.
- Added a new parameter "relativistic" in simulation initialization and input configurations.
- Integrated a new relativistic Boris pusher branch that leverages a new function boris_step_relativistic.
- Adjusted plotting parameters and configuration values to align with the relativistic update approach.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
jaxincell/_simulation.py | Introduces the relativistic flag, caps velocities, and uses conditional logic to select between relativistic and classical Boris steps; computes diagnostic gamma factors. |
jaxincell/_plot.py | Updates field plot extents and rearranges import order. |
jaxincell/_particles.py | Adds the relativistic_rotation and boris_step_relativistic functions. |
examples/input.toml | Adjusts parameters to work with the new relativistic option. |
example_input.toml | Adds the relativistic parameter to the configuration. |
README.md | Updates the project roadmap to indicate the relativistic feature has been implemented. |
Codecov ReportAttention: Patch coverage is
|
… instability examples to prepare for output saving and loading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 288 should be 1/ sqrt( 1 - (velocities / speed_of_light)**2 ) of _simulation.py
Fixed! |
Added relativistic Boris pusher. Appears to work with relativistic two-stream instability and Weibel instability.