Mesh Generation For Modelling in Magnet - 1988 - Mathematical and Computer Model
Mesh Generation For Modelling in Magnet - 1988 - Mathematical and Computer Model
00
Printed in Great Britain Pergamon Press plc
192
Proc. 6th Int. Conf. on Mathematical Modelling 193
Mesh Generation
Figure 4 - Parts of the refined mesh for the motor
Item 2 on our list of required features for the ideal shown in (3).
CAED system is invisible mesh generation. This is a
tall order. Not only is it required to produce a valid With regard to error evaluation, the procedure
finite element mesh for an arbitrary input geometry, used in Maxwell to compute the element by ele-
but this mesh must be automatically refined where ment error in the finite element solution is based
required to provide a correct and accurate field solu- on the underlying assumptions of finite element
tion. In the literature, a mesh generation procedure analysis’. Briefly, the idea is the following: In each
that is automatically refined to minimize the error in finite element used in Maxwell , the solution is ap-
the solution is known as adaptive mesh generation. proximated by a set of quadratic polynomials. The
The mesh generation strategy employed in values of these quadratics are determined by mini-
Maxwell is based on the following procedure: mizing a corresponding variational expression; once
evaluated, the approximate solution is plugged back
1. Take the arbitrary input geometry and extract
into the original partial differential equation. Since
from this geometry a minimal set of points that
this partial differential equation is second order, and
accurately reflects the essential problem char-
since the second derivative of each quadratic polyno-
acteristics.
mial is a different constant, the residual function ob-
2. Triangulate the points by using the Delaunay tained by this process is a constant in each element.
algorithm. It can be shown that in elements where this residual
is large, the error in the solution is large, while ele-
3. Solve the field problem using the existing trian-
ments with a small residual contain relatively small
gulation.
errors. By successively refining those elements hav-
4. Compute the error in each triangular finite ele- ing large errors, Maxwell is able to produce a mesh
ment. and corresponding finite element solution that is op-
timized to the particular problem being solved: the
5. If the error in each element is within acceptable
error in each element in the final mesh is very nearly
bounds stop; otherwise add a point in each fi- the same and is within acceptable limits regardless
nite element in which the error is too large and
of the problem geometry.
go to step 2.
The point to observe in the above adaptive mesh-
There are two aspects of this adaptive mesh gen- ing process is that it requires absolutely no user in-
eration strategy that bear further explaination. The put other than specifying the device geometry and
first is to explain the reason for using the Delaunay structure. Futher, the method is robust in the sence
algorithm; the second is to describe the procedure that it will always provide an accurate solution pro-
used to compute the error in the finite element so- vided that the memory in the computer is sufficient
lution. With regard to the Delaunay algorithm, it to permit the required mesh density. For these rea-
Proc. 6th Int. Conf on Mathematical Modelling 195
sons, it is ideal for design purposes because it allows element added to the mesh, this algorithm results in
engineers to concentrate on design issues. nearly linear solution times with respect to matrix
An example of a mesh produced by this process size.
is shown in (4). Here the transformer in Figure (1) Field solutions of the transformer in Figure (1)
has been meshed by using the Delaunay algorithm and of the motor in Figure (3) are shown in Figures
and the adaptive procedure described above. Notice (5) and (6) respectively.
that the mesh has been automatically refined around Notice that since we are using second order finite
corners and other critical regions. elements, plots of the flux lines are smooth. The
analysis of the transformer in Figure 5 required the
Field Solution assembly and solution of a complex matrix of order
Although all finite element methods share some 3675; this requires approximately ten minutes to do
common principles, many different methods for ap- on a Sun 3/50 computer. The magnetostatic analy-
plying these principles exist. For example, one may sis of the motor took about the same time.
use triangular, quadrilateral or isoparametric ele-
ments, use first order, second order or higher order r
polynomials to approximate the solution, evaluate
open boundaries by using integral equations or by
using modal basis functions, solve the resulting ma-
trix equation by using a sparse elimination proce-
dure or by using the pre-conditioned conjugate gra-
dient algorithm, and so on. In each case, the choice
to be made in the computer implementation will af-
fect the speed, accuracy and reliability of the CAED
program.
The finite element implementation in Maxwell
has been structured to give the best performance in
each case. The elements employed in Maxwell are
second order triangles since these elements have been
Figure 5 - The solution for the transformer.
found to give the best trade-off in terms of speed
and accuracy. Second order triangles are approx-
imately forty times more accurate than first order
triangles3 so that, in terms of accuracy, 500 second
order triangles are equivalent to roughly 20,000 first
order elements; yet the number of variables result-
ing from second order elements is only four times
that required for first order. The net result is a
ten-fold increase in accuracy for a given matrix size.
Further improvements in accuracy result by going
to third or fourth order elements, but the trade-off
here is not appealing: third order elements result in
a nine times the number of variables and thus pro-
duce large matrices even with small mesh sizes. Fur-
ther, with first and second order elements, the ex-
pressions required for finite element modelling can
Figure 6 - The solution for Figure (3).
3 .
be integrated analytically ; m the case of nonlin-
ear magnetostatics, third and higher order elements Results Evaluation
must be integrated numerically and this requires ad-
Although computing field solutions is an essential
ditional computation time. Overall, the use of sec-
step in modeling electric machines, it is by no means
ond order elements in Maxwell provides an excel-
the ultimate step in the CAED process. Most design
lent performance enhancement over standard first
issues revolve around secondary quantities derived
order programs.
from the field such as force, torque, heating and en-
A second major consideration affecting the effi-
ergy rather than the fields themselves. For this rea-
ciency of CAED programs is the approach used to
son, it is essential to be able to compute such derived
solve the sparse matrix equation that results in the
quantities in a simple and effective manner.
analysis. The traditional approach is to use the
The evaluation of derived or secondary quanti-
Gaussian elimination algorithm, either by storing
ties from field solutions is generally called post-
the profile of the matrix or by employing a frontal
processing in CAED. As is the case with data in-
technique. However, in this approach, the zero ele-
put, there are two conflicting requirements in post-
ments embedded within the profile of the matrix are
processing. On the one hand, the great range of
used in the computation; since the number of such
applications in electromagnetics implies that a very
zero elements grows quadratically with increasing
general system must be created to accomodate the
mesh size, this procedure is relatively inefficient. A
broad diversity of engineering calculations. On the
better procedure is to use the pre-conditioned congu-
other hand, certain types of calculations are often
jate gradient algorithm which requires only the non-
used repeatedly in specific product design evalua-
zero elements in the matrix to compute the solution.
tions; in these cases, it is best to employ simple menu
Since the number of non-zero elements in a finite el-
commands for their execution.
ement matrix is the same on average for every finite
196 Proc. 6th Int. Conf. on Mathematical Modelling
Custo
m
The flexibility of the calculator is designed for
advanced calculations which are done infrequently.
Maxwell has the capability of storing sequences of