What youβll learn
Domain decomposition β splitting conducting and non-conducting regions for the H \boldsymbol{H} H -Ο \varphi Ο formulation.
Field decomposition β how H \boldsymbol{H} H , Ο \varphi Ο , and cohomology source fields H s \boldsymbol{H}_s H s β fit together.
Boundary conditions β Neumann terms and constraints for H c \boldsymbol{H}_c H c β and Ο \varphi Ο .
Weak formulation β the coupled variational equations used for HTS and electric motor simulations.
This page describes the H \boldsymbol{H} 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*} β« Ξ© β Ο 1 β ( β Γ H ) β
( β Γ H β² ) Β d Ξ© + β« Ξ© β β t β ( ΞΌ H ) β β
H β² Β d Ξ© + β« Ξ c β β ( n Γ E ) β
H β² Β d Ξ c β β« Ξ© β ( ΞΌ H ) β
( β Ο β² ) Β d Ξ© β β« Ξ β ( n β
B ) β
Ο β² Β d Ξ β = 0 = 0 β ( 1 ) ( 2 ) β
where H \boldsymbol{H} 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*} β Γ E + β t β B β β Γ H β β
B β = 0 = J = 0 β ( 3 ) ( 4 ) ( 5 ) β
The electric field strength E \boldsymbol{E} E , the electric current density J \boldsymbol{J} J , the magnetic flux density B \boldsymbol{B} B and the magnetic field strength H \boldsymbol{H} H are paired by the constitutive relations as
B = ΞΌ H J = Ο E , \begin{align*}
\boldsymbol{B}
&= \mu \boldsymbol{H} \tag{6}\\
\boldsymbol{J}
&= \sigma \boldsymbol{E}, \tag{7}
\end{align*} B J β = ΞΌ H = Ο E , β ( 6 ) ( 7 ) β
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)} (3) and (5) \text{(5)} (5) in terms of H \boldsymbol{H} H using (4) \text{(4)} (4) , (6) \text{(6)} (6) , and (7) \text{(7)} (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*} β Γ ( Ο 1 β Β β Γ H ) + β t β ( ΞΌ H ) β β β
( ΞΌ H ) β = 0 = 0 β ( 8 ) ( 9 ) β
The H \boldsymbol{H} H -Ο \varphi Ο formulation is obtained by first decomposing the whole modeling domain Ξ© \Omega Ξ© into conducting domain Ξ© c \Omega_{c} Ξ© c β and non-conducting domain Ξ© n c \Omega_{nc} Ξ© n c β such that Ξ© = Ξ© c βͺ Ξ© n c \Omega=\Omega_{c} \cup \Omega_{nc} Ξ© = Ξ© c β βͺ Ξ© n c β .
Then, H \boldsymbol{H} H is decomposed as
H = { Ξ© c : H c β β Ο + H s Ξ© n c : β Ο + H s \boldsymbol{H}=\begin{cases}
\Omega_c: &\boldsymbol{H}_c-\nabla \varphi+\boldsymbol{H}_s\\
\Omega_{nc}: &\nabla \varphi + \boldsymbol{H}_s
\end{cases} H = { Ξ© c β : Ξ© n c β : β H c β β β Ο + H s β β Ο + H s β β
where Ο \varphi Ο is a scalar field and H c \boldsymbol{H}_c H c β is the magnetic field strength in the conducting domain. The cohomology source field H s \boldsymbol{H}_s H s β is used, for example, to impose the total current to the High Temperature Superconducting (HTS) tape. Moreover, H c \boldsymbol{H}_c H c β and H s \boldsymbol{H}_s H s β are interpolated with edge elements and Ο \varphi Ο with nodal elements.
Note that Ο \varphi Ο and H s \boldsymbol{H}_s H s β have degrees of freedom only in Ξ© n c \Omega_{nc} Ξ© n c β but their support is the whole Ξ© \Omega Ξ© . This allows the coupling of H \boldsymbol{H} 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 Ξ n c \Gamma_{nc} Ξ n c β .
To impose the boundary conditions for the vector field H c \boldsymbol{H}_c H c β :
H c \boldsymbol{H}_c H c β should be constrained to zero at parts of Ξ c \Gamma_c Ξ c β where no current is desired to flow through.
At parts of Ξ c \Gamma_c Ξ 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 Ξ n c \Gamma_{nc} Ξ n c β where magnetic flux density is desired to flow perpendicularly through the surface.
At parts of Ξ n c \Gamma_{nc} Ξ n c β , 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)} (8) and (9) \text{(9)} (9) by the test function fields:
H β² = { Ξ© c : H c β² + β Ο β² + H s β² Ξ© n c : β Ο β² + H s β² \boldsymbol{H}'=\begin{cases}
\Omega_c: &\boldsymbol{H}_c'+\nabla \varphi'+\boldsymbol{H}_s'\\
\Omega_{nc}: &\nabla \varphi' + \boldsymbol{H}_s'
\end{cases} H β² = { Ξ© c β : Ξ© n c β : β H c β² β + β Ο β² + H s β² β β Ο β² + H s β² β β
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*} β« Ξ© β ( β Γ E ) β
H β² Β d Ξ© + β« Ξ© β β t β ( ΞΌ H ) β β
H β² Β d Ξ© β« Ξ© β ( β β
ΞΌ H ) β
Ο β² Β d Ξ© β = 0 = 0 β ( 10 ) ( 11 ) β
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*} β« Ξ© β β β
( E Γ H β² ) Β d Ξ© + β« Ξ© β E β
( β Γ H β² ) Β d Ξ© + β« Ξ© β β t β ( ΞΌ H ) β β
H β² Β d Ξ© β = 0. β ( 12 ) β
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*} β« Ξ β ( E Γ H β² ) β
n Β d Ξ + β« Ξ© β E β
( β Γ H β² ) Β d Ξ© + β« Ξ© β β t β ( ΞΌ H ) β β
H β² Β d Ξ© β = 0. β ( 13 ) β
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*} β« Ξ© β E β
( β Γ H β² ) Β d Ξ© + β« Ξ© β β t β ( ΞΌ H ) β β
H β² Β d Ξ© + β« Ξ c β β ( n Γ E ) β
H β² Β d Ξ β = 0 β ( 14 ) β
and by substituting E = 1 Ο ( β Γ H ) \boldsymbol{E} = \frac{1}{\sigma}(\nabla \times \boldsymbol{H}) E = Ο 1 β ( β Γ 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)} (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*} β« Ξ© β ( ΞΌ H ) β
( β Ο β² ) Β d Ξ© β β« Ξ© β β β
( B Ο β² ) Β d Ξ© β = 0. β ( 15 ) β
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} H and H β² \boldsymbol{H}' H β² into (8) \text{(8)} (8) and (9) \text{(9)} (9) .
For the first equation we have
β« Ξ© c 1 Ο ( β Γ H c + β Γ H s ) β
( β Γ H c β² + β Γ H s β² ) Β d Ξ© + β« Ξ© c ΞΌ β β t ( H c + H s β β Ο ) β
( H c β² + H s β² ) Β d Ξ© + β« Ξ© n c ΞΌ β β t ( H s β β Ο ) β
H s β² Β d Ξ© + β« Ξ c ( n Γ E ) β
( H c β² + H s β² ) Β 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*} β β« Ξ© c β β Ο 1 β ( β Γ H c β + β Γ H s β ) β
( β Γ H c β² β + β Γ H s β² β ) Β d Ξ© + β« Ξ© c β β ΞΌ β t β β ( H c β + H s β β β Ο ) β
( H c β² β + H s β² β ) Β d Ξ© + β« Ξ© n c β β ΞΌ β t β β ( H s β β β Ο ) β
H s β² β Β d Ξ© + β« Ξ c β β ( n Γ E ) β
( H c β² β + H s β² β ) Β d Ξ = 0 β ( 16 ) β
For the second equation we obtain
β« Ξ© c ΞΌ ( H c + H s β β Ο ) β
( β Ο β² ) Β d Ξ© + β« Ξ© n c ΞΌ ( H s β β Ο ) β
( β Ο β² ) Β 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*} β β« Ξ© c β β ΞΌ ( H c β + H s β β β Ο ) β
( β Ο β² ) Β d Ξ© + β« Ξ© n c β β ΞΌ ( H s β β β Ο ) β
( β Ο β² ) Β d Ξ© β β« Ξ β ( n β
B ) β
Ο β² Β d Ξ = 0 β ( 17 ) β
[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