Skip to content

H-πœ‘ formulation

This page describes the H\boldsymbol{H}-Ο†\varphi mixed formulation used for magnetoquasistatic problems that combine conducting and non-conducting domains. The formulation decomposes the magnetic field into edge-element and scalar-potential parts, enabling efficient solution of superconductor and electric motor simulations. The weak formulation is stated up front; the full derivation is at the end of this page.

The weak form solved by Allsolve consists of two coupled variational equations:

∫Ω1Οƒ(βˆ‡Γ—H)β‹…(βˆ‡Γ—Hβ€²)Β dΞ©+βˆ«Ξ©βˆ‚(ΞΌH)βˆ‚tβ‹…Hβ€²Β dΞ©+βˆ«Ξ“c(nΓ—E)β‹…Hβ€²Β dΞ“c=0∫Ω(ΞΌH)β‹…(βˆ‡Ο†β€²)Β dΞ©βˆ’βˆ«Ξ“(nβ‹…B)β‹…Ο†β€²Β dΞ“=0\begin{align*} \int_\Omega \frac{1}{\sigma}(\nabla \times \boldsymbol{H})\cdot (\nabla \times \boldsymbol{H}')\ d\Omega + \int_\Omega \frac{\partial (\mu \boldsymbol{H})}{\partial t}\cdot\boldsymbol{H}'\ d\Omega + \int_{\Gamma_c} (\boldsymbol{n} \times \boldsymbol{E})\cdot\boldsymbol{H}'\ d\Gamma_c &=0 \tag{1}\\ \int_\Omega (\mu \boldsymbol{H})\cdot (\nabla \varphi')\ d\Omega - \int_{\Gamma}(\boldsymbol{n}\cdot \boldsymbol{B})\cdot \varphi'\ d\Gamma &=0 \tag{2} \end{align*}

where H\boldsymbol{H} is decomposed into conducting and non-conducting parts, Ο†\varphi is the magnetic scalar potential, and the boundary integral terms are the Neumann boundary terms.

See Formulation derivation for the full strong-to-weak derivation, domain decomposition, and the expanded form used in Allsolve.

The formulation is derived from the magnetoquasistatic approximation of Maxwell’s equations:

βˆ‡Γ—E+βˆ‚Bβˆ‚t=0βˆ‡Γ—H=Jβˆ‡β‹…B=0\begin{align*} \nabla \times \boldsymbol{E} + \frac{\partial \boldsymbol{B}}{\partial t} &= \boldsymbol{0} \tag{3}\\ \nabla \times \boldsymbol{H} &= \boldsymbol{J} \tag{4}\\ \nabla \cdot \boldsymbol{B} &= \boldsymbol{0} \tag{5} \end{align*}

The electric field strength E\boldsymbol{E}, the electric current density J\boldsymbol{J}, the magnetic flux density B\boldsymbol{B} and the magnetic field strength H\boldsymbol{H} are paired by the constitutive relations as

B=ΞΌHJ=ΟƒE,\begin{align*} \boldsymbol{B} &= \mu \boldsymbol{H} \tag{6}\\ \boldsymbol{J} &= \sigma \boldsymbol{E}, \tag{7} \end{align*}

where ΞΌ\mu is the magnetic permeability and Οƒ\sigma is the electric conductivity. Note that, ΞΌ\mu and Οƒ\sigma can depend on different quantities such as electromagnetic fields and temperature.

Express (3)\text{(3)} and (5)\text{(5)} in terms of H\boldsymbol{H} using (4)\text{(4)}, (6)\text{(6)}, and (7)\text{(7)}:

βˆ‡Γ—(1ΟƒΒ βˆ‡Γ—H)+βˆ‚(ΞΌH)βˆ‚t=0βˆ‡β‹…(ΞΌH)=0\begin{align*} \nabla \times \left(\frac{1}{\sigma}~\nabla \times \boldsymbol{H}\right) + \frac{\partial (\mu\boldsymbol{H})}{\partial t} &= \boldsymbol{0} \tag{8}\\ \nabla \cdot (\mu\boldsymbol{H}) &= \boldsymbol{0} \tag{9} \end{align*}

Decomposition of H\boldsymbol{H}

Section titled β€œDecomposition of ”

The H\boldsymbol{H}-Ο†\varphi formulation is obtained by first decomposing the whole modeling domain Ξ©\Omega into conducting domain Ξ©c\Omega_{c} and non-conducting domain Ξ©nc\Omega_{nc} such that Ξ©=Ξ©cβˆͺΞ©nc\Omega=\Omega_{c} \cup \Omega_{nc}.

Then, H\boldsymbol{H} is decomposed as

