Graduate 3D rendering of electric field lines of a swiftly moving charge

Click For Summary
A new program has been developed to render electric field lines of swiftly moving charges using the Liénard–Wiechert formula, creating static images and an animated video showcasing harmonic and circular movements. The source code is available on GitHub for users to explore and customize their own setups. Key features include a binary search for retarded time solutions and an 8th-order Runge-Kutta method for numerical integration, along with a self-developed 3D graphics engine. The visualizations enhance understanding of the spiral patterns described in the Jackson textbook. The animations are praised for their beauty and effective use of false color to illustrate the 3D fields.
euphoricrhino
Messages
23
Reaction score
14
TL;DR
Presenting rendering of electric field line of swiftly moving charges according to the Liénard–Wiechert formula. Video and source code are available.
Happy holidays folks.
So I spent some time over the Thanksgiving holidays and developed a program that renders electric field lines of swiftly moving charges according to the Liénard–Wiechert formula. The program generates static images based on the given trajectory of a charge (or multiple), and the images were compiled into a video that shows the animated field lines for harmonic movement and circular movement of a charge (or two charges).

Video:


The source code is available here https://github.com/euphoricrhino/go-common/tree/main/visualizer/examples/swift-charge-field-line

Key ingredients
* binary search for efficiently finding retarded time solution for arbitrary subluminal motion
* 8th-order Runge-Kutta Dopr853 for numerical integration
* self-developed 3D graphix engine for 3D space curve rendering (modified on top of freetype rasterizer with z-buffer sorting)

These renderings helped me get a better understanding of the "spiral" pattern mentioned in Jackson textbook.
You are welcome to play with the code with your own setups.
Happy Rendering!
 
  • Like
  • Love
Likes PAllen, Swamp Thing, OmCheeto and 4 others
Physics news on Phys.org
Those are beautiful animations. The false color really helps to visualize the 3D fields.
 
  • Like
Likes euphoricrhino
Wonderful! (And nice accompanying music as well.)
 
Happy holidays folks. So I spent some time over the Thanksgiving holidays and developed a program that renders electric field lines of swiftly moving charges according to the Liénard–Wiechert formula. The program generates static images based on the given trajectory of a charge (or multiple), and the images were compiled into a video that shows the animated field lines for harmonic movement and circular movement of a charge (or two charges). Video: The source code is available here...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K