Skip to content

3D solver of Maxwell Equations using Lienard-Wiechert potentials and retarded times

Notifications You must be signed in to change notification settings

richardnies/Lienard_Wiechert_solver

Repository files navigation

---------------------------------------------------------------------------------------------
-----------------------------------  LIENARD-WIECHERT SOLVER --------------------------------
---------------------------------------------------------------------------------------------
by Richard Nies
[email protected]

---------------------------------------------------------------------------------------------
-----------------------------------  SUMMARY  -----------------------------------------------
---------------------------------------------------------------------------------------------

Solves the equations of motion for N particles by using the Lienard Wiechert potentials for moving point charges

---------------------------------------------------------------------------------------------
-----------------------------------  COMPILATION  -------------------------------------------
---------------------------------------------------------------------------------------------

make -C source

---------------------------------------------------------------------------------------------
-----------------------------------  RUN  ---------------------------------------------------
---------------------------------------------------------------------------------------------


./simulation inputFile [outputVar outputFile] [outputVar outputFile] ...

current outputVar supported: pos


---------------------------------------------------------------------------------------------
-----------------------------------  INPUT FILE  --------------------------------------------
---------------------------------------------------------------------------------------------


Put particle initialisation in file, e.g. "input.txt", in the following format:

"dt total_steps
m q x_0 y_0 z_0 vx_0 vy_0 vz_0
... (for each particle)
"

with m and q the particle mass and charge in units of positron mass and charge, x/y/z_0 the initial positions (at t = 0*dt) and vx/vy/vz_0 the initial velocities (at t = -1/2 * dt)

About

3D solver of Maxwell Equations using Lienard-Wiechert potentials and retarded times

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published