Skip to content
Snippets Groups Projects
Commit 8366d870 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent 2f8c50a4
No related branches found
No related tags found
No related merge requests found
Pipeline #7585 passed
......@@ -22,61 +22,60 @@
------------------------------------------------------------------- */
/*
This tutorial solves the electromagnetic field
and the rigid-body forces acting on a set of magnetic pieces
of either parallelepipedic or cylindrical shape.
Besides position and dimension, each piece is attributed
a (constant) magnetic permeability and/or a remanence field.
Hereafter, the pieces are all, simply though imprecisely, referred to as "Magnet",
irresective of whether they are truly permanent magnets or ferromagnetic barrels.
This tutorial solves the electromagnetic field and the rigid-body forces acting
on a set of magnetic pieces of either parallelepipedic or cylindrical shape.
Besides position and dimension, each piece is attributed a (constant) magnetic
permeability and/or a remanence field. Hereafter, the pieces are all, simply
though imprecisely, referred to as "Magnet", irresective of whether they are
truly permanent magnets or ferromagnetic barrels.
The tutorial model proposes two dual 3D magnetostatic formulations:
- the magnetic vector potential formulation with spanning-tree gauging;
- the scalar magnetic potential formulation.
As there are no conductors, the later is rather simple. The source field "hs" is
directly the the known coercive field hc[]:
As there are no conductors, the later is rather simple. The source field "hs"
is directly the the known coercive field hc[]:
h = hs - grad phi , hs = -hc.
If the "Add infinite box" box is ticked, a transformation to infinity shell is
used to impose the exact zero-field boundary condition at infinity.
See also Tutorial 2: magnetostatic field of an electromagnet.
The shell is generated automatically by including "InfiniteBox.geo"
at the end of the geometrical description of the model.
It can be placed rather close of the magnets without loss of accuracy.
The preferred way to compute electromagnetic forces in GetDP
is as an explicit by-product of the Maxwell stress tensor "TM[{b}]",
which is a material dependent function of the magnetic induction "b" field.
The magnetic force acting on a rigid body in empty space can be evaluated
as the flux of the Maxwell stress tensor through a surface "S" (surrounding the body).
A special auxiliary function "g(S)" linked "S" is defined for each magnet, i.e.
"g(SkinMagnet~{i}) = un~{i}".
The resultant magnetic force acting on "Magnet~{i}" is given by the integral:
used to impose the exact zero-field boundary condition at infinity. See also
Tutorial 2: magnetostatic field of an electromagnet. The shell is generated
automatically by including "InfiniteBox.geo" at the end of the geometrical
description of the model. It can be placed rather close of the magnets without
loss of accuracy.
The preferred way to compute electromagnetic forces in GetDP is as an explicit
by-product of the Maxwell stress tensor "TM[{b}]", which is a material
dependent function of the magnetic induction "b" field. The magnetic force
acting on a rigid body in empty space can be evaluated as the flux of the
Maxwell stress tensor through a surface "S" (surrounding the body). A special
auxiliary function "g(S)" linked "S" is defined for each magnet, i.e.
"g(SkinMagnet~{i}) = un~{i}". The resultant magnetic force acting on
"Magnet~{i}" is given by the integral:
f~{i} = Integral [ TM[{b}] * {-grad un~{i}} ] ;
This approach is analogous to the computation of heat flux "q(S)" through a
surface "S" described in "Tutorial 5: thermal problem with contact resistances".
Note that the Maxwell stress tensor is always discontinuous on material discontinuities,
and that magnetic forces acting on rigid bodies
depend only on the Maxwell stress tensor in empty space,
and on the "b" and "h" field distribution,
on the external side of "SkinMagnet~{i}"
(side of the surface in contact with air).
"{-grad un~{i}}" in the above formula can be regarded
as the normal vector to "SkinMagnet~{i}"
in the one element thick layer "layer~{i}" of finite elements
around "Magnet~{i}", and "f~{i}", is thus indeed the flux of "TM[]"
through the surface of "Magnet~{i}".
The support of "{-grad un~{i}}" is limited to "layer~{i}",
which is much smaller than "AirBox".
To speed up the computation of forces, a special domain "Vol_Force"
for force integrations is defined, which contains only
the layers "layer~{i}" of all magnets.
surface "S" described in "Tutorial 5: thermal problem with contact
resistances".
Note that the Maxwell stress tensor is always discontinuous on material
discontinuities, and that magnetic forces acting on rigid bodies depend only on
the Maxwell stress tensor in empty space, and on the "b" and "h" field
distribution, on the external side of "SkinMagnet~{i}" (side of the surface in
contact with air).
"{-grad un~{i}}" in the above formula can be regarded as the normal vector to
"SkinMagnet~{i}" in the one element thick layer "layer~{i}" of finite elements
around "Magnet~{i}", and "f~{i}", is thus indeed the flux of "TM[]" through the
surface of "Magnet~{i}".
The support of "{-grad un~{i}}" is limited to "layer~{i}", which is much
smaller than "AirBox". To speed up the computation of forces, a special domain
"Vol_Force" for force integrations is defined, which contains only the layers
"layer~{i}" of all magnets.
*/
Include "magnets_common.pro"
......@@ -384,4 +383,3 @@ PostOperation {
}
}
}
......@@ -95,6 +95,8 @@ Function {
// secondary.
Flag_CircuitCoupling = 1;
Flag_FrequencyDomain = 0;
// Note that the voltage will not be equally distributed in the PLUS and MINUS
// parts, which is the reason why we must apply the total voltage through a
// circuit -- and we cannot simply use a current source like in Tutorial 7a.
......@@ -128,7 +130,7 @@ Function {
// High value for an open-circuit test; Low value for a short-circuit test;
// any value in-between for any charge
Resistance[R_out] = 1e6;
Resistance[R_out] = 10;
// End-winding primary winding resistance for more realistic primary coil
// model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment