Skip to content

Magnetism H-formulation

This page derives the weak formulation for magnetism using the magnetic field intensity H\boldsymbol{H} as the primary variable and describes the available interactions and couplings in Allsolve.

The H\boldsymbol{H}-formulation is derived based on the magnetostatic approximation. Our starting equations are Faraday’s law and Ampere’s law.

×E=Bt×H=J\begin{align*} \nabla \times \boldsymbol{E} &= -\frac{\partial \boldsymbol{B}}{\partial t} \tag{1} \\[10pt] \nabla \times \boldsymbol{H} &= \boldsymbol{J} \tag{2} \end{align*}

Using Ohm’s law J=σE\boldsymbol{J} = \sigma \boldsymbol{E} and plugging in the Ampere’s law we get

E=1σ(×H) .\begin{align*} \boldsymbol{E} = \frac{1}{\sigma} (\nabla \times \boldsymbol{H})\ . \tag{3} \end{align*}

Using the material relation B=μH\boldsymbol{B} = \mu \boldsymbol{H} and substituting it into Faraday’s law we end up with

×E=μHt .\begin{align*} \nabla \times \boldsymbol{E} = -\frac{\partial \mu \boldsymbol{H}}{\partial t}\ . \tag{4} \end{align*}

Substituting equation (3)\text{(3)} into equation (4)\text{(4)} and rearranging we derive the H\boldsymbol{H}-formulation

×(1σ×H)+(μH)t=0 .\begin{align*} \nabla \times (\frac{1}{\sigma} \nabla \times \boldsymbol{H}) + \frac{\partial (\mu \boldsymbol{H})}{\partial t} = 0 \ . \tag{5} \end{align*}

To obtain the weak form, multiply (5)\text{(5)} by the test function H\boldsymbol{H}^{\prime} and integrate over the domain Ω\Omega:

Ω (×E+(μH)t)H dΩ=0Ω (×E)H dΩ+Ω (μH)tH dΩ=0 .\begin{align*} \int_{\Omega}\ (\nabla \times \boldsymbol{E} + \frac{\partial (\mu \boldsymbol{H})}{\partial t}) \cdot \boldsymbol{H}^{\prime}\ d \Omega &= 0 \tag{6} \\[10pt] \int_{\Omega}\ ( \nabla \times \boldsymbol{E}) \cdot \boldsymbol{H}^{\prime}\ d \Omega + \int_{\Omega}\ \frac{\partial (\mu \boldsymbol{H})}{\partial t} \cdot \boldsymbol{H}^{\prime}\ d \Omega &= 0 \ . \tag{7} \end{align*}

Applying the divergence of a cross product on the first term we have

Ω (E×H) dΩ+Ω E(×H) dΩ+Ω (μH)tH dΩ=0 .\begin{align*} \int_{\Omega}\ \nabla \cdot (\boldsymbol{E} \times \boldsymbol{H}^{\prime})\ d\Omega + \int_{\Omega}\ \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}^{\prime})\ d\Omega + \int_{\Omega}\ \frac{\partial (\mu \boldsymbol{H})}{\partial t} \cdot \boldsymbol{H}^{\prime}\ d\Omega = 0 \ . \tag{8} \end{align*}

Using the divergence theorem on the divergence term we obtain

Γ (E×H)n dΓ+Ω E(×H) dΩ+Ω(μH)tH dΩ=0 .\begin{align*} \int_{\Gamma}\ (\boldsymbol{E} \times \boldsymbol{H}^{\prime}) \cdot \boldsymbol{n}\ d\Gamma + \int_{\Omega}\ \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}^{\prime})\ d\Omega + \int_{\Omega} \frac{\partial (\mu \boldsymbol{H})}{\partial t} \cdot \boldsymbol{H}^{\prime}\ d\Omega = 0 \ . \tag{9} \end{align*}

Making use of the scalar triple product rule on the boundary and rearranging we get

Ω E(×H) dΩ+Ω(μH)tH dΩ+Γ(n×E)H dΓ=0 ,\begin{align*} \int_{\Omega}\ \boldsymbol{E} \cdot (\nabla \times \boldsymbol{H}^{\prime})\ d\Omega + \int_{\Omega} \frac{\partial (\mu \boldsymbol{H})}{\partial t} \cdot \boldsymbol{H}^{\prime}\ d\Omega + \int_{\Gamma} (\boldsymbol{n} \times \boldsymbol{E}) \cdot \boldsymbol{H}^{\prime}\ d\Gamma = 0 \ , \tag{10} \end{align*}

and by substituting equation (3)\text{(3)} into the first term we derive the weak formulation

Ω1σ(×H)(×H) dΩ+Ω(μH)tH dΩ+Γ(n×E)H dΓ=0 .\begin{align*} \int_{\Omega} \frac{1}{\sigma} (\nabla \times \boldsymbol{H}) \cdot (\nabla \times \boldsymbol{H}^{\prime})\ d\Omega + \int_{\Omega} \frac{\partial (\mu \boldsymbol{H})}{\partial t} \cdot \boldsymbol{H}^{\prime}\ d\Omega + \int_{\Gamma} (\boldsymbol{n} \times \boldsymbol{E}) \cdot \boldsymbol{H}^{\prime}\ d\Gamma = 0 \ . \tag{11} \end{align*}

Applies a fixed value to the H\boldsymbol{H} field. Use this when you need to fix H\boldsymbol{H} at a node or within a region.

How to useYou can use either the matrix editor or the expression editor. With the matrix editor, provide a 3×1 matrix for a 3D problem (2×1 for 2D, etc.) with magnetic field strength vector values for each dimension. In the expression editor, write the direct expression.
Example[1; 5; 0] applies a 3D magnetic field strength constraint of Hx=1AmH_x = 1\:\frac{A}{m}, Hy=5AmH_y = 5\:\frac{A}{m} and Hz=0AmH_z = 0\:\frac{A}{m} to the specified region. Same principles apply for 2D.
UnitMagnetic field strength in Amperes per meter (A/m)

Imposes periodic boundary conditions on the magnetic field strength H\boldsymbol{H} between two boundaries. Reduces the computational domain size for geometrically symmetric or antisymmetric problems, avoiding the need to model the full geometry.

ExamplePeriodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors

This formulation supports the following couplings:

  • H-𝜑 coupling
    • Magnetism 𝜑
  • Electrical insulator
    • Magnetism 𝜑