Professional Documents
Culture Documents
Report No. Dsp-14: Dansk Skibsteknisk Forskningsinstitut
Report No. Dsp-14: Dansk Skibsteknisk Forskningsinstitut
s
s
.1...;
.. ...
0 Ò
O
s Mathematical Definition
s
¶ 0 ....l
s
of Ship Surfaces
' ..0 s
.Is
Ss ss s
s
s
by
... ss.
s. S
s
\ E. Kantorowitz
555
5s
sS s
? 5
.. .
s
s. .5
. 5555 5S
5s5
. .
.
S
050S
S
.
o.. .0.
.0
IN COMMISSION:
s
o
. DANISH TECHNICAL PRESS
S
o
COPENHAGEN V - DENMARK
o
DANSK SKIBSTEKNISK FORSKNINGSINSTITUT
Is a self-supporting Institution, established fo carry eut research in the fields of shipbuilding, marine engineering end ship-
ping. According of Its by-laws1 confirmed by his Majesty the King of Denmark, it is governed by e council of members elec-
ted by shlpbuilders, shipowners and the Academy of Technical Sciences.
The report s are on sale through the Danish Technical Press at the prices stated below.
The views expressed in the reports are those of individual authors.
Paul Carpentier
inspectør
t25D Z&I/
1967
Lyngby Denmark.
Eliezer Kantorowitz 1967,
The present method was developed at the Danish Ship Research Institute
in the period 1961 1 966. The first experiments vere done with a primitive
assembly laxiguae on the heavily booked DASK computer, and vere thus very.
cumbersome The installation of a GIER computer at the premises of the In-
stitute was, therefore, of decisive importance. The GIER computer, which is
produced by the Danish firm Regnecentralen, baa one of the most efficient
ALCOL compilers hitherto written, which enabled many different methods to be
tried with relatively little menual effort.
Late in 1962, it was decided to try to fit polynomials directly to the
ship surface A computing procedure for this purpose was developed In the
spring of 1963 with the advice of Mr. P. lvbndrup, Regnecentralen. Thiring the
same period preliminary curve fitting and data test prograes vere prepared
with the assistance of Mr. Z. Zarhy. These programs were used for the ex-
periments required for the further development of this method. There were
many problems to be solved and a multitude of parameters which could be
varied. The techniques developed at that time solved the problem in principle,
but there vas still much to be done before the method could be used practi
cally. During that period, reports arrived concerning poor results obtained
elsewhere with the same subject, and doubts arose in some circles whether the
problems could be solved at all. Deputy director H. Fogli of Nakskov Shipyard,
therefore, examined the results which bave been obtained with a tanker arid a
cargo liner, and recomnended the continuation and Intenaivation of the work.
Mr. Anders Bøgelund and Mr. Gert Adiansen thus joined the project in the sum..
mer and aitumn of i 96i. These highly qualified co-workers enabled a thorough
discussion of the different aspects of the work. Furthermore Mr. Bøgelund
prepared the fina], curve fitting program, and some auxiliary progras,
while a progrune for preparation of mould loft tables was prepared by Mr. G.
Adriansen and Mr. A. Bøgelurid. A very fast machine code version of the sur-
face fitting prograimne was prepared by Mr. P. Fleron. Finally in November
1965 the programme was released for the use of the customers of the Institute,
and has since been used for 33 different ships.
Further to the above mentioned contributions the success of the present
work is due to the information and encouragement obtained from the shipyards
of Nakskov, Helsirigør and Odense, and to the assistance of the computer
center staff,Mr. S. Velschou M.Sc., Mrs. I. Nielsen, Mrs. B. Michaelsen, and
Mrs. B. Cribb, who also typed this report. Messrs. M.S.Chislett and. K. Pucill
have checked the &glish wording of this report,and Mi.a I. Larsen bas drawn
the figures.
The author is very grateful that he has been given the chance to do this
work. The confidence and support shown by the director of the Institute,
professor C.W.Prohaska, and later by director Otto Petersen and deputy direc-
tor H. Fogli of Nakskov Shipyard have been of decisive importance to the
accomplishment of this project.
Lyngby E. Kantorowitz.
29 ly 1967.
Sumnry. 1.
Introduction. 11,
14.2.5.14. The method used for the claculation of' a surface polynomial. 38.
14.2.5.5. The method used for imposing the boundary conditions on a 39,
surface polynomial.
5.5. Preparation of the data required for the claculation of' 118.
curve definitions.
5.6. preparation of data for the surface calculations. 51.
Discussion of the results. 53.
References.
62.
ApPENDXCF.
1. Sumn.ry.
Earlier work in this field can be divided into draught functions methods
and sectional curves methods. In the former, the parameters of the waterline
expression are defined as functions of the draught. The sectional curves
methods are a mathematical analogy to the traditional graphical methods. The
thin elastic battens used by draughtsmen are thus substituted by . ,Spline
functions,,. These functions are fitted to a number of waterlines and trans-
verse sectional curves in an iterative process, which is continued until the
two sets of sectional curves represent the same surface. In some of the
earlier works mathematical transformations are employed, whereby the ship
shape is modified into a surface which is more easily fitted. Only the sec-
tional curves method has hitherto enabled an accurate definition of a wide
range of ship shapes. There are, however, some difficulties in obtaining
sufficient smooth surfaces with this method. The solution of the surface
definition problem by means of draught functions, sectional curves methods
and the employment of transformations introduces the problem of how to handle
these devices.
In the present method, mathematical expressions are fitted directly to
the ship surface and to the different contour and boundary curves. The ship
surface and the different curves are divided Into the parts of which they
are composed, to which polynomials and arcs of conic sections are then fitted.
Polynomials are employed In most cases, but arcs of conic sections are mostly
used for the parts which are perpendicular or nearly perpendicular to the
abscissa plane/axis.
The division of the surface and the different curves into the parts of
which they are composed is done manually, and is based on a visual analysis
of the lines drawing. The limits between the different parts of' the surface
are usually the lines of discontinuity In the second and higher order deriv-
atives found on the ship surface (Fig. ).
-2-
accurate, the coefficients are calculated such that the fixed data are main-
tained. and such that the curves and surfaces give the best fit to the lifted
coordinates using the least squares criterion.
When calculating the curves, any group of connected polynomial curve
y = P(x.z).
(x,z) of a number of points where the halfbreadths have been lifted from the
lines drawings. Boundary conditions are imposed on the surface polynomial by
introducing a number of points that satisfy the conditions, and by assigning
high weights to these points during the calculations.
Since ships have quite complicated shapes, a considerable amount of data
is needed to specify all the details of a ship surface. The manual lifting
and the checking of these data has proved to constitute a major part of the
whole process. Special prograes have therefore been prepared for check of'
the input data. Furthermore, a programme was prepared to test whether a cal-
culated mathematical surface is acceptable. This programme compares, the
ones, and checks a number of properties such as the concave and convex
character of a number of selected sectional curves. Furthermore the body plan
of the faired ship is drawn by the computer for visual analysis of the char-
acter of the lines. All the programmes, except the procedure for fitting
-'T
-
-.
J..
i--.
-- ...,- I
L
- -,.__----/ ¿7
.
. -.
...-.. .
-
A
templates
ship
for
plates using the
sectional curves drawn
some
T---.,
Ii,. t ('-- I..
11i i
t------- -- .,. » i
I
1Ir,.t -
.. -
.
rii--
:r,i
s
..'!7 .I ?
C
;'ik
.
'I, J
T'
replace lines drawings i the building processes, such that electronic data
processing systems and numerically controlled tools can be utilized.
The complexity of mathematical ship definitions causes some difficulties
when new ships are to be designed. During the process of designing new lines.
a ship form that satisfies a number of different requirements is developed.
The naval architect operates with a conception of the shape which is easily
expressed graphically Mathernatial expressions are not suited to this Job as
the creative power of the designer is burdened with the irrelevant problem of
how to describe a given shape mathematically. It is therefore likely that
lines drawings will continue to be a tool for designing new ships, and that
the mathematical definition of the surface will be produced from these draw-
ings.
It is possible that computers some day will be used for the preparation
of the design lines drawings, such that the design process results directly
in a mathematical ship definition. Such a technique seems possible as devices
for in/output of graphical data are fast developing. One may imagine a design.
process where the lines drawings appear ori a ,,screen,. connected to the com-
puter. and where the designer Improves the lines on the screen by means of a
special pen. The process may for instance start by the designer specifying a
modification to be employed ori a parent ship, the data of which are stored In
the computer. The lines of the resulting ship then appear on the screen, such
that the designer can either accept, or try to Improve the shape. The search
for a satisfactory solution is facilitated by the ability of the computer to
calculate the different characteristics of the designed hull In a short time.
The techniques of computer-aided design have already been tried experimental-
ly [21]. There are, however, many problems to be solved before these tech-
niques can be fully utilized. One such problem is that of representing a ship
surface in a digital computer. i.e. of preparing a mathematical definition of
a ship surface.
building a ship.
To develop a method for the calculation of the numerical values of the
coefficients of a mathematical representation of a ship surface given by
a design lines drawing.
-6-
As the design drawings are made to a very small scale, the lifted data
do not represent a surface which is smooth enough for building a ship. The
method for the calculation of the mathematical surface representation must
therefore include a fairing of the lifted data. The deviations between the
faired mathematical surface and the lifted data should, however, be of the
same order of magnitude as the errors in the lifted data. This requirement
for , .practical identity,, between the surfaces represented by the design
lines drawing and the mathematical expressions, is introduced though consider-
able deviations may be accepted in some cases. Discussions regarding the ac-
ceptance of such big deviations are thus avoided, helping to reduce the time
needed to arrive at a mathematical ship definition, and eliminating a possi-
ble source of friction. It is furthermore undesirable that designers of new
ships should be restricted by a mathematical method which limits the shapes
that can be used.
The method developed should be suitable for routine procedures in the
shipbuilding industry. It should therefore permit the production of the
mathematical ship definition within a short time, and with a minimum of
effort.
-7-
The subject has been considered from two different points of view, that
of the practical shipbuilder and that of the hydrodynamist. The interest of
the hydrodynamist stems from the need for a mathematically defined ship hull
when calculating the hydrodynamic forces on ships at sea. For this purpose
the definition should preferably be relatively simple, in order to facili-
tate the manipulations called for by the equations involved. As hydrodynamic
calculations made hitherto, are based on a number of rough approximations,
the mathematical definition has not needed to describe the ship form very
accurately. Mathematical hull definitions, which are primarily intended for
hydrodynamic calculations, are treated in [20]. [25]. [26], [38] and [14i].
The interest of the practical shipbuilder stems from the need for a mathe-
matical definition of the ship in order to utilize digital computers and
numerically controlled tools in ship production. The ship definition neces-
sary for this purpose must be very accurate. Complicated mathematical expres-
sions may, however, be accepted for this task as computers will be involved
in such production techniques. As the approach of the present work is that
of the practical shipbuilder, only works related to this approach will be
reviewed.
The different methods published in the field rep?esent all degrees of
completion, from proposed methods which have never been tried, to methods
which have been tried on a number of ships. The different methods will, how-
ever, be reviewed without regard to the degree to which they have been
developed.
The methods published may be divided into two groups, sectional-curve
methods and draught-function methods.
Lidbro [273 divides the ship surface into about 200 parts. In each part
the transverse sectional curves are defined by polynomials or by arcs of
conic sections. This mathematical method thus corresponds roughly to the
drawing of ship lines by the means of French curves. Unfortunately the pa-
per gives no information about the methods used for calculating the coef-
ficients of the functions used. The other workers in the field use the
spline function which is the mathematical analor of the elastic batten.
The spline function concept vas developed by Theliheimer [1i] from
elementary theory for elastic beams. According to this theory an elastic
batten supported at a number of points, as is the case when drawing ship
lines, is represented by a third order polynomial (a cubic) for each inter-
val between two adjacent support points. At a support point the two acLjac-
ent cubics will have common first and second derivatives, while the values
of the third derivatives will normally be different. Such a serie of cubics
is therefore defined, as a sTline function.
The assumption made in the elementary theory of elastic beams, i.e.
that the deflections are small and that the beam material Is linearly elas-
tic, do not apply very well to actual deflections and to the wooden or plas-
tic battens used when drawing ship lines. The usefuilness of' the spline
function stems, however, from the fact that its third derivative Is discon-
tinuous at a number of points. This enables the spline function to change
its character significantly at these points of discontinuity. The flexibil-
-9-
ity of the spi inc function may be illustrated by the fact that a apUne
curve can be composed of both curved and straight parts.
It seems at a first glance that the apune function has the advantage
of being composed of very simple elements, namely cubics. Cubica are, how-
ever, not very suited for defining parts of the curves where the angle
between the abscissa axis and the tangents is bigger than 3o-4o degrees.
Such curve parts are therefore avoided in the apUne function methods, either
by dividing the curve into a number of sections to each of which a suitable
rotated coordinate system is applied ([i] and [24]) or by transforming the
ship lines mathematically to a new set of lines which are less steep ([4]).
These measures unfortunately outweigh the advantages of the simplicity of
the cubic representation.
RSsingh [7] avoids the need for a proper orientation of the coordinate
system to the spline curve by using arcs of circles instead of cubica for the
definition of the spline function. He arrived at this method by studying the
changes of curvature in different sectional curves.
Gospodnetil [iO] avoids the shortcomings of the cubics by applying
eliptic integrals for the definition of the apUne function. Gospodnetics
representation is obtained by a carefull use of the theory of the thin
elastic beam.
The spline function is calculated from coordinates which are lifted
from drawings and are therefore not very accurate. Some smoothing of the
errors must conseq.uently be included in the calculation method. The coeffi -
cients of the spline function are therefore calculated such that the quantity
2
- 'n
+ f
t'
n
-rj
n
(i)
has the smallest possible value. In this expression f is the spline ordinate
which replaces the rith lifted ordinate y, f is the second derivative of the
spline function and r the corresponding second divided difference calculated
from the lifted coordinates, and S is a weighting factor, the value of which
is found by triai and error such that undesirable fluctuations in the apune
curve are avoided. The two quantities of the above expression may be consi-
dered as an ordinate and a curvature conservation condition. Bakker {1] uses
a smoothness condition instead of the curvature condition namely
(2)
the nth lifted ordinate. Bakker f inds empirically that k5 is the most suit-
able value.
The ship surface is faired in the same way as in the graphical methods,
i.e. by successive fairing of different types of sectional curves1 which is
repeated until ali the changes in the ordinates in a fairing cycle are below
a prescribed tolerance.
It is of course. necessary that the ship surfaces defined by the dif-
ferent systems of sectional curves, e.g. waterlines and transverse sections.
are practically identical. The spline function used for defining the sec-
tional curves must therefore be so flexible,, that both the waterlines
and transverse sectional curves can be fitted the same ship surface with
sufficient accuracy. If this is not the case, the iterative fairing process-
described above will not be convergent. Such convergence difficulties are
likely o occur in highly curved parts of the surface (see [is] page 25). If
on the other hand, the function used for defining the sèctional curves is too
flexible,,, it vil], not be suitablé for smoothing out the errors in the
lifted coordinates. The .,flexibility,, of the spline function must thus be
balanced between two inconsistent requirements. Adjustments of the . flexib-
ility, of the functions are made either by changing the numerical value of
the coefficient S in equation (i) or by changing the number of lifted
coordinates,
The difficulty of obtaining coincidence between the surfaces defined by
the different types of sectional, curves, stems from the fact that the method
only operates with tvo dimensional curves, which of course was a physical
necessity in the original graphical methods. On a computer it is, however1
possible to fit a mathematical surface directly to the ship surface, so that
the problem is avoided. Such methods are reviewed in the two following
chapters.
This chapter treats four draught function methods, which deviate con-
siderably from the methods discussed in the previous chapter. In the four
methods described below the centre plane of the ship is used as the abscissa
plane and the ship surface is defined by giving the ha]fbreadths as a f unc-
tion of two variables, most often the draught and the distance from amidships.
Berghuis and R6sing&s methods [7][8][33J not only use polynomials but
also other functions for defining the waterlines. Furthermore, the waterline
expression is calculated by fitting a function to the second derivative of
the waterline and by Integrating this function twice. The numerical values of
the second derivative are calculated at a number of points using dif-
ferences between the ordinates lifted at these points. This approach is based
on a study of the role of change In curvature on the ship form. From a later
paper 18] it seems, however, that the method has been modified so that the
waterline function is fitted directly to the lifted ordinates. Unfortunately
two of the parameters used in the first two paper; were numerically unsuit-
able, such that it was necessary to fair and define these two draught func-
ticns graphically. It was therefore proposed in the last paper [7] to use 3
transverse sections as draught functions.
Atkens and Tapia [2){ 6) define the ship surface by a thematical
expression which is defined such that the transverse seàtlons and waterlines
are apune curves (described in chapter 3.i.). The coefficients of the
expressions are calculated such that the maximum deviation between the math-
ematica]. surface and the lifted offsets is the smallest possible. i.e. the
so called minimax criterion. Furthermore, unwanted Inflection points in the
transverse sections and waterline curves are to be avoided. This Is achieved
by requiring that the second derivative of the surface along the transverse
sections and waterlines have the correct sign. The coefficients of the sur-
face expression are calculated using linear prograsing techniques (see e.g.
[12]). For each of the lifted ordinates, four constraints are thus set up to
express the requirements, that the second derivative of the mathematical,
surface in the vertical and longitudinal directions will have the prescribed
sign, that the ordinate of the mathematical surface Is smaller than or equal
to the lifted ordinate plus the maximum deviation, and bigger than or equal
to the lifted ordinate minus the maximum deviation. As every one of the lif-
ted points gives rise to 4 constraints, the linear prograzmning problem
becomes so bulky, that only parts of the ship surface could be fitted at a
time, even though a big computer (i1 7090) was used. In the later work [6].
it is reported that considerable savings were obtained by replacing the
ciinirnax criterion with the requirement that the sum of the deviations should
be the smallest possible. The computer capacity needed is still somewhat
large. The problems of connecting different surfaces and the treatment of
surfaces nearly perpendicular to the centre plane are yet only solved in a
sketchy manner.
Pien [31] uses a polynomial for defining the ship hull. As polynomials
are not suited for describing the parts of the surface w'iich are almost per-
pendicular to the abscissa plane, the ship hull is first transformed mathe-
matically into a new and much smoother shape. As a result of such a modif Ic-
atiori, an afterbody, shown in the paper, could be defined by a polynomial of
only eighty coefficients. Unfortunately little mention is made in the paper
of the difficult problems of defining the stern/stem regions and of devising
the interpolation formula to be used for the transformation given by equation
9 of the paper. The last point may reflect the problem introduced when
employing transformations, which Is the choice of a suitable transformation
formula. The solution of this problem Is not obvious, as the ship Is modified
by the transformation into an unfamiliar shape.
Hayes and Clenshaw' s method 111)123] has the same basic ideas as Piena
method. The stem/stern region are however in this method treated In a satis-
factory manner, and the transformation used is more simple and suitable. As
..j14_
ship types.
In the draught function methods reviewed above, the surface expressions
are derived by first setting up a waterline expression. whereafter the con-
stants in the waterline equation are substituted by functions of draught. It
is, however, also possible to derive a surface expression directly. This
chapters.
-15-
Li) Division of the ship surface Into parts having shapes of different
charac ter.
transverse sectional curves at the after part of such ships are norm ly
composed of three parts (Fig. 14), The submerged part vhich is nearly straight
and the part above the water which is roughly elliptical and convex. These
two parts are connected by a third part which is rougly circular and concave.
The second and higher order derivatives of such a curve are obviously discon-
tinuous at the two points where the three parts are connected. One may thus
trace on the ship surface two lines of discontinuity in the second and higher
order derivatives. Lines of discontinuity may also be introduced in order to
facilitate building the ship or for other reasons. A special case is the
the ship surface which have shapes of different character. In the present
work a separate mathematical function is fitted to each of these parts of the
surface (Fig. 5. 6, 7 and 8). These functions are calculated such that atija-
cent parts of the ship surface are connected in the manner intended by the
designer, i.e. either only having common ordinate (a knuckle line) or also
having common tangents (normal case).
The division of the ship surface along the lines of discontinuity is
made manually, and is based on a visual study of the shapes of' the surface
flat of bottom
X
.)
y
Fig. 14. Lines of' discontinuity in the second and higher order derivatives
of the surface expression y=F(x.y).
-17-
up limit of side
flat of bottom
limit of side
fore WI entrance! foreend
yhitae ol nomiol
bOttOmlimit
fore midship limit
lore wi entrance
Conic
section
X 02
fore end
up limit of Side
polynomial 2 y: P (x,z)
oft end polynomial i y P1 (x__pilaelimjt
c't wi entrance
ca
,.inflS ! bliqe
keel
X flot of bottom
polynomial aft midship limit
4
aft wI entrance
conic y bilge bottom imi
section oft half breadth
u limit of side
conic
oft midship limit
sections polynomial 3 polynomial 4
stern y: l(x,z) y:R,(x. z)
polynomial 2
oft end polynomial t bil.e li
aft wt entrance y :P1 (z. z)
z bilge
keel c
flat of bottom
ô
X v-t--t
polynomial aft midship limit êY
aft wI entrance
y bilge bottom limit K
conic
Sect ion aft haltbreadth
z
. o
X
y=P(x.z)= a1 X
ii
Z
1=0. J0
where I and J are the orders of the polynomial P(x,z). Fig. 22 shows an
example of the polynomial coefficients ajj.
Normally the different pOlynomial surfaces together constitute one
smooth surface. Iii some ships, however, the hull is composed of two dif-
ferent smooth surfaces that meet each other along a longitudinal knuckle
line. In such a case the knuckle curve is defined mathematically and is
used as the boundary between the polynomial surfaces above and below lt.
14) BIlge region between the flats of bottom and the lowest polynomial surface
Here the ship surface Is defined, such that any transverse section (x=con-
stant) constitutes an arc of a conic section, Each of these conic sections
is calculated such that it has common tangents with the polynomial surface
and with the flat of bottom at the upper and lower limits respectively of
the section (Fig. 9a). Furthermore the conic section Intersects a longi-
tudinal construction curve. The projections of this curve on the two long-
itudinal coordinate planes are denoted (ybilge, zbilge) and are shown in
Figs. 5 to 9. In some ships the bilge sections are not tangent to the flat
-21-
of bottom at the after part of the after body (Fig. 9b). The angle y shown
in Fig. 9 is zero in the interval between ai1dships and a point which is
denoted , . xtana.ft,, in the data form shown in appendix 2. When moving aft
from this point. y increases steadily.
ttots
b
a
5) The stem region. Here the ship surface is defined, such that any horizon-
tal section, i.e. a waterline, constitutes an arc of a conic section. Such
a conic section is calculated, such that lt is tangent to the polynomial
surface at the aft boundary of the stem region, and such that its axis of
symmetrl is parallel to the x-axis (Figs. 5 and io).
-22-
stem
stem
tore wi entrance
tore WI entrance
'I)
case 2: b>a
casel : b<o
lisait: 2.514866
order; O
5.280 radivas-0.9500
ellipse
centre: 2.lIIl 32.56389
limit: 3.31727
order.tp: l 3.71100
4.180 coeft: .336231999 2. .Ji80000 i.
straight line limIt: 4.18000
$4 orders-i 2
z2
3317 coeff:-.132108551 1 -.168801666 1
z
.153326775 .8529119319 2
_.%914371e117 2
circle z
-.100000000
sign
i -.1140737541
i
Ie
limit; 5.28000
constant
2.549 order.tp: 1. 7.6400
straight line coeff: .369988401 2 .331000018
straight line * arc of o conic section 4.185 z 5.28 The coefficients of the
different terms in the equation ore shown.
the equation in order to eXpress z = I (z), o When jpar ranging
squoPWerm op
X
pears. This term is in this cose given the sign - in order to-
optain the correct branch of the conic section.
Fig. i.i.
Fig. 12.
represent.. the tangent end Is specifIed by two .othts. The fIrst I the end
point of the couic ere. vhi..e the second is positIoned above or below the
first one dapenttng on whether the conIc fts.s a positive or negatIve derIvatIve
adjacent to 'I. vertical tangent.
0L_!ote circle specified by Lt. radius. F - if it ta rsç'..Ir.d to force the curve thrcugJ a ,otoZ state befOre the
- abscissa (? for fIxed). In the case of a conIc section on.l,y Is permitted.
Thu computer vili position the ere, of conte sections and circle. so that .aeh Limita - point.. havt.zlg abscissa outside the interval s,.ecified for i.'ts curve
of them is tangential to its two adjacent curve elemente, which cust be spec it led can a.so be stated. ¿so overlaptng between tAs points speeifi.d for
a. polynomial.. tve sdje,cen; eements mey result in s ours natural transItIon between tnem.
Abscisse., o? limite. The coordinate ext. to be used are stated in u table on llame of the curve ttabi.e om pes i..2 aM
pages 0.2 aM 0.3. The curve elemente are specified below such that the colu
,,abucieeas of the limits,, vili have increasing valuas downwards. i
1h. order of connection te defined as: F'Abeciseacrd-At' F AbscIssa ordinate 'F bscIa ordInate I .sb3C.sse. .rdInate
o jír.,, f 3/. 'íF5 O,'90
[orúer The two adjacent .lementi havait the point of conr.ectton7 1.6 i/.-10 31. 69
- t dttf.ret ordinates i... jump in the curve.
con ordinate at a point, which fits bet for the curve.
O con ordinate at the atetad limit.
L_' I con ordinate and tangent.
in ca,. of a drei. specified by its radius (eods O) or conOectIon order -
the accuret. value. of the abscissae of the limite vili be calculated by the eca-
poter. State neverthelese approxinate values for these abseissas.
To the cas, of a circle or coni section, etat. order of connectton I with the
two adjacent pol.ynomie.is.
!4ame of curve (see table on pages 0.2 and 0.5
A text to identIfy the curve. State at least the date.
ThIs tenttfication te useful! if different proposals
are trled. F sbsctesa'ord.Inat.e 'P ..bsclssa ordinate' 7 bsc tesa ordinate 7 ,bsCi;se. ordinate
The curve t, composed of the eener.te: '/6/ ..3.ÇPÇ co
cf' code r,t.mber crder of con-s
limit tcr type of nectton with j
elemer.t subsequent
Sraeet abeetesa of fIrst, element e lenar.t
o L
t' 2 / 1'
2 o /
Put order of connection after laut
3
I.
/ I
.3.3 o Il
sienent 5
4/f / /
6
i -/ /
/o I, o
e
.3
it titis tore Is l&et pese of a....l curve nate
end element
',a'.e .uAtb. end
L -.
Fig. 13. The data supplied to the computer for the calcula:ion of the stern shown on Fig. 11.
-25-
bottom
1376
itT-66 j
29
number of element,: 3
limit: -107.79000
order.tp: 7. -80.3950
coeff: .7T1166873 1 .355819866 -.584(22358 -.3693063(4 3.
.725783937 .2654181645 _6 -.429739361 ,-8 -..5100ie512-i0.
limIt: -53.00000
order.tp: 1. -5.9250
coeff: .115200001 2 -.728986059 e-9.
1imt: i.1500Q
order.tp: 7. 67.8250
coeff: .851585(48 1. -.290628750 -.626876741 -2 .1817149052 3.
.574Q9114814
,-5. -.1140530755 .,_6 -.778(90699 ..9 .5?SS4957S..iQ
limit of CU1Ve: 94.5000
data end
Fig. 15. Coefficients of the .bottom limit,1 curve shovn on Fig. 114.
tjort.rsvuj 99
Lnby Den.r4'.
Data tore: Curve Description sea
F;G
-.- cRvE.
olyTilal - number cI .olnta should eaceed t order of the lnoma..
LiliES
RRIPTLJi ..F
A curv, is defined by a chain of cur,. .l.isent. vhtch sr. to be specIfied Ciro:. - atete ta redits In both cos . -
bijou. The curve eleeinta permitted and the cods .uwar. to b. ua.d for the - sta4 at iaa.st e otht. PoInts near the .lmita the conic
ap. ficatio..e 52.I section s..l.t nt be st&.ed here obOe the ahae t tr.ese reglns Is
eijacent lyn,oaa.
edaquately da f nad by the and ,.olnt tangents ofatthe
When the co.: sectIon &s a vertis.l tangent or.. .if Its lImIta. a new
pulynomls.l. curvs .lant a..at se Introduced. This alant to a YertIca. lin, which
i straight lin.
tal rereesnts the tangent sod Is seclf.ed by two s.ilnts. The fIrst Is the end
l
p p..order jo ?oLnt of the 0.45.10 arc vh.Lla the second is .osltIuned a&'we or below the
arc of s conic .etion (elltpee, itpeitol. peao.a cc,ntc sectton fIrst one d ending on whether th, cOnIc has a 'o6Itve or nega'Ive derIvatIve
a&je.cent to tse verllcs.. tergent.
or circle). The coput.r utLi chocei thi ty'e of contO a poInt stat. before the
-
- lt lt Is reç...red to tozo. the curve fthrough
that fits beat to the given eondtttor.a. abadesa (P for fI.ed). n the case e Conic sectlOr. only F la jera.ittcd.
L._ src of circle puctfted by Its redlu.. Limita - j,'oInts having abscIssa csststda the interval :.ctf led for iia curve
between L-se ,ozsts eeitte4 ror
element can s..so be sW.ad. n .sveria.tng natural
The coeput.r vt.l position th. arcs of conic section. ami etre'es si that each two adjacent elemsnts mey result In a tressa tion between tn,a.
of thee Is tangential to it. two adjacent curvi .mente, wnlch cuat b. .pectfied
55 Name o1 the curve (tania on egeo &. i ami .
bot om
b.eI..e.s of Atmits. The coordInate axt. to b. used are staid In a table on
paces .2 arid .'. The curve e.ents are epectflsd beLa, auch that the colui 1Absctssa'crd.r.at.' bsclssa ordInate 'F Absctsa ordtnatr / Abscsia ordInate
,abectesaa of the lstt, vtl have increa.tng values downwards. -i7.9 a /. -40
1/33 . Y5 11.3/5
The order of conriectior. Is defIned ae -
/00.4 t 4"f F '10 vg. 32 lo if. Ç -
order ' The two adjacent .lenents have at the point of conr.ectton:'
different ordInate. i.e. ,jwap In the curve.
-- . -
-
- 90.0 q i, Sj 10. fl
¡
-2
cor ordOnate at a point. which ?Ite best for the curve. Iao 7.9-1 - ¿o ,o.v
eon ordInate at the eteted tait. ;
O
coin ori r.a'.e and tangent. _j - - 70.0 105$'
-- ¿5.04/OS
_-64.0 II-2$
-
SO
90 lii
4'2
in case of a circle specified by ite radius (code C) or connectthn order -
. -
the accurate values of the abscissas of the iteits wIll be calculat.d by the com- j5g if.3/f c, 9$'5 0.01'?
tor these abscieeae.
puter. state nevertheless approxtte velu.. atete
Tn the caes of a circle or coni setiOn order of connection i with the
two adjacent polynomiale.
curve
!iams of curve (see table on pe.ea 0.2 and
o ) 5'1SfS7.11, .
A text to identIty the curve. State at least the dati.
identification le usetull uf dIfferent proposals ,,, ' Abpcissaord.inat P AbscIssa ortttnat.' 7 ..bscissa orijisiate' ! Abscissa .,rdinat.
Thu
are tried.
Th curve i. composed of the elemer.ta: [scfii
limit
f code numbeiT orr o? ¿t
for type of neetton with
elemer.t subsequent
ScelIst abscIssa of fIrst elenent i -4ja7?Q element
Pt ord.r of conn.ction after last
eleeent - O
Lt this form i. last jage of a.Lj curve data. 'tate
J data end.
Fig. 16. The data supplied to the computer for th
-27-
Fig. 17. The GIER computer which has been used for the present work. The
unit closest to the door is the drum storage. On the top of this unit is
seen the Benson - Frace plotter coupled to the computer. The computer which
is produced by Regnecentralen of Copenhagen has an outstanding ALGOL .O
compiler.
the sum of the squares of the differences between the ordinates of the given
polynomial values, with respect to the coeff i-
points and the corresponding
dents of the polynomial, and by putting these derivatives equal to zero. In
of a
the second method the polynomial is calculated as a linear combination
set of orthogonal polynomials.
work the problem is more complicated than in Íi] as a
In the present
chain of polynomials is used instead of a single polynomial, and as a number
of boundary conditions are imposed on the polynomials. The principles of the
where
two above mentioned methods are nevertheless found in the present work,
equations
the curie coefficients are calculated by solving a system of linear
The
and the surface coefficients by applying a set of orthogonal polynomials.
calculation of the surface coefficients by solving a system of linear equa-
considerations
tions vas not practicable on GIER because of speed and storage
and because numerical difficulties could be expected for the reasons given in
gives the best fit in the least squares sense to the lifted points.
Two examples are given in figures 11 to 16, which show the two curves,
the data supplied to the computer and the resulting coefficients.
A curve element defined by an arc of a circle or a conic section is only
permitted between two elements of the polynomial type, while polynomial curve
elements may succeed each other. A curve can therefore be considered as being
composed of a number of polynomial chains which are connected by arcs of
conics and circles. The different polynomial chains are calculated first.
Thereafter each pair of adjacent polynomial chains are connected by an arc of'
a circle or a conic section such that the arc is tangent to the two polyno-
mial chains at their end. points.
(1)
j 2
(P(x.)-y1)c.]2= (2)
1=0 j=o
is a minimum. c1 in this expression denotes a number by which (P(x.)_y) is
multiplied in order to obtain the distance from (x1,y) to the polynomial
-39-
Fig. iO.
Calculation of the dist-
ance of a point from a polynomial
curve. The polynomial P(x) fitted
to a number of points, the coordi-
nates of which have been lifted
from an inaccurate design drawing.
A and B are two of these points.
B is the considered point and A is
an adjacent point. The distance
from B to rP(x) is calculated. as:
C ((Px)-.y ),vhere C cosrcosß
cos is calculated from the
triangle ABC.
composed
In cases when fixed points are specified, and when the chain Is
and tangent are speci-
of a number of polynomials for which coon ordinate
imposed on the po-
fied at the connection points, a number of conditions are
fuif lied. The coeff I-
lynomial coefficients, such that these requirements are
such that these conditions are
dents of the polynomials are thus calculated
from the
satisfied and such that the sum S of the squares of the distances
Each of the conditions is
lifted points to the polynomial curve is a minimum.
coefficients which must
formulated by setting up a. function of the polynomial
be equal to zero. The different types of conditions are:
a14_yf_o (i)
f(ao,...,am)P(xf)_Yf
1=0
are given. f(a0,.. ..am) Is solely a
as the numerical values of (Xf.Yf)
i=o =0
-31-
necting abscissa
F=O (Li)
and 3).
The sum, S, of the squares of the distances between the lifted points
and the polynomial chain curve, is composed of the sums calculated for the
different polynomials. For each polynomial the sum is calculated in the way
described in 4.2)4.l.
The coefficients of the polynomials of the chain can now be calculated
by a method proposed by Lagrange. whereby one searches for the minimum of the
expression:
S (5)
to these variables and putting these derivatives equal to zero, a system of'
linear equations is obtained. The numerical values of the coefficients of' the
polynomials rind ofthe Lagrange multipliers are then obtained by solving this
system of equations. The Lagrange multipliers are not used for curve defini-
ticn, but their numerical values are indications of the degrees of constraint
irripoed on the polynomials in satisfying the corresponding conditions.
'Ehe equ'itiom of the i i.riear system whl ch :tem from ?.he dj f1ererAtlat Ion
Qf (r vitti respect to the different polynomial coefficients c., may be
wi-i tten
as a(F) =0
(6)
-32-
as Ji_o
8OEM.F.) (.)
since the expression for S. i.e. (2) in 14.2.11.1.. does not contain any p
and equation (7) is reduced to
ji1 =0 ,
a ( E F) (8)
au1
As furthermore, the F expressions (i) (2) and (3) do not contain any ,u
F1 = O (9)
A complete definition of the method used for the calculation of the po-
lynomial chain is given by the ALGOL procedure In appendix l.
The numerical power of the method was tested by using the programme
chains of the types to be used l'or the ship definition and proved to be suf-
ficiently accurate.
The best numèrlcal resu.lts vere obtained when the abscissas of the
points, used for the calculation of a certain polynomial, vere measured from
the centráid of the abscissas. With this technique a separate coordinate
system is used for each of the polynomials of a chain. This does not, hovever,
inconvenienci the user, as the transformations betveen the different coordi-
The coefficients of a conic section are calculated such that the conic
section is tangent to the two adjacent polynomial curve elements at their end.
points, and such that the best fit is obtained to a number of points, whose
coordinates are lifted from the drawing. The calculations are performed by a
method similar to the one used in [23]. Let the equations of the two known
polynomial end-point tangents and of the straight line connecting these two
points be
yrn1X+c1
y m2x+c2 (i)
y=m0x+c0
The equation of the conic section can then be written V
(y_m1x_c1)(y_m2x_c2)K(y_mx_c0)2. V '
(2)
Fig.' 19. Calcúlation of a conic section given by the points A',B.D and the
tangents a't A and B. The point D must be positioned. inside the triangle ABC.
-3".-
- -
of all of these K values, i.e.
(5)
where w represents tvett. The weight w assigned to a certain K value is
with which this K
calculated such that it is proportional to the accuracy
value is known. The error hin a K-value Is calculated from the expression:
From the expression (() it appears that points near the ends of the arc yield
to lift points
very inaccurate K values. It is therefore not recommended
close to the ends of the conic arcs.
The above equaticn (2) for the conic section includes a term in y'. When
the equation Is rearranged in order to express y as a function of x. a square
root terni therefore appears. The sien given to this term indicates which of
two branches of the conic section is used for the definit.ion of the
the
actuttl curve e1ment. This sign must therefore he Irte ti;Ien h; thp thfinitiCn
of the curve cicmerit.
The coordinates of the centre of a circle are ealcuated such that the
circle is tangent to the two adjacent polyr;orr.1rì. eurve e.em.ts rit their end
points. When filling In the data form, the accurnte vaiues c abscissr;s A and
the two straight lines that are paralel to the tangents of the
C between
polynomials at their assumed end points A and B. Hereafter the abscissas of A
and B are changed by the amounts dA and dB by which the abscissas of the
centres CA and CB are changed when shifting to the new centre C. This process
continues until the changes are below a prescribed tolerance.
-'5-
1) Along the boundary between polynomial surface and the parallel middle-
body the value of the polynomial must be equal to the halfbreadth in the
middle-body. Furthermore, the surface tangent in any waterline plane.
z=constant, must be parallel to the centre plane, y = O. i.e.
aP(x.z)/ a x=o
where y=P(x.z) is the equation of the polynomial surVace.
Along the curves denoted fore en&. and ,aft end.. (see Fig. 5 and 7)
the value of the pölynomial must be equal to the ordinates given by the
curves denoted , ,fore halfbreadth,, and , af t halfbreadth,,. These four
these dimensions, such that the surface Is forced to fit to the prede-
predesigned, the end,,, and ,.,ha.lfbreadth,,, curves are taken from the
lines drawing. One of the most commonly used design lines is the curve
of Intersection betveeñ the centre plane, y=O, and the continuation of
the ship surface, disregarding the highly curved stem/stern region (see
Fig. .5).
3) Along the boundaries between the different polynomial surfaces the ad-
jacent surfaces must have comon ordinate and tangent planes. When the
boundary curve is a knuckle line, only common ordinates are required.
.2.5.2. The method used for obtaining smooth transition between the poly-
nomial surfaces.
The. amount of computation needed for the calculation of the polynomial
necting surface along the boundary curve. The connecting surface is thus in-
this work is
thus
The GIER time needed for the calculation of the polynomial coeffls ients by
the method used in the present work is
the same in equation (i.) and (2). the values of f are rearly the same. Over
the range of p. q and. f values for which the process Is to.be applied, the
GIER time needed when using orthogonal polynomials. is in any case less than
half the time needed for the linear equatións method, even if the quantity b
resulted from an analysis of the GIER time used, when employing efficient
machine code versions of the original ALCOL programmes. The ratio between the
computer time needed for trie two methods, will probably be different when
cated in the case of two variables. In the present work the orthogonal poly-
The surface fitting method of. the present work was suggested to the
author by Per Mondrup. A number, of' versions were thereafter tried in order to
find, the sequence of operations giving the best numerical results. These
numerical experiments were performed both with parts of a ship surface and
with ship like surfaces defined by given polynomials and resulted in the com-
putation process given In appendix 1. Phe'numerlcal experiments demontrat..ed.
as expected, that the most accurateresults are obtained, when the coordinate
system Is positioned such that origin is placed at the centroid of points to
in thi: ca;e the urface i forced through 8 pair; ol' clo;s points. A pair
thuz consiztz oÍ' the two polritz (x,z-iiz,f(x)_g(x),ciz) and (x,z+dz,f(x)sg(x)
dz), where dz is a zmall increment, whih .i the prezent programme is put
eqüal to 2._L4xLpp where Lpp is the length of the ship.
when it is specified that the polynomial P(x,z) to be calculated should
have the same ordi.nate.and tangent as an adjacent polynomial- surface y=Q(x,z),
which has been previously calculated1 the functions f(x) and g(x) are not
-25.4500, -25.1250, ..51,6250 -i3,4occ -16.7500, -20.1000 2,280c 1.5500 14.7600 5 6400 2 9800 - - - -
-26.8000 -28.4750 0.775e, 6.4900, 6.2700
- - - -
.20.1000 -23.450e -25.1250 -26.8c0
-50.15cc. -51.8250 .13.400cj -16.7500 5,18cc 2.14700 1.7550, 0.91.50 5.7700: '.91400: s:8.cc -
-
.28.14750 -50.15cc, -31.8250,
-
-16.7500 -20.1000 -23.4500 -25.1250 .15.1.000 4.oc, 5.5750, 2.660e, 1.9200, 0.1550 6.5500 5 8950 5 1100
-15.1.oc -16.7500, .26.8000 .28.1.750 -50.1500, -51.8250 5.2650, 4.2000, 1.1200 0,3050' 6:40,0' 6'oó5o - -- -
.20.1000 -23.4500 5.5600, 2.84o, 2.1050,
6.14450 - - - - -
-31.8250 -13.14000 -25.1250 -26.8000 -28.4750 -30.1500 6.105G, 5.4150, 1.2850: 0.14,50:
-16.7500, -20.10cc .38cc, 5.71400 5.0200,
- - -
-5.i500 -51.8250 -25,4500 -25.1250 -26.8000 -28.4750 6.1.750, 6.1900, 2.2850 i.50o 0 6100
-16.7500 -20,1000 5.5550, 4.5500, 5.9250,
-S0.i5ccj -31.8250, -53.5000, -16.7500,
-25.4500, -25.1250. -26.6000 .28.4750 0.7800, 6,4900 6.2600, 5.7000, 14.7250- 5.2150: 2.1.800' 1:5o
.28.4750, -30.1500, -20.1000 -25.145cc, -25.1250. .26.8000 1.8000, 0.91450, 14.1200 5 kocc 2 6550 - - - -
-31.8250, -35.5c 6.5250. 5.850e, 14.9050:
- -
-30.1500 -31.8250, -55.5000, .514,3575
-23.4500. -25.1250, -26,8000. 48.1.750 1.9850, 1.1250, 0.2200, 6.5750, 5.960C, 4.Sooc 5.5950' 2:8.00 -
-50.1500 -51.8250 -)5.500
-25,4500. .25.1250, -26.8o0, .28.4750 3.0550, 2,1806 5.0800 14.1.800 3.7900 -
_54.5375, 1.5250, 0,14250, 5.1.220, 14,8500 14.1800' -
.28.4750 -30.1500 -55.175e -23.4500, -25.1250, -26.8000 2.6150, 1.7900, 5,14400
-31.825e -55.5000 0.9200, 0.4600, 5.7800, 5.2450 - - -
-26.8O -28.4750 -50.150e -51.825e
.514.3575, -55.1750, .25.1.500. 3.(95o, 2.5000 1.146001 1.00(0, 0.5750, 6.1550: 14.6050' 5 88cc
-7.So, -7.2198, -55.socc, .54,5.575, -55.1750, -25.1250 4.14200, 5.6250, 5.6800' 5.0850 - -
-8.0568 -7.95614, 2.8600, 2.0600, -1-,635o
-
-10.1990 -10,1186 -8.7575, -8.6771, .9.1.782. -9.3978 5.514cc, 1,2250 6.5100 -5 90(0 - - - -
0 .582083890 1. .21432145657 -.20370146 -1 .532062666 -3, .9898501469 1765614815 J4-.5956551142 Ji1 .351171968 v-5,
1 .205917763 -.31481o1978 .-1.22851icQ68 -2 .707617171 ,-3-.1142183867 ,-5-.79862901414 13J1, .592585519 ,_5. .215150889 e-5.
2 -.170070897 1_.69711l4860 _3 .141466614992 -3,-.255639586 -3,-.825514o11Ii e-14, .25078CQ16 J#, 55655C458 ,-5,-.576825991 -6
3 .257372870 -5 .22141425703 -3-.2718595o9 _14_.230I4311330 -11 .9014596889 -5 .25014056014 _5,_.3081476701 6,....569656819 7
4 .219198939 _14_.911576106 ..5..756379910 (5. .5051188589 .2161103082 ,,-5,-.2183163i5 ..,6-.7965Ii7759 -i .1610911038 e-8,
5 -.318536138 -5-.2257514013 m-5. .272120118 .14699751470 .-.6 .1461414861113 ,_7_.11314Olhl522 ,-7-.2269972112 _8.196089I4Z#2 9
6 -.185o863 ,_6_.6765814235 ,-.7. .37514605114 ,-7. .75508(912 -8,-.239559557 z-8, .22738211311 ,-9. .30(291519-10-.201037550,-10,
Fig. 22. The coefficients of the polynomial calculated from the data shown
on Fig. 21. It should be noted that the sign of the coefficients varies over
the table. Small alterations in the input data often result in considerable
changes in the values of coefficients of opposite sign. The changea are1
however such that the value of the polynomial only changes in accordance
with the slight modification of the input data.
5. Implementation of the method on the HyA-.GIER computer.
The input data supplied to the computer are specified in the data forms
shovn in app. 2. The data stated on these forms a.re punched on a paper tape.
which is fed into the machine. There are thus two sources of' errors in the
input data, namely those due to mistakes made whén filling in the forms and
filled in, and states the bums in special spaces in the forms. If the com-
puter arrives at the same sums when reading the data. there is a practically
full guarantee that no unclear figure has been misinterpreted and that no
wrong figure has been introduced when preparing the punched tape. Furthermore,
when calculating the check sums, the person who fills in the data reviews the
figures an extra time, when other errors may be found.
The detection of errors due to mistakes in filling in the data form is a
more difficult task. The test is made by checking whether some known proper-
ties of the inpute4 quantities are valid. For instance a halfbreadth lifted
from a waterline should be smaller or equal to the maximum halfbreadth amid-
ships.
The traditional way of checking a table of lifted halfbreadth, is by
studying the variation of the haifbreadths when moving along the different
are used for checking the halfbreadths on a transverse section. The divided
differences are alsc used in some yards for fairing the halÍ'breadths. This is
smooth the input data, but only to detect mistakes, a more simple scheme is
employed. Instead of divided differences. a table of.chord surface deviations,
see Fig. 2. is printed by the computer and manually surveyed for errors. The
chord surface deviation method is more convenient than the divided difference
method, because it is easier to check a distance on a drawing than to check a
slope or a curvature. Furthermore, when a mistake Is. found the magnitude and
sign-of the error can easily be estimated from the chord surface deviations.
-
yk
The mathematical methods employed for the calculation of the ship def i-
nition are given in Li.2.3., and .2.5. As is seen from these chapters.
some of the curves must be calculated before starting the surface calcula-
tions. The programme is therefore divided into two separate programmes, one
for the curves and one for the surfaces,
As explained in chapter ¿.l. point 11.. the ship surface is divided by the
lines of discontinuity into a number gf parts, each of which is defined by a
separate function. In few difficult cases a further subdivision of' the ship
surface may facilitate the fitting of a surface expression. The prepared pro-
gramme permits the surface to be divided in the manner illustrated by Fig. 5
to 8. In Fig. 7, the surface is defined by 3 polynomial surfaces, but it may
In other cases, be divided into any required number of polynomial surfaces.
The boundary between two adjacent polynomials Is either a waterline z=con-
stant, or a roughly horizontal curve defined by z=f(x). Furthermore, as the
lines of discontinuity tend to disappear half way between the parallel mid-
die body and the stern/stem, see Fig. 4. the programme also permits the half
body to be divided longitudinally into two parts by a section x=xmid, see
FIg 8. In each of the two parts the surface may again be divided by water-
lines and nearly horizontal curves as described above. The longitudinal di-
vision, further, enables the slightly curved part of the surface near the
parallel middle body to be defined by a low order polynomial.
As described in 2.5.5., connection between two ad.jacerxt surfaces Is ob-
tained by forcing the two surfaces through a number of common points on the
boundary between them. The case %ihere two polynomials are connected along a
waterline is treated in 2.5.5.. When, however, the boundary is a curve repre-
and conic sections. the determination of
sented. by a number of polynomials
the necessary number of common points on the curve is complicated. An empir-
ical rule is therefore employed for the determination of the common points on
Ac-
the boundary between the polynomial surface and the parallel middle body.
cording to this rule, the fixed points on this boundary curve, are positioned
on the waterlines used. for lifting halfbreadths (see Fig. 214). Likewise, the
fixed points on the curves that guide the ship shape at the ends are also
positoned on these waterlines. The useful results obtained by this water-
due to the way in which these waterlines are posi-
line rule,. are probably
tioned (see .6.).
A urfoc. poIyflomio n rçiOn 2
WL
7
WI.
A surfQce polyñomial in r.gi 3
'iuirnu
55
lull".
5
3 3
as 2.5
2 2
t.5 lß
. mid
, mid
Fig. 214. The points employed for the calculation of two different surface
polynomials. The points lifted from the drawings are marked by circles with-
and 7. The points calculated from the boundary conditions are marked by
the parallel middle body and x=xmid, are calculated first. For the given
specified along the waterline z=2.2 while common tangents are specified
along Region S is positioned between x=xrnid and the stern. The poly-
guide curve at the aft end and to a previöusly calculated polynomial at its
nomial., since it is assumed that the polynomial above has not yet been cal-
culated. The figure also shows that halfbreadths outside the actual piece of
surface may be used for the claculation of the polynomial. The halfbreadths
The best way of checking 'the shape of, the calculated mathematical, sur-
face is to study a lines drawing representing thi surface. This Is however1
only practicable on a computer having facilities for graphical display, which
enables a lines drawing of the computed surface to be produced in a short
time. Unfortunately such a device was first installed at a very late stage
(early in 1967). and the original programme vas therefore based on numerical
criteria for the acceptability of a m thematiôal ship definition. The cri-
flection.
pòints are found in conic sections. only the part of the sectional curve
App. 3).
In some cases the shape of the sectional curve was not satisfactory.
even though the division into concave and convex parts was correct. More in-
foxtion seems thus necessary to characterize the shape. These difficulties
were1 however, avoided by the installation of an automatic drawing machine1
tests this property. This check is made by comparing the ordinates and the
first derivatives of adjacent surfaces at a high number of points along the
boundary curves.
5.5 Preparation of the data needed for the calculation of curve definitions.
found in appendix 2 (page 0.2 and 0.3). Some considerations regarding these
curves are given below. For clarity, the names employed for the different
curves are underlined. Examples of the curves discussed are shown on Fig. 5
to 8. It may be noted that these curves are the same as those encountered
when preparing a lines drawing.
The curves defining the contours of the ship, i.e. the stem, stern, mid
section. camber and sheer are traditionally defined by straight lines, arcs
of circles, second order parabolas and slightly curved parts. There are thus
no difficulties in defining these curves in the traditional manner by the
present method.
It is not possible to accurately define the position of the boundaries
of the flat parts of the ship. i.e. the fore mid ship limit, aft mid ship
limit and bottom limit curves. This is due to the fact that the curved part
of the surface is almost flat where it is tangential to the flat parts. For-.
tunately,it is sufficient to produce these curves with the accuracy by which
they can be derived from the drawing. As the points lifted for these curves
at the different sections show considerable scatter, a graphical fairing of
these curves on the lines drawing Is necessary.
A nwnber of numerical methods have been tried for the calculation of the
point where a waterline, given by a number of halfbreadths, enters the parai-
lei middle body. It was found that this point is mainly dependent on the half-
breadths nearest the parallel middle body, which is hardly surprising. Based
on this knowledge, a simple and quite efficient, method has been devised by
Hayes .[2]. In this method a parabola is calculated, such that, it passes
through the two halfbreadths nearest to the parallel middle body, and such
that it touches the flat side of the middle body. The point of tangency
between the parabola and the flat side, is used as an unsmoothed ordinate on
the boundary of the parallel middle body. This numerical technique is, how-
ever, not used in the present implementation, as the graphical derivation of
these boundary curves seemed to be the most simple solution. In some yards,
the bôundarles of the flat parts are ineluded on the lines drawing. This Is of
eo'ursé an advantage. when the present method Is to be used.
The fore/aft end sud foreLaft halÍ'breadth-curves are the projections of
two three-dimensional curves that guide the shape of the ship surface at the
ends of the ship (see ¿&.2.5.i. point 2). Such guide curves are also used In
graphical methods.
The fore/aft vi entrance-curve shows where the slightly curved part of
the ship surface ends, and where the highly curved stem/stern begins (see Fig.
5 and 7). This curve is derived graphically from the lines drawing, and is
used as the boundary of the steWstern to be defined by arcs òf conic sec-
tions.
The 7bilge and zbil curves are the projections of a three-dimensional
curve that guides the conic sections In the bilge region. Most parts of this
curve can be derived from the drawing with sufficient accuracy. The curve
must, however, be forced to intersect the mid section curve at the entrance
to the parallel middle body. Furthermore, tare must be exercised In the case
where both concave and convex transverse sectional curves occur (see Fig. 9a
and 9b). A straight transverse sectional curve must be found on the boundary
between the convex and concave regions. To: understand the difficulties in the
region around this straight sectional curve Fig. 19 will be considered. This
figure shows the conic section. which defines the transverse sectional curve
in the bilge region. A is the point whére the sectional curve leaves the flat
of bottom, i.e. the intersection between the shown transverse section and the
longitudinalbottom limit curve. Likewise, B Is the point where the sectional
curve leaves the lowest polynomial surface, i.e. the intersection between the
given transverse section and the longitudinal bilge lirnl.t curve. BC is the
The lines of discontinuity, found on ship surfaces (see &.1. point Z&),
Tkie lines drawing is therefore analysed visually, and the ship surface is
divided in accordance with the observed lines of discontinuity.
When the ship surface has been divided, the orders of the polynomials
fitted to the different parts are chosen. There are two orders to be chosen
for each part, namely the highest exponents I and J of x and z in thé poly.!
nomial expression
i=o. j=o
seen that any waterline in this part of the ship is represented by a polyno-
mial in x of order I. Likewise, all the transverse sections. x = constant.
therefore, based on a visual study f the character of' the sectional curves
within the part of the ship under consideration. I and J must of course be
sufficiently high such that the most difficult sectional curve can be defined.
After dividing the hull into polynomial surfaces a choice is made. of
breadths will be lifted and used in the surface calculations. These waterlines
and transverse séctions must be chosen such that the number of half"breadths
used for the calculation of each surface polynomial is at least equal to the
number of coefficients in the polynomial. Furthermore, the hB.lfbreadths must
be distributed over the surface in such a manner that the shape of the surface
is fully represented. The calculations will for Instance yield a useless re-
suit if all the halfbreadths are lifted at the same waterline. The rule ap-
plied is, therefore, that the number of waterlines must be at least equal to
J+l, and that the number of halfbreadths must be greater than or equal to 1+1.
on at least J+l of' these waterlines. When counting the number of halfbreadths
on a waterline, regard is paid not only to the lifted halfbreadths, but also
to the two halfbreadths derived by the computer from the guide curves at the
end of the ship and at the boundary of the parallel middle body. lt turns out
that the normally drawn transverse sectional curves will, in most cases, give
of' waterlines, the rule of having J+l or a little more waterlines is not al-
ways sufficient. This is probably because the surface, in the present program-
-52-
ship surface are used as boundaries between the different polynomial surfaces.
It seems that it is not necessary to determine the position of these lines
there-
very accurately, and that a satisfactory subdivision of the surface can
For the seme
fore be obtained by a visual analysis of the lines drawing.
reason nearly horizontal lines of discontinuity can often be represented by
waterlines.
The subdivision shown in Fig. 5 and if seems to be suitable for ordinary
cargo vessels. The ntmber of polynomials in the after part of the afterbody
of the polynomials (I,J), defined in
varies between 3 and. 5. The orders
14.2.1.3. are for instaIce (6.7) in the fore body. (11,7) in the forward part
afterbody.
of the afterbody and. (5,14) to (5.6) in the after part of the
It vas observed that the maximum distance between the points given by the
halfbreadths lifted, from the drawings and the resulting smooth mathematical
surface is 3-14 cm., when measured perpendicular to the surface. This figure
should be compared with the reading error and drawing accuracy,, which are
about 1-2 cm. The ratio between these figures Is such that one may assume that
the errors In the lifted halfbreadths due to the email scale of the design
lines drawing are smoothed out, while the humps and hollows intended by the
designer are preserved. The analysis of humps and hollows in selected. sections
through the calculated ships verifies this assumption.
As explained in 5.5., the orders of a polynomial surface are determined
by the shape of the most complicated sectional curve. Nearly flat transverse
sectional ' curvès are therefore In some cases defined by a high order polyno-
mial. One could, therefore, fear that unwaflted humps and hollows would appear
in such sectional curves. Such humps and. hollows, however, either did not ap-
due to
pear or were practically negligible. This high degree öf smoothness is
the application of the least square criterion and to the numerical stability
1.
of the calculation procedure employed, i.e. the procedure given in appendix
The computer prograimne has enabled the preparation of accurate defini-
of ships having very different form characteristics. Thus there are
tions
reasons to believe that the techniques of the present work can be employed
6.4. The value of the ability to represent any ship shape accurately.
The draught function methods, reviewed In chapter 3.1.. do not enable ac-
curate representation of any ship form. The originators 'f some of these
methods claim, however, that the solution to ship design problems can be found
within the range of shapes that can be defined by their methods. Similar
claims are made for a method developed at the shipyard of B and W [35], where
the ship surface is designed such that a major part of the shell plates are
developable. This approach facilitates the production process, but imposes
some restrictiöns on the ship shapes that can be built. In the present work,
on the other hand., the emphasis is on the ability to. represent any ship sur-
face accurately.
When designing a ship, considerations are given to the way the ship is
hull, the use of plane surfaces and other shapes which facilitate the produc-
tion, the minimum clearance needed between the propeller tip and the stern In
order to avoid vibrations and so on. It is noted that the details of the hull
shape are not only dependent on the functions of the ship, but also of' the
production techniques of the yard where the ship is tö be built, and of the
experience and ingenuity of the designers.
The steady growth of professional knowledge and Influx of new design
Ideas have resulted in a fast developemerit of the different ship types. These
improvements are often so valuable that they are Introduced in spite of the
savings obtained when building a number of identical ships. The use of compu-
ters for ship design and. production will further facilitate the tailoring of
The shapes of most ships are very complicated, since they are designed
a ship shape will therefore, in any method, include a large amount of data.
The preparation of the data needed by the computer is therefore the bottle-
the different part are chosen, and the coordinates needed for the calculation
of the coefficients of the expressions are lifted from the drawings. The nuin-
- ber of coordinates lifted for any part Is a little higher than the number of
coefficients In the function fitted to It. The total number of lifted coor-
dinates is thus baed on a detailed analysis of shape and Is therefore only
slightly higher than the minimum number f data by which the shape can be
specified.
Considerable savings in the amount of manually prepared data may be ob-
tained when the actual ship is derived from an earlier ship which has been
mathematically defined. A computer may be employed for the transformation of
the earlier ship into the neu one. The computer may a. the same time be used
for different design calculations (see [21]). A discussion of such methods is,
however, beyond the scope of the present work.
The possibility of letting the computer analyse the shapes from the lif-
ted coordinates and automatically divide the surface and choose the functions
to be fitted, has been considered. As the manual analysis is dropped when ap-
plying such techniques, a large number of coordinates must be lifted to
ensure a sufficient representation of all surface details. The need. to lift a
large number of coordinates may therefore outweigh the advantage òf a compu-
ter analysis of the shape.
When one gets familiar with the shapes that can be described by conic
sections and polynomials, the division of a ship surface into parts that can
be defined by these functions is reletively easy. These techniques are simi-.
lar to the graphical methods, vheré one fits french curves to the ship lines.
The techniques of the present work are, therefore, easily understood and
implemented by operators familiar with drawing ship lines.
The present method is a direct method in the sense that mathematical
functions are fitted directly to the different curves and surfaces f Thereby
the operator avoids some of the complications of earlier methods such as the
choice of draught functions, the need to transform the ship surface into a
more suitable shape and. the problem of coincidence between the surfaces
defined by different sets of sectional curves A further practical advantage
of the direct method is that one operates with quantities which, represented
graphicafly, may be studied on the design lines di-awl.ng..
language SLIP, while the rest vere translated from ALGOL. The part of the
prograe prepared in SLIP is the surface calculation procedure , apr 2..
given in appendix 1, while the ALGOL part includes input, check of input
data, sorting and arranging the data needed for the surface calculation,
check of results and. output.
The total GIER time needed to prepare a mathematical ship definition is
3-! hours. The computer time used. for preparation of correct input data,
calculation of coefficients and check of results are roughly equal. It is
-interesting that the calculation of the coefficients of the different curves
and. surfaces constitutes the smaller part of the whole process.
600-700 coefficients
of which the ship definition is composed. The minimum storage needed for
manipulations with the ship definition is thus around 5000 GIER words. This
minimum can of course be reduced by excluding some of the procedures and by
employing machiné codeé The ship definition can therefore be used on compara-
tively small computers.
6.8. Comparison between the sectional curies and the surface expression
method.
Conclusions.
Ships are designed to meet many different requirements. and the details
attn of the present work, to be able to represent any ship shape accurately.
thus corresponds to a definite need. The method of the present work, i.e. the
division of surfaces and curves into the parts of which they are composed.
and the fitting of polynomials or arcs of conic sections to these parts, seems
to be a satisfactory solution.
The method of the present work is a direct one in the sense that mathe-
matical expressions are fitted directly to the ship surface and the different
boundary and contour curves. This direct approach results in a system which
is relatively easy to learn and use. Furthermore, the computer time and
industry.
-61-
I\L
.
\
\
!
\
\\\\\\
\ \ I\ L
\\ \
\\
\ \\\\\\\\\\ \\\
\\\ N
\\\\
N N
4 \\ \ \\ \\
\\\\\\\\\ \\' \\\ \\\\\\ \\\\
\
\ \\
N
N
\ \\ \\\ \\ \\
\ \\ N \\ \\\
\\
\ \ \
\\ \\ \\ \\ \\\ \\
\
\\\ \
\
\
\ \ \ \\
\\ \\ \\\
L
\ \ \\
\\ \\ \\ \ - \\
\\\ \ \
\ \\ \ -
\
\\
'\ \
\
References.
[i] Asker, Bengt: The Spline Curve, a Smooth Interpolating Function Used in
Numerical Design of Ship Lines.
Nordisk Tidsskrift for Informationsbehandling (BIT). 2. (2-1962),76-82.
f 6] Berger, S .A.. Webster, W.C., Tapia, R.A. and. Atkins, D.A.: Mathematical
Ship Lofting. Journal of Ship Research. 10, (Dec. 19(6). 203-222.
[ii] Clenshaw, C.W., Hayes, J.G.: Curve and Surface Fitting. Journal.
Inst. Maths. Applics, i, )19(5), i14-i8.
[12] Dantzig. G.B.: Linear Programming and Extensions.
Princeton University Press, Priieeton 1963.
[1)4] Forsythe, G.E.: Generations and Use of Orthogonal Polynomials for Data
Fitting with a Digital Computer.
J. Soc. Indust. Applied Math. . (2-1957), 714-88.
[37] Taggert, R.: Mathematical Fairing of Ship Lines for Mold Loft Layout.
Journal A.S.N.E., . (May 1955). 337-357.
(i.)
i=o jo
where X and Y are the maxirnu exponents of x and y. The coefficients of
the polynomial are caluÏated from the coordinates of R given points (Xryr
Zr) such that the best fit in the lèast squares sense is achieved, i.e. such
that the quantity
)_Zr)2 (2)
r1
The method used for calculating the polynomial coefficients k1, is given
by the ALGOL -O procedure ;,apr 2.. stated belöv. The proôedúre is based on
the weil known technique, in which the approximating functioñ is built up as
a linear combination ofa set of orthogonal functions. The polynomial P(x,y)
is thus calculated as
aL(x,y) (3)
t=l .
where the at. are coefficients (Fourrier coefficients) and the Lt.(x.y) are
orthogonal polynomials. These. polynomIals are generated such that they are
orthogonal to each other with respect to the configuration of the abscissas
(XrY/ the given R-points, i.e. such that
R when uv
. L (x ,y )L (x
r u r r y r'
fO
i when uv
Each of the orthogonì polynomials Lt.(x.y) corresponds to one of the
coefricicnt k.. ot' tn polynomial P(x,y) to be calculated. The number Q of
orthogonal polynomiaLs is thus
The way ir which the orthogonal polynomials and their cöefficients are
numerated is demonstrated in Fig. 27. It is seen that the tth orthogonal po-
where X and
lynomial haS 'one term more than the t-i. polynomial. namely a term
to which the polyno-
y have the same expönentsi and J as.the coefficient
polynomials and the coefficients
mia]. corresponds. The different 'orthogonal
(i.j) or by the t number.
of the polynomials are thus characterized either by'
exponent
Fig. 27. The ordar in which the 2 V'3 of y
orthogonal polynomials are genera-
o
ted and numerated. In the given
example the orthogonal polynomials
have t-numbers ranging fromito
2
20. If we for inst. consider poly-
nomial number L we see that it is 3
equal to zero. The orthogonal polynomials are then generated for increasing
In the ALGOL procedure apr, 2 the calculation of' the orthogonal polyno-
v,c(zq[t.r])2 - 1. (5)
r=i.
wxzq[t.r]x(4r]_zK[t.r]). (7)
where z[r] is the ordinate of the given rt.h point, and zK[t.r] the ordinate
of the surface polynomials at this stage of the calculation. By fitting the
contribution of the orthogonal polynomial to z[r]-zK[t.r]. the accumulation
of rounding-off errors is avoided.
-70..
procedure apr2(x,y.z,Rl,R2.X.Y.Veight,K);
value Rl,R2,X.Y,weight;
integer Rl.R2,X,Y;
real weight;
array x,y.z.K;
comment A function z(xy) is given by R=Rl+R2 points. The coordinates of these
points are assumed to be stored in the arrays x,y and z. The weight i is as-
signed to the first Rl points, and weight ,veight,, to the last R2 point.
apr 2 calculates and stores in the array 40:X,0:Y] the coefficients of a
polynomial P(x,y) that gives the best fit to the function z(x,y) in the least
squares sense. X and Y are the maximum exponents of x and y in P(x,y);
begin
integer i,j,m,n,sl,s2.r.Q,R.T;
real xr,yr,yo;
Q:=(X+i)x(Y+i);
R: =Rl+R2;
T:=X+Y;
beg i n
array zq{l:Q,i:RJ.zK{l:R].L[l:(i+Q)xQ2].PY[OX];
comment
The arrays declared above are used for storing:
zq - the R ordinates of the Q different orthogonal polynomials,
zK - the temporary values of the ordinates of P(x.y) at the given R points.
L - the coefficients of the Q orthogonal polynomials,
px - the coefficients of the polynomial obtained when inserting
yyo into P(x,y);
Initialization of K and t:
for j:=O step i until X do
for j:=O step 1 until Y do KÍi.j]:=0
t:=l:
fact is utilized to save computing time. Each time a poInt Oli a new
line is encountered, y=yo is inserted into z=P(x,y) whereby a simpli-
fied equation z=py(x) is obtained. All the points on the line are then
calculated from this simplified equation;
if yryo then
begin
for i:X step .1 until0
begin
end for i;
yo:=yr;
a: =0;
for i:=X step-i. until Od.oa:=axxr+py[i];
zq[t.rJ:=a-4tixyrAn;
end for r;
Appendix 2.
The numbers stated on the data forms refer to their position in the sets of
forms to be prepared for the computer calculations axd not to their position
in this report.
Contents: page
Curves.
Results dis;atcred
Each of the characteristic curves sçecIIed on page 0.2 and 0,3 Is defined by
a chain of curve elements (see data or , Curve- DescriptIon.,). The curve ele-
Data forms ments to be used are polynomials and arts of conic- sections.
3 sets of data f'r-s are to be conpieted: Curve elements designed as, straight Loes or psraboias -are naturally defined
i) surface -ard. by polynomials of ist and 2nd order.
surface aft, -
-2) Most curve elements can be defined by polydomials of the order 5-7.
3) Curve -elements having nearly vertIcal perts, I.e. where the angle between.
contour ei tcwdarv cu-es., the tangent and the abscissa axis reathes values higher than l0 degrees,
are most suitably defined by conic settlons.
Vertical parts of the curve, e.g. s-.eer curve at the bulkhead forward of
The first2 sets data forts are co:n;rised of: poop, are considered as discontinuitles because the ordinate Jumps. from one
FRflCIFC L'OSII;S - thIs data form Is prepared in 3 copies and value to another. As described on data form , Curve DescrIption,,, discon-
tinulties are -specified by statlr.g -2 In the column, , order of connection,..
-Is used as the first data form for each of
the sets listed above. z abscissa
z abscissa
srATI::;5 - ;ves statlrr.s t -which halfbreadths are- lifted.
OFFSITS - ves halfbreadths lifted from the lines drawings. More
or.e datp. frr wll r.orraliy be necessary.
p-1 - '- -.
-
The last set f ista 'orts s ccçrlsed of:
FRINC IF.SI;S, -
FIG'. 2. The curves ,mid section,, and stets',,. p Is the code number of the
curve elements as defined on data form ,Curve DescrIption.
IRI pag.
t)SRI
fljortekarsvej 99 kSD tkT1iEMATICAi REPR1ENTA'I'IQN 0.3 peg.
1ynby - Denmark SHIP LINEIS Hjortekrsvej 99 FA1RING ND MAT}MATICAL HEIRESENTATIIJN 0.2
I'agby - Densark UF SHIP LiNES
that fits best to the given conditions. Y - ir it is required to force the curve through a point, state 7 before the
O ero of a cIrcle specified by its radiue. abscissa (F for fixed). in the care of a conic rection oni/I is permitted.
-
Limita - points having abscissa outside the intei-va), specified for the curve
The computer wIU pos ition the arcs of conic sections end circles so that each can else be stated. An overlapping between the points specified for
of them is tar.genttal to its two adjacent curve elements, which ast b specified two adjacent elements mey result in e mare natural transition between them.
as 'olynoraiels.
Abscissas of liait.. The coordinate axis to be used ere stated in a table oñ Name of the curve (table on pages 0.2 and o.)).
pages 0.2 end 0.3. The curve elements ere specifIed below euch that the colu -
,,abeetssns of the limits,, will have increüing valuesdovovards. [F Abscissa ordinate [ bacisse Ñii) (lAbacisse1ordina' íiAbscissa ordinate
-The order of connection Is defined a.:
order The two s.djacent eleaents have at tas point of connection: -- -
-2 different ordinates i.e. jump th the curve. -i----- --L-- - - -
-1 con ordinate at a point, which fits best for the curve.
O eon ordinate at the stated limit.
eon ordinate and tenRent.
t
In case of a cIrcle specified by its radius (code O) or connection order - -1,
the accuj-ate values of the abscissas of the liait. vi-11 be calculated by the eom-
put.er. State nevertheless epproximete value, for these abscissa..
In the case of e cIrcle- or conIc section, state order of connection i with-the
two adjacent polynomIals.
curve
Name of curve (see table on pages 0.2 end o.3)
A text to identIty the curve. State et least the dat..
ThIs identificatIon I. usetull if dIfferent proposal. -
Fitbscissa ordinate ryiAbscissa!ordijçate T"hbscjssa ordiiii1 Fbscissal
- -
-
- -
ere tried. H --- -- I;
2, ¿ i
- -i
II
Put order of cor.neetion after last '-
element - 0 5
i------ --- -'--------- --r-
7 L- ---- L---
e e fl e
8
- - -
Lt this form is last page of efl curve date. -tate data end.,
end elemer.t
tiSRI
HjorteI5Yei 99 FAING AND MATl4PLTICAL BPREEENTP.TIQN
Lygby - Denrk OF 6}P LINE
PATA FORM: principal dimensions
STATIONS FO LIFTING }1AISBRZADTHS In thie table r.ly f b:e.-ithe outside the parallel middle body aro stated.
ffsete can be filled n for the exter.eion of the .hlp elde above the upper
The hAlfbreadths are lifted on the coiputer etatione epecif led belov. deck.
Co.çuter etatlor. le norì1v poeltloned amidehipe. It however the
tranoverse eectlon amdehtpe le not the fufleet one, the computer eta.
tlon O Is plAOed on the fuilest eectlon. In ench half chip the etationa DATA Fc::
are numbered from station O outward. (eec figure below). Nor.liy a
Station epacth of Lpp/20 anidahipe and of Lpp/1O at onde te reconded.
Customers water) ne N. I J I J
Sreudht
u.tbor of tiret ataton for
DIA FO1*( stat lone woich a halfbreadth te etated
Customers Copu.
etats ,fore, or . .aft.. I dIstance from eLatIon ter
Cue tomer. owpu.er - anldahlpe station
Station No. Station No. nuor epacing
n i nXl
froc to from to 2
JuIl 66.
ppendix 3.
The method used in this work (chaptér 5.i..) for the calculation of the
most, one root in any interval which is confined by two adjacent roots of the
derivative of the function. This rule enables a systematic search for the
roots as illustrated by Fig. 28. Let us consider the polynomials
P1(x), Pn(x),
where Pn(x) is the polynomial under consi4eration, while the rest are its
derivatives. P1(x) is thus the n-1 derivative of Pn(x). Since P1(x) is a po-.
lynornial of the order 1. it may have one or no roots in the interval f x.i g.
If P1(x) has a root, it divides the interval into two parts, in each of which
a root of P2(x) is searched for. If P1(x) has no root, a single root of P2(x)
is searched Thr over the whole interval. This process is continued for in-
procedure polrt(a.n.f,rt.rirt.tOlX);
value n,f.g,tolx;
integer n,nrt;
real fg,tolx;
array a,rt;
begin
comment polrt determines the roots of polynomial Pri(x) in the Interval
fxg.
a-the cofficients of the polynomial are stored in a[O] to a[n].
rt-the calculated roots are stored in rt[1] to rt[nrt].
nrt-number of roots In the interval.
tolx-the desired accuracy
integer j,r,st,nevnrt;
real x,xl,x2,p,pl,p2.q..dX.p0lY
array deriv[O:n] ,newrt[O:n+1];
-79-
nrt:0;
rt[o]:=f; rt[i]:=g;
tolx: -toix/2;
newnrt: =0;
comment The number of roots in the actual polynomial. which is of the
order j. vili be counted in newnrt. The roots of this polynomial vili be
stored in newrt[i] to nevrt[newnrt]. The roots of the derivative of the
actual polynomial, which is a polynomial of the order j-i. are stored in
rt[l) to rt[nrt);
x:=rt[O]; p:=0;
for t:=j step -i until O do p:9xx+deriv[t];
for s:0 step i until nrt do
begin
xi:=rtts]; pl:=p;
x2:=rts+i]; p2:=0;
for t:=j step -i. until O do p2:-p2xx2+deriv[t];
p: =p2;
if pi.xp2LO then
begin
coent Calculation of the root found between rt[s] and rt [s+i]. The
statements below constitute the body of the ALGOL procedure . .bisec-
tion.. devised by Peter Naur;
dx:=(x2-xl)xsign(pi)/2;
x:=(xi.+x2)/2;
for dx:=dx/2 while abs(dx)'>tolx do
begin
poly: =0;
for t:=j step -i until O do poiy:=polyxx+deriv[t];
x:=(if poiy>o then dx else -dx)+x;
end;
newnrt: =newnrt+i.;
newrt{nevnrt]:x;
end sign(pl)fsign(p2);
end for s;
Preparations for the next step:
nrt:nevnrt;
for t:=i step i until nrt do rt[t]:=newrt[t];
[nrt+i] : =g;
end proc.polrt;
-80..
(x)-..-(6x-12)
P(x)y(x-6x2.l1x-6)
Fig. 28. Calculation of the roots of a polynomial. The process begins with
the first order polynomial (straight line) shown in the uppermost diagraxn.
ferentiation.
:.
Apper.di . .. . . . . .
.
begin
tp:TP[i];
comment Differentiation with regard to Lagrange multipliers for
fixed points;
for r:=1 step i until nrflx[i]
do
begin
J :=subscr[1,r);
for k:=O step i until typefi) do
maelm[row,Stnr[iJ+kJ:(ab[i,j]_tp)4c;
maelm[row,Nko] :ordfi,j];
row :-row1;
end;
comment Differentiation with regard to Lagrange multipliers for
connections;
if i>1 then
begin
for r:=O,1,2 do
if con[i.i]> r then
begin
for k:=r stp i until type(i-i] do
n.elm[rov,Stzir[il Jk] :=(limit[i_1 )_TP(i_i )),f(k_r)x
(k4r_(r_1)xk/2);
for k:=r step i until type(i] do
maelm[row,Stnr[iJ+kj:-(limit[T1 ]-tp)4(k-r)x(k,fr-rx(r-1 )xk/2);
row:r0w+i;
end;
end;
en?or i;
procedure polynomial. chain;
Resum. . .- . .
: :
:
etragtes stadigt Som det bedste hjlpemid.el ti]. konstruktion.af nye skibs-
linier, idet man paa en overskuelig mE'.ade kan arbejde sig frein ti]. et kompro-
mis mellem d.c forskellige krav, der buyer stillet.
Tidligere arbejder indenfor dette felt kan opdeles i metoder, der gr
brug af enten dybgangsfunktioner eher snitkurver. I den frste gruppe defi-
neres parametrene i vandhinieudtrykket som funktioner af dybgangen. Snitkur-
den over i.en flade som lettere kan beskrives matematisk. Ai' de tid.l-igere me-
toder ser det ud ti]., at kun snitkurvemetoderne er udvikiet tu en grad, der
y'P(x.z)
Programmerne her voeret anvendt med godt resultat psa alle norniale skibstyper.
samt psa et entai specialskibe.
Den direkte metode. der er acvendt i datte arbejde. har resulteret i en
f remgarigsxnaade. der er forholdsvis let at forstaa og fØ].ge. Behovet for reg-
nemaskinetid og -lager er moderat. saavel ved fremstilling s.f den matematiske
skibsd.efinition. som ved derme definitions arivendelse i andre prograier. Den
ud.arbejdede metode her saaledes vist sig egnet soin en rutineprocesS i skibs-
bygninsindustriefl.