91
During the three phases, ship’s course alteration
canstillbedividedintothreesteps.Accordingtothe
course alteration curve, the course changes quickly
andthecurveisconcaveuntilt
2.Thecurvecomesto
beastraightlinebetweent
2andt3,whichmeansthere
is equilibrium between the torque from rudder and
flowresistance.Thecurvebetweent
3andt4turnout
to be convex, which means that course is altering
slowly. The angular velocity curve comes from the
differential of the curve course alteration. It is still
dividedintothreesteps.Itshouldbementionedthat
thereisatleastamaximumvalueforangularvelocity
accordingtoitscurve.Ofcourse,thethreepha
sesdo
not absolutely exist simultaneously in reality. It is
possiblethattheruddermayreturntomidshipbefore
ship’sangularvelocitybecomesstable.Thecurvesin
figure 1 are just conceptual demonstrations and
qualitative study will be carried out in next
subsection.
3.2 Algorithmdesign
It can be seen from figure 1 tha
t course alteration
curveisamonotonicfunctionwithrespecttotime.So
theideaofsqueezeruleisusedinthissection.
Table1showsthepseudocodeforthecalculation
oftimeneededinatypicalcoursealteration.Suppose
the rudder angle is δ and the course a
lteration in a
turning point is Ψ, then the time needed for the
ruddertokeeponthisanglecanbecomputedinthe
followingshownprocedure.
Table1.Pseudocodeforthecalculationoftimeneededina
typicalcoursealteration
_______________________________________________
function: Time=CourseAlteration(Ψ,δ)
_______________________________________________
Initialization:Tmin,Tmax,Tthre
whileT
max‐Tmin>Tthre
T
temp=(Tmax+Tmin)/2
Findcoursealterationbykeepingrudder
angleδforT
temp:Ψtemp
ifΨ
temp>Ψ
T
max=Ttemp
else
T
min=Ttemp
endif
endwhile
return(T
max+Tmin)/2
_______________________________________________
Intheabovepseudocode,theparametersT
minand
T
maxaredeterminedintuitivelytomakesurethatTime
is within them. T
thre is used to define precision. The
smallertheparameteris,thehighertheprecisionwill
be.EitherT
minorTmaxwillbeupdatedineachiteration.
After determining the parameter Time, another
parameter,whichiscalledoperationdistance, should
alsobedetermined.Theoperationdistanceisdefined
as the distance between turning point and the point
thattherudderoperationbegins.Asshowninfigure
2, if the operation distance is too large, ship’s route
willnotreachit
splannedroutewhenshipturnedto
the target course. If operation distance is too small,
ship’sroutewillsurpasstheplannedroute.
In order to determine the operation distance,
another pseudo code is also designed based on
squeeze rule, which is shown in ta
ble 2. The
parameter δ means rudder angle and Trajectory
includes all parameters that can explain the planned
route.
Figure2. Illustration of operation distance when
turningtoplannedroute
The procedure is quite similar with the pseudo
code in Table 1. It should be mentioned that the
parameterD
temp1willbepositiveifship’sactualroute
surpassthe plannedtrajectory. Or elseit isnegative.
EitherD
minorDmaxwillbeupdatedineachiteration.
Table2.Pseudocodeforthecalculationofdistanceneeded
inatypicalcoursealteration
_______________________________________________
function:D=Distance(δ,Trajectory)
_______________________________________________
Initialization:Dmin,Dmax,Dhre
whileD
max‐Dmin>Dthre
D
temp=(Dmax+Dmin)/2
Findthedistancebetweenship’spositionand
Trajectorywhencoursealterationisoverunderthe
circumstancethatrudderangleisδandoperation
distanceisD
temp:Dtemp1
ifD
temp1>0
D
max=Dtemp
else
D
min=Dtemp
endif
endwhile
return(D
max+Dmin)/2
_______________________________________________
4 CASESTUDIES
In this section, case studies by using the above
algorithmsarecarriedout.Withoutlossofgenerality,
theparametersinYuanetal(2011)areused.Intheir
studies, the time constant T is set to be 63.69, the
ruddergainKissettobe0.114andship’svelocityis
set to be 7.2m
/s. The model proposed in this paper
canbeextendedtoothertypesofvesselsbychanging
relevantparameters.AccordingtoCOLREGs,thegive
way ship should make early and substantial actions
so that other ship could notice. On the other hand,
althoughCOLREGsdonothavesimilarrequirements,
ship should also try to av
oid too large course
alteration because it needs to return to target course
after anti‐collision operation is over. When a large
coursealterationisinevitableincertainsituations,the
ship can consider avoiding collision by speed
alterationinstead.Ingeneral,thecoursea
lterationfor
a ship during anti‐collision operation is between 30°
and60°atmosttimes.
At first, the duration of rudder needed for
differentcoursealterationisobtained,whichisshown
in figure 3. The rudder angle varies from 2° to 20°
withanintervalof2°.Thema
ximumrudderangleis
usually 35° for many ships. However, full rudder