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}"
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 :
We will use the following notations:
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 :
The revwriting of the equilibrium equation in cylindrical coordinates gives :
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:
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:
where μ and λ are the Lamé coefficients, and the tensor of small deformation is given in cylindrical coordinates by:
Then, using the last two definitions and the properties of the solenoid (axisymmetric and infinitely long), we can rewrite the equilibrium equation as:
2.2. Analytical solution
We want to find an analytical solution of the form :
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 :
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 :
Replacing bz with his expression in the equilibrium equation, this gives :
where r2 is the external radius, α=r2r1 and Δbz=Bz(r1)−Bz(r2).
A particular solution up(r) for this equation is given by:
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
we can solve the system to find the constants:
The final step is to translate this analytical solution ucyl(r) into cartesian coordinates to obtain the analytical cartesian displacement ucart:
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=(x√x2+y25000(10+20(√x2+y2−1))y√x2+y25000(10+20(√x2+y2−1))0) in Ω
3. Inputs
We use the following parameters:
Name | Value |
---|---|
E |
2.1e6 |
ν |
0.33 |
f |
(x√x2+y25000(10+20(√x2+y2−1))y√x2+y25000(10+20(√x2+y2−1))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 5e−4 and it converges as the characteristic size decreases.