You are on page 1of 10

Fairing of surfaces with

optimization techniques
u s i n g FANGA c u r v e s a s t h e
qual ity criterion
Gunnar Liden and Stefan K E Westberg

In real life, surfaces to be designed are restrained by


Today, the surface-definition process is too time- a number of geometry constraints which often make them
consuming. One of the few realistic ways of shortening the very complex. A surface must be fitted to surrounding
time is to use optimization techniques. Research in this surfaces in a prescribed manner. Parts of a surface must
area has been going on for many years, and the authors' fulfil certain demands relating to curvature, like
major task has been to find a mathematical function for developability etc.
measuring surface quality. To complicate matters further, the surface must have
The paper presents a new method, FANGA (Formela a shape which the human eye considers to be smooth
ANGle Analysis), for the analysis of surface quality. The and fair. This is the quality criterion used in both the
method is usable both in surface analysis and surface automotive and aircraft industries - - an aesthetic
optimization. criterion, which, at the same time, makes the resulting
The FANGA analysis function has been implemented in surface easy to 'use' in CAD/CAMsystems and to
the surface definition system NMG (Numerical Master manufacture. A nicely shaped surface is convex, the
Geometry), and it is now used in the surface-definition variation in curvature is smooth etc.
process. Roughly 20% of the time taken to create a complete
A test function has been developed for surface surface definition is spent on creating a preliminary
optimization. surface, while the remaining 80% is needed for small
The FANGAmethod is presented, and several examples adjustments of definition data carried out until the surface
are given. is of an acceptable quality. To make surface definition
more efficient, it is obvious that this last phase must be
smoothing, optimization, lofting, surface modelling, surface quafity, shortened.
surface analysis
In mathematical terms, this data-adjustment phase
may be regarded as an optimization problem, as follows.
Problem." Maximize F = surface quality (smoothness and
Aircraft and car designers and others who work with fairness) subject to geometry constraints due to
complex surfaces know that the time spent on surface production, aerodynamics etc.
definition can often be very great. For anyone not familiar
with surface definition, a CAD demonstration at a In this paper, a new method for the analysis of surface
graphical terminal in which a surface is designed and quality called FANGA (Formela ANGle Analysis) is
displayed, often in pretty colours, may be very presented. In the method, a set of planar curves is
misleading. generated that, for high-quality surfaces, are smooth.
The FANGA curves may be used both in surface analysis
and surface optimization.
SAAB-SCANIA AB, Saab Military Aircraft, S-581 88 Link6ping, The description of the analysis method is accompanied
Sweden by several examples taken from aircraft design, and the
Paper received: 13 June 1991. Revised: 14 November 1992 optimization example is from the automotive industry.

volume 25 number 7 july 1993 0010-4485/93/070411-10 © 1993 Butterworth-Heinemann Ltd 411


G Liden and S K E Westberg

The work has been carried out at Saab Aircraft bPINE (U~
Division, which hereinafter is referred to as Saab. Li

CRITERIA FOR GOOD SURFACE


iit/ ~~/ TOl

L~
Finding a good and usable objective function is the same / /
process as studying different surface-analysis methods. / /
These methods may be divided into three groups, as // L3
Lq
follows.
/[03
• Position criteria." The normal way of checking a surface /
today is still with planar intersect curves. Intersects are
easy to interpret, and the shape of the curves often
indicates how the input data to the surface should be
1t111/
changed to improve the surface quality. It may,
however, be quite laborious to determine appropriate
intersection planes and the distance between these
J
planes. / /
/
• lst-order-derivative criteria." The analysis of reflection
lines falls into this category (see Figure 1). Smooth
reflection lines are a very good indicator of high surface
quality. However, the reflection lines are relatively Figure 2A. Conic-lofting surjace
[L: longitudinal-limit curves. TD: tangent-definition curves.]
difficult to compute, and they are of little help in the
surface-definition work, since they normally give no
hint of how the input data to the surface should be L1
modified.
• 2nd-order-derivative criteria: One example is the
Gaussian curvature presented in a coloured plot which
can be generated by many CAD/CAM systems. This plot
is very difficult to interpret geometrically, and is // _)_L2
normally of no help at all in the surface-definition /
work. /

The FANGA method introduced here is a l st-order type


of criterion. The FANGA curves can be regarded as types +-
of 2D reflection lines which are easy to compute. I /
Other work in this area can be found in References 1 5. /
/
/
FANGA CONCEPT /
The idea behind the FANGA curves is based on the /
conic-lofting modeller 6, which is the preferred and most /
widely used surface modeller in the aircraft industry. /
Examples of such modellers are Saab's old surface- -~z j
definition system Formela 7-9, C O N S U R F 10-12 in the /
/-
+/
/ f x Figure 2B. Definition of parameters defining section curve
x\~, [P-value - A/B.l
British Aerospace surface-definition system N M G , SURF2
in Catia, and SWANS from Pafec Ltd. In this paper, the
Y CONSURF method has been used.
A lofting modeller is a procedural type of surface
modeller. A procedure, i.e. an algorithm, uses a number
of longitudinal curves and scalar functions to define
sweeping crosssection curves. For a conic-lofting
modeller, these curves are conics.
The algorithm for the evaluation of a point U, V on
Figure 1. Reflection (silhouette) curve of surface viewed a conic-lofting type of surface may contain the following
at an angle of 45 ° to y axis steps (see Figures 2A and 2B):

412 computer-aided design


Fairing of surfaces with optimization techniques using FANGAcurves as the quality criterion

• Step 1." Compute a point and derivatives for the given FORMELFI
U on the spine curve. The plane for the conic section
passes through the point, and the normal to the plane
is the tangent to the spine curve.
• Step 2: Make intersects with the longitudinal-limit
curves and tangent-definition curves, and compute
derivatives with respect to U (the intersecting spine
plane).
• Step 3: Compute a P value, i.e. the fullness of the
curve according to Figure 2B, and the derivatives of
P with respect to U.
• Step 4: Create a conic defined by two limit points,
two tangent-definition points, and a P value, and Z AXIS
compute the point coordinates for the given V value
and the tangent, i.e. the derivative with respect to V.
• Step 5: Compute the surface normal in this point using J
the above computed derivatives with respect to U (the
intersecting spine plane) and V. V5

Note that an explicit equation for the computation of FANGR


the point and derivatives only 'exists locally'.
The conic-lofting type of modeller has many
advantages, such as the following:
A1
• The amount of input data is less compared with, for
instance, that for the polynomial type of surface, which
requires many points, tangents etc., and that is true
even for the definition of a fairly simple surface.
• The amount of output data which defines the surface
is small, since the surface is fully defined by the input
curves, scalar functions etc.
• The surface is automatically satisfactory in one Z AXIS
direction, i.e. the curvature distribution for the
crosssection conic curve is very good.
• The input longitudinal and/or crosssection curves for
the definition are easy and 'natural' to use.
A5
In the Formela system, five angles (see Figure 3) were Figure 3. Definition of Formela and FANGA angles
used to check that tangent and point data generated by
the spine plane would result in a 1-branch conic. These
five angles are defined as the angles from a fixed vector the surface to constant angles, and compute the Formela
(in Formela, the z axis) to the endpoint tangent, to the angles for the extrapolated conic segments. This means
chord vector, and to two line vectors between the that it is the surface quality which is analysed, and not
endpoints and an arbitrary midpoint. The condition for the quality of the strip-boundary curves. In the
a 1-branch conic is that angles 1/1-1/5 are increasing or ellipsoid-strip example, the resulting angle curves are
decreasing. straight lines (see Figure 4b).
The Formela angles can be, and have been, used at The strip boundaries for many ordinary surfaces are
Saab as a tool to determine the quality of an individual often close to constant-angle curves. This means that the
multisegment conic-section curve. The natural generaliza- longitudinal curves on the surface to a great extent
tion to surface analysis would, of course, be to calculate determine the V3 angle curve, while the P-value function
a set of Formela angle curves V~= Vi(s), i= 1, 2, 3, 4, 5, and the tangent-definition curves have more influence on
for each surface strip, where s, for instance, can be the the V2 and V4 curves. Further, the variation of 1/3 is also
arc length of the spine curve. Many surfaces can be seen in the Vz and I/4 curves. This is the background to
analysed in this way, but there is a problem if the a minor redefinition of the original Formela angles. To
longitudinal-limit curves, i.e. the strip boundaries, do not simplify the geometric interpretation of the angle curves
run 'nicely'. The surface in Figure 4a, which is part of and eliminate the dominating V3 variation, the angle
an ellipsoid, is such an example. In this case, it would curves V2 and V4 are replaced by A 2 and A 4, which are
not be obvious from the curves Vi(s) whether the surface angles relative to the chord vector. The midpoint of the
was perfect or not. FANGA angles A z and A 4 is always the point which has
Our approach to make the Formela angles usable for the same slope as the chord (=A3) (see Figure 3).
surface analysis also is to extrapolate each conic strip in These redefined Formela curves, together with a

volume 25 number 7 july 1993 413


G Liden and S K E Westberg

A special case occurs when the conic segment becomes


a straight line, and no extrapolation at all is possible. In
such an area of a surface strip, W,NGt, curves for
nonextrapolated segments have to be computed.
'\ .. f ~ . "\
\ - k, The major advantage of the FANGA method is that only
a few planar curves per strip are required to show the
'iI \. quality of the surface. In practice, as in the optimization
example below, it is sufficient to study and optimize with
only one of the FANGA curves per strip.

SURFACE ANALYSIS USING FANGA CURVES


A number of production aircraft surfaces (from the Saab
(a) Griffin fighter and the Saab 340 and 2000 commuter
airliners) have been studied, and we have found good
correspondence between smooth FANGA curves and
ANGLE, LENGIH high-quality surfaces (see Figures 6-8). Also, principal
curvature directions are plotted, since this is one of the
most sensitive tools for surface analysis. Unfortunately,
though they are very difficult to use for optimization.
The example in Figure 6 is a part of a nacelle surface.
The figure shows the section segment curves used for the
CL FANGA computation in strips 1 and 3. Strip 3 starts with
a straight line, which makes extrapolation to constant
angles impossible, and the FANGA curves must be
computed for nonextrapolated segments. In the end part
of strip 3, the section curves are limited by conic
asymptotes.
The example in Figure 7 is a part of a forward fuselage.
A~
Note the correspondence between the reflection lines and
A3 the 2D FANGA curves.
The example in Figure 8 is a part of a fairing on a
control surface. Note the 'kinks' in the FANGA curves.
A2 This shape is necessary to avoid a collision with another
A1 part of the fairing, This preliminary surface is not yet
perfect. There are still small oscillations in the FANGA
(b) S = XO S = X curves.
The FANGA curves cannot be used directly in the
Figure 4. Ellipsoid-surface; ( a ) surJace strip which is"part manual surface-definition work, but the curves clearly
of ellipsoid, (b) FANGA curves for extrapolated ellipsoid indicate to the loftsman in what 'directions' points and
surface vectors have to be modified to improve the quality of a
[(a) : originalcurvesegment; -: extrapolatedcurvesegment.] surface. It would also be quite easy to write functions
which would give the loftsman more direct help in
interpreting the FANGA curves, and, for instance,
estimating the distance that a point should be moved.
chord-length variation curve CL, are called the FANGA
However, no such functions are planned for the
curves.
moment, since we believe that the future for the FANGA
The addition of the chord-length variation makes it
curves is as objective functions when the surface creation
possible to generate a class of surface strips from a set
is formulated and solved as an optimization problem.
of FANGA curves A1, A2, A3, A5 and CL. Two surface
strips from the same set of curves are shown in Figure
5. Note that A4 is not needed, since it is solely dependent
SURFACE OPTIMIZATION USING FANGA
on A2, A 3 and CL.
The extrapolation angles can be chosen rather
CURVES
arbitrarily, but we try to extrapolate as much as possible, In the future, there will, no doubt, be many more
since any errors or irregularities of the surface are automatic functions for the generation of high-quality
magnified by the extrapolation. surfaces. A combination of optimization and AI
The amount of extrapolation is, however, also limited techniques (expert systems) which can handle surface-
by the type of conic segment. For parabolas and shape types and surface-definition rules will probably
hyperbolas, the asymptotes determine the maximum make it possible for even nonspecialists to define
constant angles. high-quality surfaces.

414 computer-aided design


Fairing of surfaces with optimization techniques using FANGAcurves as the quality criterion

iNPUT
FRNGR

VIEN XY

VJEN XZ

VIEW ISO

OUTPUT
FRNGA

Figure 5. Many surface strips can be generated from one set of FANGA curves

However, at the current stage of development, an adjustments in the surface input data that are necessary
optimization-based surface-definition process should for a high-nuality surface.
interact intimately with the loftsman's geometry The traditional input data to a conic-lofting modeller
knowledge and experience to be efficient. are points and vectors, which define the longitudinal-limit
The definition of a preliminary surface close to the and tangent-definition curves, the spine, and the scalar
final production surface can be developed using functions. The appropriate additional input data for a
traditional methods. The time that it takes a loftsman to loftsman are, for instance, a vector which defines the
define such a surface is usually not a problem, and the direction in which a curve point may be moved, and a
optimization computations are better conditioned if vector which defines how a curve tangent is allowed to
started from such a surface. rotate (see Figure 9). These geometrical-variation
It is in the last phase of the surface-definition process restrictions can be defined using standard functions in a
that the use of optimization techniques is most profikble. geometry system.
It is extremely time-consuming to make the small We believe that the most efficient way to define a

volume 25 number 7 july 1993 415


G Liden and S K E Wes[berg

STRRJGHT ~~'<\\\\,\'j ' (~'\t'!'~1'

STRIP i

5TRI? i STRTP 3

S~RXP 2 Sq-R~P Ll

Figure 6. Part qf" nacelle surJace

surface is by (sub-)optimizing parts of the surface, i.e. compromise, a result of discussions between departments,
letting only a few points and vectors (up to 20), which and it is, of course, essential that the loftsman can provide
define a natural part of a surface, be the variables in the geometry facts for these discussions.
optimization problem. With this limited number of The criterion for a high-quality surface is FAN~A curves
variables, it is easier for the loftsman to define a well that are smooth. Thi.~ can be achieved by minimizing the
conditioned optimization problem, and it is also much strain energy of the FAN6A curves, as described in the
easier to interpret the optimization result. following section. An example of optimization is given
This is the way in which the loftsman works today, in Figure 10. The surface, part of a car roof, was originally
and the difference using optimization techniques is that defined as a physical model. Note again the corre-
the computer automatically finds the best solution for spondence between FANGA curves and reflection lines.
the given set of variables. Initially, only the chord-length variation FANGA curves
Another very important reason for defining surfaces (one curve per strip) were used in the optimization. The
in close interaction with an optimization function is that number of variables, controlling points and tangents was
the loftsman gets a clear picture of the geometry problem, ten. However some oscillations still remained on the
and is able to predict which combinations of constraints FANGA c u r v e s A 2 and A 3 after the optimiza'Jon. To
are geometrically possible. This is an important and very reduce these, an additional optimization was performed
difficult part of surface-definition work, since a surface modifying the P value and its derivative across section 3
practically never meets all the requirements of production, from the right. In this optimization, the FANGA curve
aerodynamics and other sources. A surface is always a A 2 w a s used.

416 computer-aided design


Fairing of surfaces with optimization techniques using FANGAcurves as the quality criterion

[0P V[EN

CL

,qq
FI3

R2
R'[

J50 VIEN

Figure 7. P a r t o f f o r w a r d f u s e l a g e

OPTIMIZATION ALGORITHM AND This formulation leads to surfaces that are as smooth
IMPLEMENTATION and fair as possible for the given constraints. The
surface-shape type is not normally changed.
Two formulations of the objective function have been
In the second formulation, the objective is to minimize
implemented. Both have their advantages, and either may
the deviations between a set of target curves and
be preferred in different cases.
corresponding FANGA curves of the surface. The
In the first formulation, the curvature of the FANGA
deviations r are measured for N curves at M stations
curves is minimized. The curvature c of the FA~GA curves
along the surface strip(s).
created as cubic splines is computed for N curves at M
stations along the surface strip(s). N M
min F(.~)= ~" ~ (ru(~)) 2
N M
i=1 j=l
min F(~)= ~ ~ (cu(YO) z
i=1 j=l
subject to xl. . . . ~-X~'~Xupper" With target curves, the
subject to ~ . . . . ~<~ ~ X,pper, where the design variables x surface-shape type can be modified. To make the
are parameters controlling the geometric data, i.e. points, reflection lines in the car-roof example (Figure 10) change
tangents and P values, for defining the surface. from a convex to a concave shape would require target
A point can, for instance, be allowed to move along a curves.
line or a curve by letting one design variable control it. The minimization is performed as an iterative
Using two design variables, it can be moved in a plane. procedure in which the set of design variables x at each
A tangent can be allowed to move in a plane by letting step k are modified according to
one design variable control it. Using t w o design variables,
it can be moved in space. :~k ÷ 1 = YCk-- lkSR(yc)

volume 25 number 7 july 1993 417


G Lidcn and S K E Westberg

In Newton's method, the search direction is determined


as

s~(2) = G~ 1(2)gk(2)

where y is the gradient of F, and G is the Hessian matrix


including 2nd-order derivatives.
Newton's method is, however, not practical to use
CL directly, owing to the time-consuming computation of
the inverted Hessian. Instead, different methods for
finding an approximation to this term have been
developed ~3
In the quasi-Newton method, the inverted Hessian,
A3
R2 i.e. the term G- 1, is approximated by a matrix H which
R1 is based on information gained from the behaviour of
S~fl]P 1 previous steps and gradients.
There have been several proposals on how to determine
an expression for the matrix H. In our program, we have
implemented the D F P method (Davidson--Fletcher
Powell) and the BFS method (Broyden-Fletcher-
Shanno) 13'14. Both methods have turned out to be
equally suitable for our problem.
A3
R2 ~
fll
S~RIP 2
1 D search
To find the step-size parameter l which minimizes F(x)
along the current search direction, a 1D search has to
be made.
There exist many methods for this. In our
STRIP
1 ~/-~._._~ll_ll_///llllrlill program, we use Swann's method for bounding the
search, and Powell's successive quadratic search for the
~l' IJllll IJl minimization ~3, ~4

Implementation
Figure 8. Part of fairing on control surface The optimization routines have been implemented on a
[Top figure: top view; bottom figure: ISO view.] VAX, and linked to our surface-definition system N M G .
Currently, the code is not portable, but our aim is to
convert our test program to a production (stand-alone)
v1 LI module that is robust, flexible and fast, and which can
be implemented in any geometry system.

CONCLUSIONS
Surface definition is today a very time-consuming process
which it would be very profitable to automate as much
as possible. However, it is also a task which is very
Figure 9. Input data to optimization function complex and can only be done by specialists.
[Point P~ defining the limit curve L 1 is allowed to move in the direction
Hence, our aim has been to find a method which
of VI; maximum deviations: - 0 . 1 to +0.5 mm. Tangent Tz defining
the limit curve L z is allowed to rotate towards V2; maximum deviations: can relieve the loftsman from time-consuming data
- 3 to +5' .] modification, but still work in close interaction with
him/her. This method we call FAN,A, and a great number
where 1k is a step-size parameter, and sk is the search of examples show that it is usable for both surface analysis
direction. and surface optimization.
Our optimization approach leads to very well
conditioned and small minimization problems. All our
Search direction tests also indicate that the time taken for the definition
The evaluation of search directions is dependent on the of high-quality surfaces can be drastically reduced with
optimization method used. the FANGA optimization method.

418 computer-aided design


Fairing of surfaces with optimization t e c h n i q u e s using FANGAcurves as the quality criterion

STRIP I
To v

STRIP 2
~IRTP

NON-OPTIMIZED OPTIMIZED

STRIP I STRIP 1
CL CL

Al Rl
R2 R2
R3 A3
R4 A~

STRIP 2 STRIP 2
- CL CL
A1 A1
R2 A2
---" A3 R3
RLI ALl

STRIP 3
CL STRIP 3
CL
RI

,--..._..
Rl
A2
"•A2 -------- A3
ALl
R3

(a) ~R L~

NON-OPTIMIZED OPTIMIZEO

j,

(b) NON-OPTIMIZEO OPTIMIZED

-I t I Ill I
/ I / / / . . . . I ~ ~

I
\ \ I / \ \--I/ -~": \ I / ;
I I II Iit lib--...... I I / r
I I I I IIII II\"." ~ ' - ~ , I t t I

"7TT
(c) I! lIlltfltt l
F i g u r e 10. Car roof," (a) FANGA optimization, ( b ) reflection lines, ( c ) principal curvature directions

volume 25 n u m b e r 7 july 1993 419


G Liden and S K E Westberg

ACKNOWLEDGEMENTS 5 Williams, C J K 'Use of structural analogy in


generation of smooth surfaces for engineering
This work has been carried out in cooperation with Pertti
purposes' Comput.-Aided Des. Vol 19 No 6 (1987)
Skillermark and the lofting group at Saab.
pp 310-322
Special thanks are due to Linde Wittmeyer-Koch and
Lars-Erik Andersson at Link6ping University, Sweden. 6 Faux, I D and Pratt, M J Computational Geometry
Linde guided and supported students who have helped .[br Design and Manufacture Ellis Horwood, UK
us in parts of the work, and Lars-Erik taught us a lot in (1979)
the field of computational geometry.
7 Lidbro, N 'Modern aircraft geometry' Aircraft Eng.
Finally, we are grateful to Alan McLean at Saab for
Vol 28 (Nov 1956) pp 388 394
his encouragement and support. Alan has realized the
importance of good geometry, which is essential for an 8 Lidbro, N 'Analytische Formbestimmungen yon
aircraft company, and he has made it possible for us to Schiffen' Sch~ffstechnik Vol 8 (Jul 1961) pp 91-96
develop our ideas.
9 Skappel, H E 'FORMELA: a general design and
production data system for sculptured products'
Comput.-Aided Des. Vol 5 No 2 (1973) pp 68--76
REFERENCES
10 Ball, A A 'CONSURF. Part 1: Introduction of the
1 Ferguson, D R et al. 'Surface shape control
conic lofting tile' Comput.-Aided Des. Vol 6 No 4
using constrained optimization on the B-spline
(1974) pp 243-249
representation' Comput. Aided Geom. Des. No 5
(1988) pp 87-103 11 Ball, A A 'CONSURF. Part 2: Description of the
algorithms' Comput.-Aided Des. Vol 7 No 4 (1975)
2 Andersson, E et aL 'Automatic construction of
pp 237 242
surfaces with prescribed shape' Comput.-Aided Des.
Vol 20 No 6 (1988) pp 317-324 12 Bali, A A 'CONSURF. Part 3: How the program
is used' Comput.-Aided Des. Vol 9 No 1 (1977)
3 Lott, N J and Pullin, D I 'Method for fairing B-spline
pp 9-12
surfaces' Comput.-Aided Des. Vol 20 No 10 (1988)
pp 597-604 13 Gill, P E et aL Practical Optimization Academic Press
(1981)
4 Kaufmann, E and Klass, R 'Smoothing surfaces using
reflection lines for families of splines' Comput.-A ided 14 Reklaitis, G V et aL Engineering Optimization:
Des. Vol 20 No 6 (1988) pp 312-316 Methods and Applications John Wiley (1983)

420 computer-aided design

You might also like