计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
formulate-maxwell-equations【效率与协作】Work with the full set of Maxwell's equations in integral and differential form to analyze electromagnetic fields, waves, and energy transport. Use when applying Gauss's law, Faraday's law, or the Ampere-Maxwell law to boundary value problems, deriving the electromagnetic wave equation, computing Poynting vector and radiation pressure, solving for fi…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Crack EM stuff. State right Maxwell equations (integral or differential). Apply boundary + symmetry to shrink system. Solve PDEs for fields. Compute Poynting vector, radiation pressure, wave impedance. Verify against static + wave limits.
Write full set, choose which constrain problem:
Gauss for E: div(E) = rho / epsilon_0 (diff) or closed_surface_integral(E . dA) = Q_enc / epsilon_0 (int). E divergence to charge density. Use for E from charge with symmetry.
Gauss for B: div(B) = 0 (diff) or closed_surface_integral(B . dA) = 0 (int). No magnetic monopoles. Every B line closed loop. Consistency check on B.
Faraday: curl(E) = -dB/dt (diff) or contour_integral(E . dl) = -d(Phi_B)/dt (int). Changing B makes curling E. Induction + wave derivation.
Ampere-Maxwell: curl(B) = mu_0 J + mu_0 epsilon_0 dE/dt (diff) or contour_integral(B . dl) = mu_0 I_enc + mu_0 epsilon_0 d(Phi_E)/dt (int). Current + changing E make curling B. Displacement current term mu_0 epsilon_0 dE/dt essential for wave + current continuity.
Form pick: Differential for local fields, wave equations, PDEs. Integral for high-symmetry where field extracts direct.
Active equations: Not all four independent every problem. Electrostatics (dB/dt = 0, J = 0) → only Gauss for E + curl(E) = 0 matter. Magnetostatics → Gauss for B + Ampere (no displacement current) enough.
## Maxwell Equations for This Problem
- **Form**: [differential / integral / both]
- **Active equations**: [list which of the four are non-trivial constraints]
- **Source terms**: rho = [charge density], J = [current density]
- **Time dependence**: [static / harmonic / general]
- **Displacement current**: [negligible / essential -- with justification]
Got: Four equations stated. Relevant subset identified with justification. Displacement current included or explicitly argued negligible.
If fail: Unclear if displacement current matters? Estimate |epsilon_0 dE/dt| / |J|. Ratio near 1 or bigger → keep displacement current. Vacuum no free charges → always essential for wave.
Shrink system with material interfaces + geometric symmetry:
Boundary at material interfaces: Medium 1 + 2, surface charge sigma_f + surface current K_f:
Conductor boundary: Perfect conductor surface:
Symmetry shrink: Use symmetries to cut independent variables:
Gauge choice (using potentials): Pick gauge for scalar phi + vector A:
## Boundary Conditions and Symmetry
- **Interfaces**: [list with media properties on each side]
- **Boundary conditions applied**: [normal E, tangential E, normal B, tangential H]
- **Symmetry**: [planar / cylindrical / spherical / none]
- **Reduced coordinates**: [independent variables after symmetry reduction]
- **Gauge** (if using potentials): [Coulomb / Lorenz / other]
Got: Boundary conditions stated every interface. Symmetry cuts dimension. Problem ready for PDE solution.
If fail: Over-determined (more equations than unknowns)? Check field components match conditions. Under-determined? Missed condition — often tangential H or radiation at infinity.
Solve Maxwell equations or derived forms for field quantities:
Wave equation derive: Source-free, linear, homogeneous medium:
Plane wave solutions: Wave in z-direction:
Laplace + Poisson (static):
Guided waves + cavities: Waveguides + resonant cavities:
Skin depth in conductors: Time-varying fields into conductor conductivity sigma_c:
## Field Solution
- **Equation solved**: [wave equation / Laplace / Poisson / eigenvalue]
- **Solution method**: [separation of variables / Fourier transform / Green's function / numerical]
- **Result**: E(r, t) = [expression], B(r, t) = [expression]
- **Dispersion relation**: omega(k) = [if wave solution]
- **Characteristic scales**: [wavelength, skin depth, decay length]
Got: Explicit field expressions satisfying Maxwell + all boundary. Dispersion relation or eigenvalue spectrum if applicable.
If fail: PDE won't separate in chosen coordinates? Try different system or numerical (finite difference, finite element). Solution fails a Maxwell equation on back-sub? Algebraic error — re-check curl + divergence.
Pull physical quantities from field solution:
Poynting vector: S = (1/mu_0) E x B (instantaneous energy flux, W/m^2):
EM energy density:
Radiation pressure: Plane wave on surface:
Wave impedance:
Power dissipation + quality factor:
## Derived Quantities
- **Poynting vector**: S = [expression], <S> = [time-averaged]
- **Energy density**: u = [expression]
- **Radiation pressure**: P_rad = [value]
- **Wave impedance**: eta = [value]
- **Reflection/transmission**: r = [value], t = [value]
- **Q-factor** (if resonant): Q = [value]
Got: All derived quantities with right units. Energy conservation verified via Poynting's theorem. Magnitudes physically reasonable.
If fail: Poynting's theorem won't balance (du/dt + div(S) != -J . E)? Inconsistency E + B solutions. Re-verify both fields satisfy all four Maxwell. Common error: E + B from different approximations not mutually consistent.
Check solution reduces correctly in limits:
Static limit (omega -> 0): Solution → electrostatic or magnetostatic:
Plane wave limit: Source-free unbounded medium → plane waves, v = 1/sqrt(mu epsilon), correct polarization.
Perfect conductor limit (sigma -> infinity):
Vacuum limit (epsilon_r = 1, mu_r = 1): Material-dependent → vacuum values. Wave speed = c. Impedance = eta_0 ~ 377 Ohms.
Energy conservation check: Integrate Poynting's theorem over closed volume. Rate of change of total field energy + power flowing out = negative of power from currents inside. Any imbalance = error.
## Limiting Case Verification
| Limit | Condition | Expected | Obtained | Match |
|-------|-----------|----------|----------|-------|
| Static | omega -> 0 | Coulomb / Biot-Savart | [result] | [Yes/No] |
| Plane wave | unbounded medium | v = c/n, eta = eta_0/n | [result] | [Yes/No] |
| Perfect conductor | sigma -> inf | delta -> 0, r -> -1 | [result] | [Yes/No] |
| Vacuum | epsilon_r = mu_r = 1 | c, eta_0 | [result] | [Yes/No] |
| Energy conservation | Poynting's theorem | balanced | [check] | [Yes/No] |
Got: All limits produce correct known results. Energy conservation satisfied to numerical precision.
If fail: Failed limit = definite error. Static limit fail → source terms or boundary. Plane wave limit fail → wave equation derivation. Energy conservation fail → inconsistency E + B. Trace failure to step, fix before accepting.
analyze-magnetic-field -- compute static B-fields = magnetostatic limit of Maxwellsolve-electromagnetic-induction -- apply Faraday to induction geometries + RL circuitsformulate-quantum-problem -- quantize EM field for quantum optics + QEDderive-theoretical-result -- rigorous derivation of wave equations, Green's functions, dispersionanalyze-diffusion-dynamics -- diffusion equations from Maxwell in conducting media (skin effect)