-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch position and momentum updates to make particle push symplectic
The momentum update needs to use fields that are consistant with the current particle locations. This requires updating the momentum first, and then using this new momentum to push the particles. Essentially, the update is now p_(n - 1/2) -> p_(n + 1/2) x_n -> x_(n + 1) I am currently being pretty sloppy with the half timestep momentums, but that should probably be fixed in the future.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters