structure
definition
Sources
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.MaxwellDEC on GitHub at line 47.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
formal source
44 mu : ℝ
45
46/-- Sources (charge and current). -/
47structure Sources (α : Type) where
48 ρ : DForm α 0
49 J : DForm α 1
50
51variable {α : Type}
52
53/-- Quasi-static Maxwell equations on the mesh (no time derivative terms).
54 Faraday and Gauss-M are stated cleanly. Constitutive relations (const_D, const_B)
55 and source equations (ampere_qs, gauss_e) require dimension n=3 for form-degree
56 alignment, so they are parameterized by the dimension hypothesis `hn`. -/
57structure Equations (α : Type) [HasCoboundary α] [inst : HasHodge α] (M : Medium α) where
58 E : DForm α 1
59 H : DForm α 1
60 B : DForm α 2
61 D : DForm α 2
62 src : Sources α
63 /-- Faraday QS: curl E = 0 (no time-varying B in quasistatic limit) -/
64 faraday_qs : HasCoboundary.d E = fun _ => 0
65 /-- Ampere QS: d H = star J (requires n-1=2 for form-degree alignment) -/
66 ampere_qs : ∀ (hn : inst.n - 1 = 2),
67 HasCoboundary.d H = cast (congrArg (DForm α) hn) (HasHodge.star src.J)
68 /-- Gauss E: d D = star rho (requires n-0=3 for form-degree alignment) -/
69 gauss_e : ∀ (hn : inst.n - 0 = 3),
70 HasCoboundary.d D = cast (congrArg (DForm α) hn) (HasHodge.star src.ρ)
71 /-- Gauss M: div B = 0 (no magnetic monopoles) -/
72 gauss_m : HasCoboundary.d B = fun _ => 0
73 /-- Constitutive: D = ε⋆E (requires n-1=2 for form-degree alignment) -/
74 const_D : ∀ (hn : inst.n - 1 = 2), D = hn ▸ (fun s => M.eps * HasHodge.star E s)
75 /-- Constitutive: B = μ⋆H (requires n-1=2 for form-degree alignment) -/
76 const_B : ∀ (hn : inst.n - 1 = 2), B = hn ▸ (fun s => M.mu * HasHodge.star H s)
77