Skip to content
Projects

Inductive field 3D

The equations of carafe.spatial.inductive3d, declared on the code that implements them and checked by the tests.

ImpedanceConductor3D

classsource

A good conductor as a surface-impedance (Leontovich) boundary on cut cells.

leontovich
Et=Zs H×n,Zs=(1+i)ωμ02σ=1+iσδ\mathbf E_t = Z_s\,\mathbf H\times\mathbf n, \qquad Z_s = (1 + i)\sqrt{\frac{\omega\mu_0}{2\sigma}} = \frac{1 + i}{\sigma\delta}
resistance
Re Zs=ωμ02σ\mathrm{Re}\,Z_s = \sqrt{\frac{\omega\mu_0}{2\sigma}}
loss
P=12Re(Zs) ∣Ht∣2 per areaP = \tfrac12\mathrm{Re}(Z_s)\,|H_t|^2 \text{ per area}
Assumes
  • a good conductor whose skin depth is small against its thickness and radii of curvature; n\mathbf n into the metal

InductiveField3D

classsource

The 3D time-harmonic magnetoquasistatic field of coils and conductors.

field
∇×(ν∇×A)+iωσA=Jcoil,ν=1μ0,E=−iωA\nabla\times(\nu\nabla\times\mathbf A) + i\omega\sigma\mathbf A = \mathbf J_\mathrm{coil}, \qquad \nu = \frac{1}{\mu_0}, \qquad \mathbf E = -i\omega\mathbf A
system
(CTMνC+iωMσ+Mg)a=j,ae=∫eA⋅dl\left(C^T M_\nu C + i\omega M_\sigma + M_g\right) a = j, \qquad a_e = \int_e\mathbf A\cdot d\mathbf l
hodge
Mν=diagLf∗Df,Mσ=diagσeAe∗Le,Mg=ϵμ0l2diagAe∗LeM_\nu = \mathrm{diag}\frac{L^*_f}{D_f}, \qquad M_\sigma = \mathrm{diag}\frac{\sigma_e A^*_e}{L_e}, \qquad M_g = \frac{\epsilon}{\mu_0 l^2}\mathrm{diag}\frac{A^*_e}{L_e}
coil
J=∇×T,T=nIe^ inside the coil,j=CT(TL∗) ⇒ GTj=0\mathbf J = \nabla\times\mathbf T, \quad \mathbf T = n I\hat{\mathbf e} \text{ inside the coil}, \qquad j = C^T(T L^*) \ \Rightarrow\ G^T j = 0
cut face
Df=μ0Afair−iZswfω,Hf=bfDfD_f = \mu_0 A^\mathrm{air}_f - \frac{i Z_s w_f}{\omega}, \qquad H_f = \frac{b_f}{D_f}
Assumes
  • finite integration on a uniform Yee grid, temporal gauge, no displacement current
  • ϵ\epsilon = regularization (10−610^{-6}): a weak Coulomb gauge in the insulator, real (no loss), shifting the inductance by O(ϵ)O(\epsilon); ll the box's largest side
  • AfairA^\mathrm{air}_f floored at min_air_fraction ⋅Af\cdot A_f in the reluctance only; faces with Df=0D_f = 0 get zero
  • volume conductors on the edges by the midpoint or samples3^3 sub-points (harmonic along, arithmetic across the edge)
  • direct: SuperLU in a nested-dissection order without pivoting; iterative: COCG with the auxiliary-space preconditioner
References
Built from

face_field_factor

functionsource

H_f = factor * b_f on every face [A/(m Wb)].

stokes
μ0AfairHf=bf+iZswfωHf,At=iωZs H×n along the metal\mu_0 A^\mathrm{air}_f H_f = b_f + \frac{i Z_s w_f}{\omega} H_f, \qquad \mathbf A_t = \frac{i}{\omega} Z_s\,\mathbf H\times\mathbf n \text{ along the metal}
factor
Hf=bfDf,Df=μ0Afair−iZswfω(μ0Af without impedance conductors)H_f = \frac{b_f}{D_f}, \qquad D_f = \mu_0 A^\mathrm{air}_f - \frac{i Z_s w_f}{\omega} \quad (\mu_0 A_f \text{ without impedance conductors})
Assumes
  • H\mathbf H tangent to the metal: (H×n)⋅dl=Hf dl/sin⁡θ(\mathbf H\times\mathbf n)\cdot d\mathbf l = H_f\, dl/\sin\theta, which integrates to HfwfH_f w_f
References
  • Dey and Mittra (conformal cut faces with a surface impedance)

InductiveSolution3D

classsource

The time-harmonic field of InductiveField3D.solve, as complex amplitudes.

power
S=12iω a⋅jˉ,Z=2S∣I∣2=R+iωLS = \tfrac12 i\omega\, a\cdot\bar j, \qquad Z = \frac{2S}{|I|^2} = R + i\omega L
losses
Pσ=12ω2aHMσa,PZ=12∑fRe(Zs)∣Hf∣2wfLf∗P_\sigma = \tfrac12\omega^2 a^H M_\sigma a, \qquad P_Z = \tfrac12\sum_f\mathrm{Re}(Z_s)|H_f|^2 w_f L^*_f
field
Bf=μ0Hf(bfAf without impedance conductors)B_f = \mu_0 H_f \quad \left(\frac{b_f}{A_f} \text{ without impedance conductors}\right)
Assumes
  • the losses sum to Re S\mathrm{Re}\,S to round-off