H={Ξ©c:Hcβˆ’βˆ‡Ο†+HsΞ©nc:βˆ‡Ο†+Hs\boldsymbol{H}=\begin{cases} \Omega_c: &\boldsymbol{H}_c-\nabla \varphi+\boldsymbol{H}_s\\ \Omega_{nc}: &\nabla \varphi + \boldsymbol{H}_s \end{cases}

where Ο†\varphi is a scalar field and Hc\boldsymbol{H}_c is the magnetic field strength in the conducting domain. The cohomology source field Hs\boldsymbol{H}_s is used, for example, to impose the total current to the High Temperature Superconducting (HTS) tape. Moreover, Hc\boldsymbol{H}_c and Hs\boldsymbol{H}_s are interpolated with edge elements and Ο†\varphi with nodal elements.

  • Note that Ο†\varphi and Hs\boldsymbol{H}_s have degrees of freedom only in Ξ©nc\Omega_{nc} but their support is the whole Ξ©\Omega. This allows the coupling of H\boldsymbol{H} through the boundary of the conducting domain.
  • The scalar field Ο†\varphi should be made unique by constraining the value of Ο†\varphi to zero at a point on Ξ“nc\Gamma_{nc}.

To impose the boundary conditions for the vector field Hc\boldsymbol{H}_c:

  • Hc\boldsymbol{H}_c should be constrained to zero at parts of Ξ“c\Gamma_c where no current is desired to flow through.
  • At parts of Ξ“c\Gamma_c, where current density is desired flow pass perpendicularly through the surface, the Neumann boundary term is zero.

To impose the boundary conditions for the scalar field Ο†\varphi:

  • Ο†\varphi should be constrained to zero at parts of Ξ“nc\Gamma_{nc} where magnetic flux density is desired to flow perpendicularly through the surface.
  • At parts of Ξ“nc\Gamma_{nc}, where zero magnetic flux density is desired to pass through, the Neumann boundary term should be equal to zero.
    • The Neumann boundary term is explained in the following section.

To obtain the weak (variational) formulation, multiply (8)\text{(8)} and (9)\text{(9)} by the test function fields:

Hβ€²={Ξ©c:Hcβ€²+βˆ‡Ο†β€²+Hsβ€²Ξ©nc:βˆ‡Ο†β€²+Hsβ€²\boldsymbol{H}'=\begin{cases} \Omega_c: &\boldsymbol{H}_c'+\nabla \varphi'+\boldsymbol{H}_s'\\ \Omega_{nc}: &\nabla \varphi' + \boldsymbol{H}_s' \end{cases}

and integrate over the whole modeling domain Ξ©\Omega to obtain

∫Ω(βˆ‡Γ—E)β‹…Hβ€²Β dΞ©+βˆ«Ξ©βˆ‚(ΞΌH)βˆ‚tβ‹…Hβ€²Β dΞ©=0∫Ω(βˆ‡β‹…ΞΌH)β‹…Ο†β€²Β dΞ©=0\begin{align*} \int_\Omega (\nabla \times \boldsymbol{E})\cdot\boldsymbol{H}'\ d\Omega + \int_\Omega \frac{\partial (\mu \boldsymbol{H})}{\partial t}\cdot\boldsymbol{H}'\ d\Omega &= 0 \tag{10}\\ \int_\Omega (\nabla \cdot \mu \boldsymbol{H})\cdot\varphi'\ d\Omega &= 0 \tag{11} \end{align*}

For the first equation, using the divergence of a cross product we can rewrite the first term

βˆ«Ξ©βˆ‡β‹…(EΓ—Hβ€²)Β dΞ©+∫ΩEβ‹…(βˆ‡Γ—Hβ€²)Β dΞ©+βˆ«Ξ©βˆ‚(ΞΌH)βˆ‚tβ‹…Hβ€²Β dΞ©=0.\begin{align*} \int_\Omega \nabla \cdot (\boldsymbol{E} \times \boldsymbol{H}')\ d\Omega + \int_\Omega \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}')\ d\Omega + \int_\Omega \frac{\partial (\mu \boldsymbol{H})}{\partial t}\cdot\boldsymbol{H}'\ d\Omega &= 0. \tag{12} \end{align*}

Applying the divergence theorem on the divergence term we obtain

βˆ«Ξ“(EΓ—Hβ€²)β‹…nΒ dΞ“+∫ΩEβ‹…(βˆ‡Γ—Hβ€²)Β dΞ©+βˆ«Ξ©βˆ‚(ΞΌH)βˆ‚tβ‹…Hβ€²Β dΞ©=0.\begin{align*} \int_{\Gamma} (\boldsymbol{E} \times \boldsymbol{H}') \cdot \boldsymbol{n}\ d\Gamma + \int_\Omega \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}')\ d\Omega + \int_\Omega \frac{\partial (\mu \boldsymbol{H})}{\partial t}\cdot\boldsymbol{H}'\ d\Omega &= 0. \tag{13} \end{align*}

Making use of the scalar triple product rule on the boundary term and rearranging results in

∫ΩEβ‹…(βˆ‡Γ—Hβ€²)Β dΞ©+βˆ«Ξ©βˆ‚(ΞΌH)βˆ‚tβ‹…Hβ€²Β dΞ©+βˆ«Ξ“c(nΓ—E)β‹…Hβ€²Β dΞ“=0\begin{align*} \int_\Omega \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}')\ d\Omega + \int_\Omega \frac{\partial (\mu \boldsymbol{H})}{\partial t}\cdot\boldsymbol{H}'\ d\Omega + \int_{\Gamma_c} (\boldsymbol{n} \times \boldsymbol{E}) \cdot \boldsymbol{H}'\ d\Gamma &= 0 \tag{14} \end{align*}

and by substituting E=1Οƒ(βˆ‡Γ—H)\boldsymbol{E} = \frac{1}{\sigma}(\nabla \times \boldsymbol{H}) into the first term we derive the first coupled equation stated at the top of this page.

For the second equation, using the Leibniz rule for a nabla operator on (11)\text{(11)} we get

∫Ω(ΞΌH)β‹…(βˆ‡Ο†β€²)Β dΞ©βˆ’βˆ«Ξ©βˆ‡β‹…(BΟ†β€²)Β dΞ©=0.\begin{align*} \int_\Omega (\mu \boldsymbol{H}) \cdot (\nabla \varphi')\ d\Omega - \int_\Omega \nabla \cdot (\boldsymbol{B}\varphi')\ d\Omega &= 0. \tag{15} \end{align*}

Applying the divergence theorem on the divergence term we obtain the second coupled equation stated at the top of this page.

The more detailed formulation is obtained by substituting the decompositions of H\boldsymbol{H} and Hβ€²\boldsymbol{H}' into (8)\text{(8)} and (9)\text{(9)}. For the first equation we have

∫Ωc1Οƒ(βˆ‡Γ—Hc+βˆ‡Γ—Hs)β‹…(βˆ‡Γ—Hcβ€²+βˆ‡Γ—Hsβ€²)Β dΞ©+∫ΩcΞΌβˆ‚βˆ‚t(Hc+Hsβˆ’βˆ‡Ο†)β‹…(Hcβ€²+Hsβ€²)Β dΞ©+∫ΩncΞΌβˆ‚βˆ‚t(Hsβˆ’βˆ‡Ο†)β‹…Hsβ€²Β dΞ©+βˆ«Ξ“c(nΓ—E)β‹…(Hcβ€²+Hsβ€²)Β dΞ“=0\begin{align*} &\int_{\Omega_c} \frac{1}{\sigma}(\nabla \times \boldsymbol{H}_c+\nabla \times \boldsymbol{H}_s)\cdot (\nabla \times \boldsymbol{H}_c'+\nabla \times \boldsymbol{H}_s')\ d\Omega \\ &+ \int_{\Omega_c} \mu\frac{\partial}{\partial t}(\boldsymbol{H}_c+\boldsymbol{H}_s - \nabla \varphi)\cdot (\boldsymbol{H}_c'+\boldsymbol{H}_s')\ d\Omega \\ &+ \int_{\Omega_{nc}} \mu\frac{\partial}{\partial t}(\boldsymbol{H}_s - \nabla \varphi)\cdot \boldsymbol{H}_s'\ d\Omega \\ &+ \int_{\Gamma_c} (\boldsymbol{n} \times \boldsymbol{E})\cdot(\boldsymbol{H}_c'+\boldsymbol{H}_s')\ d\Gamma =0 \tag{16} \end{align*}

For the second equation we obtain

∫ΩcΞΌ(Hc+Hsβˆ’βˆ‡Ο†)β‹…(βˆ‡Ο†β€²)Β dΞ©+∫ΩncΞΌ(Hsβˆ’βˆ‡Ο†)β‹…(βˆ‡Ο†β€²)Β dΞ©βˆ’βˆ«Ξ“(nβ‹…B)β‹…Ο†β€²Β dΞ“=0\begin{align*} &\int_{\Omega_c} \mu (\boldsymbol{H}_c+\boldsymbol{H}_s-\nabla\varphi)\cdot (\nabla \varphi')\ d\Omega \\ &+ \int_{\Omega_{nc}} \mu (\boldsymbol{H}_s-\nabla\varphi)\cdot (\nabla \varphi')\ d\Omega \\ &- \int_{\Gamma}(\boldsymbol{n}\cdot \boldsymbol{B})\cdot \varphi'\ d\Gamma =0 \tag{17} \end{align*}

[1] Lahtinen, V., Stenvall, A., Sirois, F. et al. A Finite Element Simulation Tool for Predicting Hysteresis Losses in Superconductors Using an H-Oriented Formulation with Cohomology Basis Functions. J Supercond Nov Magn 28, 2345–2354 (2015)

[2] J. Ruuskanen et al., β€œModeling Eddy Current Losses in HTS Tapes Using Multiharmonic Method,” in IEEE Transactions on Applied Superconductivity, vol. 33, no. 5, pp. 1-5, Aug. 2023, Art no. 5900605

[3] Pellikka, Matti, et al. β€œHomology and cohomology computation in finite element modeling.” SIAM Journal on Scientific Computing 35.5 (2013): B1195-B1214.

[4] Accelerating superconductivity simulations with the H-𝝓 formulation