1. Notations

1.1. Constants and variable

Notation Quantity Unit

\(\rho\)

material’s density

\(kg.m^{-3}\)

Cp

thermal capacity

\(J.K^{-1}\)

r

radius

m

T

temperature

K

k

thermal conductivity

\(W.m^{-1} .K^{-1}\)

U

electrical potential

V

\(\sigma\)

electrical conductivity

\(S.m^{-1}\)

h

heat transfer coefficient

\(W.m^{-2} .K^{-1}\)

A

magnetic potential

\(V.s.m^{-1}\)

B

magnetic induction

T

H

magnetic field

\(A.m^{-1}\)

1.2. Conventions

\(f\)

function

\(\textbf{f}\)

vector of functions

1.3. Functions

\(\nabla f\)

gradient of f

\(\nabla.\textbf{ f }\)

divergence of f

\(\nabla \times \textbf{ f }\)

curl of f

\(L_{2}(\Omega)\)

\(\{f \mid \int f^{2} < \infty\}\) Lagrangian

\(H_{1}(\Omega)\)

\(\{f \in L_{2}(\Omega) \mid \nabla f \in [L_{2}(\Omega)^{d}\}\)] Hilbert space

\(H_{div}(\Omega)\)

\(\{\textbf{f}\in [L^{2} (\Omega\cup\Omega_{c})^{d}| \nabla.\textbf{f}\in L^{2}(\Omega\cup\Omega_{c})\}\)] Divergence space

\(H_{curl}(\Omega)\)

\(\{\textbf{f}\in [L^{2} (\Omega\cup\Omega_{c})^{d}| \nabla\times\textbf{f}\in [L^{2} (\Omega\cup\Omega_{c})]^{d}\}\)] Rotational space

2. Modelisation

The study of a magnet is a multi-physic problem. It combine electromagnetism, thermic and mechanics. We divide the modeling into 4 parts:

  1. Thermo-electric
    The current flow inside the magnet (copper) involves a warming of the material, due to Joule effect. The temperature in the different sections of the magnet are calculated thanks to the heat equation (more details below).

  2. Elasticity
    The temperature’s elevation involves a dilatation of the material. It implies some constraints due to the nature of the material.

  3. Hydraulics
    Due to the Joule heating, the temperature will rise dangerously. We need to cool down the magnet, with fluid which will circulate around the conductor. This is modeled by the Colburn correlation with the properties of the fluid.

  4. Electromagnetism
    The purpose of a magnet is to create a magnetic field, consequently, we will use the Maxwell’s equations.

2.1. Thermo-electric

2.1.1. Equations

First of all, we start with the standart heat equation:

\[ \rho C_{p}\frac{\partial T}{\partial t} - \nabla.(k \nabla T)=P \]

The only source of heat considered is the Joule effect, expressed by :

\[ P=\textbf{j.E} \]

Where \(\textbf{j}=\sigma\textbf{E}\) (from the Ohm’s law). But \(\exists V | \textbf{E}=-\nabla V\)

To see more details, Thermo-Electric Toolbox

We also consider that T is time independent, so, finally, we have :

\[ - \nabla.(k \nabla T)=\sigma\nabla V . \nabla V \]

Coefficients \(\sigma\) and k are temperature-dependent as shown in this equations :

  • \(\sigma=\frac{\sigma_ {0}}{1 + \alpha(T-T_{ref})}\)

  • \(k=k_{0}\frac{T}{(1+\alpha(T-T_{ref}))T_{ref}}\)

2.1.2. Finite Element

FEM

The Finite Element Method is detailed in the chapter The Mathematics of Feel++

Finally, in our case, the variationnal formulation then consists in finding \(V\in X_{T}=H_{1}(\Omega) \forall \phi_{T}\in X_{T}\) :

\[ \int_{\Omega}k(T)\nabla\phi_{T} + \int_{\partial\Omega_{cooled}}hT\phi_{T}=\int_{\Omega}\sigma(T)\nabla V. \nabla V +\int_{\partial\Omega_{cooled}}hT_{\omega}\phi_{T} \]

We use the Picard method to solve this non linear variationnal formulation.

Picard method

The Picard method is an iterative method which approach the solution of a differential equation, until the difference between yn+1 and yn becomes lower than an user-defined tolerance.

  • \(\frac{dy}{dx}=f(x,y)\) with \(y(x_{0})=y_{0}\)

  • \(y_{n}=y_{0}+\int_{x_{0}}^{x}f(s,y_{n-1}(s))ds\)

2.1.3. Boundary conditions

The current is due to a difference of potential. We model this with the Dirichlet conditions :

  • V=0 on Vin

  • V=V0 on Vout

We consider the air and the cooling water as they are electrically insulating. On other surfaces we impose homogeneous Neumann conditions as no current "flows" out these surfaces (j.n=0).

\(-\sigma(T)\nabla V.n=0\) for all surfaces except Vin and Vout

On the cooled surfaces, we set the heat transfer coefficient h, determined as follow :

\(h=\frac{k(T)N_{u}}{D_{h}}\) with Nu the Nusselt number and Dh the hydraulic diameter.

To see some examples (with the code behind), see the chapter Examples

2.2. Magnetostatic

2.2.1. Equations

First of all, we start with two of the four Maxwell’s equations :

\[ \left\{ \begin{array}{cc} \nabla\times\textbf{H}=\textbf{j}\\ \nabla.\textbf{B}=0 \end{array} \right. \]

We also can link the magnetic induction (B) and the magnetic field (H) using the permeability (\(\mu\)) as :

\[ \textbf{B}=\mu\textbf{H} \]

with \(\mu=\mu_{r}\mu_{0}\)

  • \(\mu_{r}\) being the permeability specific to the material

  • \(\mu_{0}\) being the vacuum permeability

From the differential operators, we know that \(\nabla.\nabla\times\textbf{A}=0\) \(\forall\) A.

Thus, since \(\nabla.\textbf{B}=0\) there exists A such as \(\textbf{B}=\nabla\times \textbf{A}\)

Finally, we can write :

\[ \nabla\times\left(\frac{1}{\mu}\nabla\times\textbf{A}\right)=\textbf{j} \]

2.2.2. Finite Element

The Finite Element Method is detailed in the chapter The Mathematics of Feel++

In our case, the variational formulation consists in resolve :

\[ \int_{\Omega\cup\Omega_{c}}\frac{1}{\mu}\textbf{A}.\nabla\times\varphi+\int_{\partial\Omega_{c}}\frac{1}{\mu}\left(\nabla\times\textbf{A}\times\textbf{n}\right).\varphi=\int_{\Omega}\textbf{j}.\varphi \]

With \(\Omega\) being the volume of our geometry and \(\Omega_{c}\) the volume inside (for example the air). \(\textbf{A}\in\{\textbf{v}\in L^{2}(\Omega\cup\Omega_{c}); \nabla\times\textbf{v}\in L^{2}(\Omega\cup\Omega_{c})\}\) corresponding of Hcurl .

2.2.3. Boundary conditions

The current density is located in some finite region in space, actually \(\Omega\), this involves considering B as zero at infinity. But, with the Finite Element Method,we discretize the domain so we impose the domain to be of finite dimension. In fact, this domain is composed by \(\Omega\) (the conductor) and a box inside, \(\Omega_{c}\), whose boundaries model the infinity. The size of this box can be set manually or be calculated for more precision and validity. The boundary condition is expressed with the magnetic potential (A) like this :

\[ \textbf{A}\times\textbf{n}=0\, on\, \partial\Omega_{c} \]

Our materials allow us to only consider the vacuum permeability, so \(\mu=\mu_{0}=4\pi.10^{-7} kg.m.A^{-2} .s^{-2}\).

To see some examples (with the code behind), see the chapter Examples

2.3. Linear elasticity

The objective is to calculate the displacement vector u and stress generated by the dilatation due to the temperature elevation and the Lorentz forces.

2.3.1. Conditions and suppositions

We need some preconditions :

  • The moments chosen are considered to be at equilibrium

  • The only forces considered are the Lorentz force and the thermal expansion.

2.3.2. Equations

First, we start with the equation of motion, becoming the equilibrium equation :

\[ div(\bar{\bar{\sigma}})+\textbf{f}=0 \]

With \(\bar{\bar{\sigma}}\) the stress tensor and f the volume forces applied on the conductor. As we search the displacement vector u, we introduce the tensor of small deformation \(\bar{\bar{\epsilon}}\)

\[ \bar{\bar{\epsilon}}=\frac{1}{2}(\nabla\textbf{u}+\nabla\textbf{u}^{T}) \]

We divide the stress tensor in two terms : \(\bar{\bar{\sigma}}^{E}\) given by the Hooke’s law for the small deformation and \(\bar{\bar{\sigma}}^{T}\) bring by the Joule eating.

\[ \bar{\bar{\sigma}}(\bar{\bar{\epsilon}})=\bar{\bar{\sigma}}^{E} (\bar{\bar{\epsilon}})+\bar{\bar{\sigma}}^{T}(\bar{\bar{\epsilon}}) \]

This terms are define so :

  • \(\bar{\bar{\sigma}}^{E}(\bar{\bar{\epsilon}})=\frac{E}{1+\nu}(\bar{\bar{\epsilon}}+\frac{\nu}{1+2\nu}Tr(\bar{\bar{\epsilon}})\bar{\bar{I}})\)

  • \(\bar{\bar{\sigma}}^{T}(\bar{\bar{\epsilon}})=-\frac{E}{1+\nu}\alpha_{T}(T-T_{0})\bar{\bar{I}}\)

With :

  • \(E\) the Young modulus

  • \(\nu\) the Poisson’s ratio

  • \(\bar{\bar{I}}\) the identity tensor

  • \(\alpha_{T}\) the linear dilatation coefficient

  • \(T and T_{0}\) the temperature at time \(t and t_{0}\)

2.3.3. Finite Element

The Finite Element Methid is detailed in the chapter The Mathematics of Fell++

In our case, the variational formulation consists in resolve :

\[ \frac{E}{1+\nu}\int_{\Omega}Tr\lgroup\frac{1}{2}(\nabla\textbf{u}+\nabla\textbf{u}^{T})\rgroup+\frac{E\nu}{(1+\nu)(1-2\nu)}\int_{\Omega}(\nabla.\textbf{u})(\nabla.\varphi)=\int_{\Omega}\textbf{f}.\varphi+\int_{\partial\Omega_{P}}\textbf{g}.\varphi+\int_{\Omega}\frac{E\alpha_{T}}{1-2\nu}(T-T_{0})(\nabla.\varphi) \] for all \(\varphi\in H_{1,\varphi}^{d}(\Omega)\) With \(\circ\) the element-wise product.

To see some examples (with the code behind), see the chapter Examples