Bijli — Electromagnetism Simulation
Hindi: बिजली (bijli) — electricity, lightning
Electromagnetism simulation for the AGNOS ecosystem. Electric and magnetic fields, Maxwell's equations, charge dynamics, and EM wave propagation.
Built on hisab for PDE solvers and impetus for particle interactions.
Quick Start
use field;
use ;
use maxwell;
// Electric field from a point charge
let e = electric_field_point_charge.unwrap;
// Coulomb force
let q1 = proton;
let q2 = electron;
let f = coulomb_force.unwrap;
// Speed of light from Maxwell's equations
let c = wave_speed.unwrap;
Features
| Feature | Default | Description |
|---|---|---|
field |
Yes | Electric/magnetic vector fields, potentials |
maxwell |
Yes | Maxwell's equations, wave speed, impedance |
charge |
Yes | Point charges, Coulomb, Lorentz force |
wave |
Yes | EM wave propagation, Poynting vector |
ai |
No | Daimon/hoosh AI integration |
logging |
No | Structured logging via BIJLI_LOG |
Architecture
bijli
├── field — FieldVector, point charge fields, potentials, energy density
├── maxwell — Gauss's law, wave speed, impedance, skin depth
├── charge — PointCharge, Coulomb force, Lorentz force, cyclotron
├── wave — Poynting vector, plane waves, radiation pressure
├── error — BijliError
├── ai — DaimonClient (optional)
└── logging — Structured logging (optional)
Consumers
- kiran — EM effects in game physics
- joshua — EM simulation mode
- prakash — optics builds on EM foundations
Building
License
GPL-3.0 — see LICENSE.