Skip to content
Projects

Curl–curl

The equations of patchwork.solvers.curl_curl, declared on the code that implements them and checked by the tests.

CurlCurl

classsource

Solve ∇×(ν∇×A)+βA=J\nabla\times(\nu\nabla\times\mathbf{A}) + \beta\mathbf{A} = \mathbf{J} on the edges.

problem
∇×(ν ∇×A)+β A=J,A×n=0 (electric faces)\nabla\times(\nu\,\nabla\times\mathbf{A}) + \beta\,\mathbf{A} = \mathbf{J}, \qquad \mathbf{A}\times\mathbf{n} = 0 \ \text{(electric faces)}
operator
K=T1⊤(C⊤M2(ν) C+M1(β)+ϵ M1(ν/h2)+Me) T1K = T_1^\top\big(C^\top M_2(\nu)\,C + M_1(\beta) + \epsilon\, M_1(\nu / h^2) + M_e\big)\,T_1
materials
M2(ν)→M2′ (face_mass),Me (edge_mass),ek=0 (fixed)M_2(\nu) \to M_2' \ (\texttt{face\_mass}), \qquad M_e \ (\texttt{edge\_mass}), \qquad e_k = 0 \ (\texttt{fixed})
load
b=T1⊤ℓ,ℓe=∫J⋅we dV(ℓ=M1j for edge values j of J)b = T_1^\top \ell, \qquad \ell_e = \int \mathbf{J}\cdot\mathbf{w}_e\, dV \quad (\ell = M_1 j \text{ for edge values } j \text{ of } \mathbf{J})
null space
C G=0:K Gr=β-term onlyC\,G = 0: \quad K\,G_r = \beta\text{-term only}
Assumes
  • the domain fills its box; electric faces fix the tangential edges on them to zero
  • ϵ\epsilon = gauge: a weak Coulomb gauge, needed by the LU when β=0\beta = 0
  • AMS (hypre) for real coefficients; the LU also for complex β=iωσ\beta = i\omega\sigma
  • face_mass and edge_mass on all faces and edges (hanging ones included), e.g. cut cells or surface impedances; real for AMS
References
Built from