Bijli — Electromagnetism Simulation
Hindi: बिजली (bijli) — electricity, lightning
Electromagnetism simulation for the AGNOS ecosystem. Fields, Maxwell's equations, charge dynamics, EM wave propagation, optics, scattering, FDTD solvers, RF/microwave, and GPU compute.
Built on hisab for PDE solvers and impetus for particle interactions.
Quick Start
use field;
use PointCharge;
use Material;
// Electric field from a point charge
let q = proton;
let e = q.electric_field_at.unwrap;
// Reflectance at air-glass interface
let air = vacuum;
let glass = dielectric;
let r = air.reflectance_at; // 4%
// 2D FDTD simulation
use ;
let mut sim = new.unwrap;
sim.set_material.unwrap;
sim.run;
Modules
| Module | Default | Description |
|---|---|---|
field |
Yes | Electric/magnetic fields, potentials, dipoles, multipoles, Green's functions, stress tensor |
maxwell |
Yes | Maxwell's equations, wave speed, impedance, skin depth |
charge |
Yes | Point charges, Coulomb/Lorentz force, cyclotron frequency |
wave |
Yes | EM waves, Fresnel equations, waveguides, antenna patterns |
circuit |
Yes | Ohm's law, RC/RL/RLC circuits, series/parallel combinations |
material |
Yes | Dielectric/magnetic materials, unified Material struct |
fdtd |
Yes | 1D/2D/3D FDTD solvers, CPML, dispersive materials, NF2FF, eigenmode |
relativity |
Yes | EM tensor, Lorentz transforms, Liénard-Wiechert fields, retarded time |
polarization |
Yes | Jones/Stokes/Mueller formalism, optical elements |
scattering |
Yes | Mie and Rayleigh scattering |
beam |
Yes | Gaussian beams, ABCD matrices, resonator stability, HG/LG modes |
rf |
Yes | Transmission lines, S-parameters, Smith chart, Touchstone I/O, arrays |
compute |
No | GPU compute backend trait (CPU/soorat/wgpu) |
ai |
No | Daimon/hoosh AI integration |
logging |
No | Structured logging via BIJLI_LOG |
Consumers
- kiran — EM effects in game physics, sky rendering, volumetric scattering
- joshua — Full EM simulation, RF circuits, antenna design, 3D FDTD
- prakash — Optical systems, polarization, beam propagation
Building
License
GPL-3.0 — see LICENSE.