Skip to content

Conversation

rogeriojorge
Copy link
Collaborator

Added relativistic Boris pusher. Appears to work with relativistic two-stream instability and Weibel instability.

…ample scripts and implement relativistic equation of motion.
@rogeriojorge rogeriojorge requested review from Copilot and cwoolfo1 June 2, 2025 18:38
Copy link

@Copilot Copilot AI left a 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.

Copy link

codecov bot commented Jun 2, 2025

Codecov Report

Attention: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
jaxincell/_plot.py 75.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
jaxincell/_particles.py 100.00% <100.00%> (ø)
jaxincell/_simulation.py 89.24% <100.00%> (+0.42%) ⬆️
jaxincell/_plot.py 5.84% <75.00%> (+0.61%) ⬆️

… instability examples to prepare for output saving and loading
@rogeriojorge rogeriojorge requested a review from csvega24 June 2, 2025 18:42
Copy link
Member

@cwoolfo1 cwoolfo1 left a 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

@rogeriojorge
Copy link
Collaborator Author

line 288 should be 1/ sqrt( 1 - (velocities / speed_of_light)**2 ) of _simulation.py

Fixed!

@cwoolfo1 cwoolfo1 merged commit 0f67270 into main Jun 2, 2025
6 checks passed
@rogeriojorge rogeriojorge deleted the rj/relativistic_boris branch June 2, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants