Solenoïd Benchmark

An analytical solution of the elasticity equation exists in an infinitely long solenoid. Such a geometry has the advantage to be axisymetrical, we can first expresse the solution with cylindrical coordinates.

1. Running the case

The command line to run this case is

mpirun -np 4 feelpp_toolbox_solid --case "github:{path:toolboxes/solid/Solenoid}"
sh

2. Definition

2.1. Equilibrium equation in cylindrical coordinates

The analytical solution comes from the electromagnetism equations, indeed this case of a soleinoid crossed by an electric current can model the behaviour of a resistive magnet. The volumic forces f of the equilibrium equation are consequently dependent on the current density J and the induced magnetic field B, which gives :

ˉˉσ+J×B=0

We will use the following notations:

u=(uvw)J=(JrJθJz),B=(BrBθBz),andˉˉσ=(σrrσrθσrzσθrσθθσθzσzrσzθσzz)

We consider here that the current distribution in the soleinoid is uniform. That means that Jθ is constant, and Jr=Jz=0. The volumic forces J×B becomes :

J×B=(JθBz0JθBr)

The revwriting of the equilibrium equation in cylindrical coordinates gives :

{σrrr+1rσrθθ+σrzz+1r(σrrσθθ)+JθBz=0σθrr+1rσθθθ+σθzz+2rσθr=0σzrr+1rσθzθ+σzzz+1rσrzJθBr=0

The axisymetrical properties of this geometries means that the displacement is invariant with respect to θ.
Furthermore, the soleinoid we consider has the particularity to be infinitely long, so there is no displacement along z axis.
We can consequently get rid of all derivatives θ and z.
Finally, we shall note that components σθr and σzr of the stress tensor ˉˉσ are expressed from Hooke’s law only from the components v and w of the displacement vector u, which nullify the two last equations.

Thus, the equilibrium equation is reduced to:

σθθ+r(rσrr)=rJθBz

We need to express this equation in terms of the displacement u, This can be done using Hooke’s law which links the stress tensor to the tensor of small deformation by:

ˉˉσ=2μˉˉε+λTr(ˉˉε)Id

where μ and λ are the Lamé coefficients, and the tensor of small deformation is given in cylindrical coordinates by:

ˉˉε=12(u+uT)=(ur12(1ruθvr+vr)12(uz+wr)12(1ruθvr+vr)1rvθ+ur12(1rwθ+vz)12(uz+wr)12(1rwθ+vz)wz)

Then, using the last two definitions and the properties of the solenoid (axisymmetric and infinitely long), we can rewrite the equilibrium equation as:

r(rur)ur=(1+ν)(12ν)E(1ν)rJθBz

2.2. Analytical solution

We want to find an analytical solution of the form :

ucyl(r)=C1r+C2r+up(r)

where C1 and C2 are constants, and up(r) a particular solution of the equilibrium equation in cylindrical coordinates.

From Ampére’s theorem and considering that the soleinoid is axisymetrical and infinitely long, we deduce that Br=0, and Bz depends only on r, such that :

Bz(r1)Bz(r)=1μrr1Jθdr

with r1 the internal radius of the soleinoid.

For a uniform distribution of current in the solenoid (jθ constant), we deduce that Bz can be expressed as :

Bz(r)=Bz(r1)ΔBzα1(rr11)

Replacing bz with his expression in the equilibrium equation, this gives :

r(rur)ur=(1+ν)(12ν)E(1ν)rJθ(Bz(r1)ΔBzα1(rr11))

where r2 is the external radius, α=r2r1 and Δbz=Bz(r1)Bz(r2).

A particular solution up(r) for this equation is given by:

up(r)=(1+ν)(12ν)E(1ν)r1Jθ[r13(Bz(r1)+ΔBzα1)(rr1)2+r18ΔBzα1(rr1)3]

The constants C1 and C2 are set by the boundary conditions, we consider here that there is no surface forces. That gives ˉˉσn=0 on internal and external radius, that is σrr(r1)=σrr(r2)=0.

Using the definition of ucyl in

σrr=E(1+ν)(12ν)[(1ν)ur+νur]

we can solve the system to find the constants:

C1=(1+ν)(12ν)E(1ν)Jθr1[(Bz(r1)+ΔBzα1)(2ν3)(1r22(r22r21)(1r2r1))+ΔBzα1(2ν38)(1r22(r22r21)(1(r2r1)2))]
C2=r31r22Jθ(r22r21)(1+ν)E(1ν)[(Bz(r1)+ΔBzα1)(2ν3)(1r2r1)+ΔBzα1(2ν38)(1(r2r1)2)]

The final step is to translate this analytical solution ucyl(r) into cartesian coordinates to obtain the analytical cartesian displacement ucart:

ucart(x,y)=(cos(θ)ucyl(x2+y2)sin(θ)ucyl(x2+y2)0)=(xx2+y2ucyl(x2+y2)yx2+y2ucyl(x2+y2)0)

2.3. Geometry

We use a solenoïd of thickness one with r1=1 and r2=2 and with a length sufficiently important (l=10r2) so that the influence of the top and of the bottom of the geometry, which are supposed not to exist, is close to zero.

2.4. Boundary conditions

The boundary conditions taken into account for the analytical solution have to be reproduced for the simulation. That means null pressure forces on internal and external radius, and displacement set to zero (Dirichlet) on the top and on the bottom to keep only the radial component.

We set:

  • u=0 on ΓtopΓbottom

  • ˉˉσn=0 on ΓintΓext

  • f=(xx2+y25000(10+20(x2+y21))yx2+y25000(10+20(x2+y21))0) in Ω

3. Inputs

We use the following parameters:

Table 1. Inputs
Name Value

E

2.1e6

ν

0.33

f

(xx2+y25000(10+20(x2+y21))yx2+y25000(10+20(x2+y21))0)

4. Output

We compare the radial component of the displacement on the segment z=l/2, y=0 and x[1,2].

5. Results

Here are the analytical and the computed x component of the displacement. This has been obtain with a characteristic size of 0.1 and 646233 dofs.

We can see that the errors grows as we approach the external radius. But the max of the error is 5e4 and it converges as the characteristic size decreases.