Solve electromagnetic induction

From pjt222/agent-almanac · View interactive version

Solve electromagnetic induction is an AI agent skill from the GitHub repository pjt222/agent-almanac. Solve problems involving changing magnetic flux using Faraday's law, Lenz's law, motional EMF, mutual and self-inductance, and RL circuit transients. Use when computing induced EMF from time-varying B-fields or moving conductors, determining current direction via Lenz's law, analyzing inductance and

How to use this skill

Skill file

Solve Electromagnetic Induction

Analyze electromagnetic induction phenomena by identifying the source of changing magnetic flux, computing the flux through the relevant surface, applying Faraday's law to obtain the induced EMF, determining the induced current direction via Lenz's law, and solving the resulting circuit equations including RL transients and energy stored in the magnetic field.

When to Use

Inputs

Procedure

Step 1: Identify Source of Changing Flux

Classify the physical mechanism that produces a time-varying magnetic flux:

  1. Changing B-field: The magnetic field itself varies in time (e.g., AC electromagnet, approaching magnet, current ramp in a nearby coil). The loop is stationary.
  2. Changing area: The loop area changes (e.g., expanding or contracting loop, rotating coil in a static field). The B-field may be static.
  3. Moving conductor (motional EMF): A straight conductor moves through a static B-field. The flux change arises from the conductor sweeping out area.
  4. Combined: Both the field and geometry change simultaneously (e.g., a coil rotating in a time-varying field). Separate the contributions for clarity.

For each mechanism, identify the relevant surface S bounded by the circuit loop C:

## Flux Change Classification
- **Mechanism**: [changing B / changing area / motional / combined]
- **Surface S**: [description of the surface bounded by the loop]
- **Time dependence**: [which quantities vary: B(t), A(t), v(t), theta(t)]
- **Relevant parameters**: [B magnitude, loop dimensions, velocity, angular frequency]

Got: A clear identification of why the flux changes, what surface to integrate over, and which physical quantities carry the time dependence.

If fail: If the source of changing flux is ambiguous (e.g., a deforming loop in a non-uniform field), decompose the problem into a sum of contributions: one from the field change at fixed geometry, and one from the geometry change in the instantaneous field. This decomposition is always valid.

Step 2: Calculate Magnetic Flux Through the Relevant Surface

Compute the magnetic flux Phi_B = integral of B . dA over the surface S:

  1. Uniform field, flat loop: Phi_B = B * A * cos(theta), where theta is the angle between B and the area normal vector n_hat. This is the most common textbook case.
  1. Non-uniform field: Parameterize the surface S and evaluate the integral:
  1. Coupled coils (mutual inductance): For coil 2 linked to coil 1:
  1. Self-inductance: For a single coil carrying current I:
  1. Time dependence: Express Phi_B(t) explicitly by substituting the time-varying quantities identified in Step 1.
## Flux Calculation
- **Flux expression**: Phi_B(t) = [formula]
- **Evaluation**: [analytic / numeric]
- **Flux linkage** (if multi-turn): Lambda = N * Phi_B = [formula]
- **Inductance** (if applicable): L = [value with units] or M = [value with units]

Got: An explicit expression for Phi_B(t) with correct units (Weber = T . m^2) and, if applicable, inductance values with units of Henry.

If fail: If the flux integral cannot be evaluated analytically (e.g., non-uniform field over a non-trivial surface), use numerical quadrature. For mutual inductance of complex geometries, consider the Neumann formula: M = (mu_0 / 4 pi) * double_contour_integral of (dl_1 . dl_2) / |r_1 - r_2|.

Step 3: Apply Faraday's Law for Induced EMF

Compute the induced EMF from the time derivative of the flux:

  1. Faraday's law: EMF = -d(Lambda)/dt = -N * d(Phi_B)/dt. The negative sign encodes Lenz's law (opposition to the change).
  1. Differentiation: Take the total time derivative of Phi_B(t):
  1. Motional EMF (alternative derivation): For a conductor of length l moving with velocity v in field B:
  1. Sign and magnitude check: The magnitude of EMF should be physically reasonable. For typical laboratory setups: mV to V range. For power generation: V to kV range.
## Induced EMF
- **EMF expression**: EMF(t) = [formula]
- **Peak EMF** (if AC): EMF_0 = [value with units]
- **RMS EMF** (if AC): EMF_rms = EMF_0 / sqrt(2) = [value]
- **Derivation method**: [Faraday's law / motional EMF / Leibniz rule]

Got: An explicit expression for EMF(t) with correct units (Volts) and physically reasonable magnitude.

If fail: If the EMF has wrong units, trace back to the flux calculation -- a missing factor of area or an inconsistent unit system (e.g., mixing CGS and SI) is the most likely cause. If the EMF sign seems wrong, re-examine the surface normal orientation relative to the circuit loop direction (right-hand rule).

Step 4: Determine Current Direction via Lenz's Law

Establish the direction of the induced current and its physical consequences:

  1. Lenz's law statement: The induced current flows in the direction that opposes the change in magnetic flux that produced it. This is a consequence of energy conservation.
  1. Application procedure:
  1. Force consequences: The induced current in the presence of the external B-field experiences a force:
  1. Qualitative verification: The induced effects should always resist the change. A falling magnet through a conducting tube falls slower than in free fall. A generator requires mechanical work input to produce electrical energy.
## Current Direction
- **Flux change**: [increasing / decreasing]
- **Induced B direction**: [opposing increase / supporting decrease]
- **Current direction**: [CW / CCW as viewed from specified direction]
- **Mechanical consequence**: [braking force / levitation / energy transfer]

Got: A clearly stated current direction that is consistent with Lenz's law, with the physical consequence (force, braking, energy transfer) identified.

If fail: If the current direction seems to amplify the flux change rather than oppose it, the surface normal orientation or the right-hand rule application is reversed. Re-examine the loop orientation convention. A current that reinforces the flux change would violate energy conservation.

Step 5: Solve Resulting Circuit Equation

Formulate and solve the circuit equation including the inductance:

  1. RL circuit formation: When the induced EMF drives current through a circuit with resistance R and inductance L, Kirchhoff's voltage law gives:
  1. Solution of the first-order ODE:
  1. Energy analysis:
  1. Mutual inductance coupling: For two coupled coils with mutual inductance M:
  1. Steady-state and transient separation: For AC-driven circuits, decompose the solution into a transient (decaying exponential) and steady-state (sinusoidal at the drive frequency). Report impedance Z_L = j omega L and phase angle.
## Circuit Solution
- **Circuit type**: [RL energizing / de-energizing / AC driven / coupled coils]
- **Time constant**: tau = L/R = [value with units]
- **Current solution**: I(t) = [expression]
- **Energy stored**: U_L = [value at specified time]
- **Energy dissipated**: [total or rate]
- **Steady-state impedance** (if AC): Z_L = [value]

Got: A complete time-domain solution for the current with correct exponential time constants, energy balance verified, and physically reasonable magnitudes.

If fail: If the current grows without bound, a sign error in the ODE setup is likely (the inductance term should oppose changes in current). If the time constant is unreasonably large or small, double-check the inductance calculation from Step 2 and the resistance value. Time constants for typical laboratory RL circuits range from microseconds to seconds.

Validation

Pitfalls

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.