Sei sulla pagina 1di 15

Modeling, Identification and Control, Vol. 30, No. 1, 2009, pp.

1–15, ISSN 1890–1328

A Matlab Toolbox for Parametric Identification of


Radiation-Force Models of Ships and Offshore
Structures
Tristan Perez 1 , 3 Thor I. Fossen 2 , 3

1
Centre for Complex Dynamic Systems and Control (CDSC), The University of Newcastle, Callaghan, NSW-2308,
AUSTRALIA. E-mail: Tristan.Perez@newcastle.edu.au
2
Department of Engineering Cybernetics, Norwegian University of Science and Technology, N-7491 Trondheim,
Norway. E-mail: Fossen@ieee.org
3
Centre for Ships and Ocean Structures (CeSOS) Norwegian University of Science and Technology, N-7491 Trond-
heim, Norway.

Abstract

This article describes a Matlab toolbox for parametric identification of fluid-memory models associated
with the radiation forces ships and offshore structures. Radiation forces are a key component of force-
to-motion models used in simulators, motion control designs, and also for initial performance evaluation
of wave-energy converters. The software described provides tools for preparing non-parmatric data and
for identification with automatic model-order detection. The identification problem is considered in the
frequency domain.

Keywords: Frequency-Domain Identification, Models of Ships and Offshore Structures, Software.

1 Introduction methods. In particular, the latter reference discusses


the advantages of using frequency-domain methods for
One approach to develop linear time-domain models of the identification of fluid-memory models. The data
marine structures consists of using computed hydro- provided by hydrodynamic codes is in the frequency
dynamic data for system identification and obtain a domain; therefore, frequency-domain identification is
parametric approximation of the Cummins equation. the natural approach to follow. This identification ap-
If either physical-model or full-scale experiments are proach avoids transforming the data to the time do-
available, then the mathematical model based on the main, which, if not handled properly, can result in er-
Cummins equation can be corrected for viscous effects. rors due to the finite amount of data. More impor-
These corrections can also be obtained from computa- tantly, frequency-domain identification allows enforc-
tional fluid dynamics. This procedure is illustrated in ing model structure and parameter constraints. There-
Figure 1. fore, the class of models over which the search is done
is reduced, and the models obtained satisfy properties
A great deal of work has been reported in the liter- that are in agreement with the hydrodynamic mod-
ature on the use of different identification methods to elling hypothesis. See Perez and Fossen (2008b) for
approximate the fluid-memory models in the Cummins further details.
equation. Taghipour et al. (2008) and Perez and Fossen
(2008b) provide an up-to-date review of the different In this article, we present a set of Matlab functions

doi:10.4173/mic.2009.1.1
c 2009 Norwegian Society of Automatic Control
Modeling, Identification and Control

Non-parametric Parametric fluid


models: frequency memory model
response functions

Hydrodynamic

Iden/fica/on
 Cummins
Equa/on

Code


Model
with
Viscous

Experiments
&
CFD

Correc/on


Hull geometry
and loading
condition

Figure 1: Hydrodynamic modelling procedure.

to perform parametric identification of fluid-memory τ , [X, Y, Z, K, M, N ]T gives the respective forces in a


models associated with the radiation forces of ships body-fixed frame (X-surge, Y -sway, and Z-heave) and
and offshore structures. the moments about the axis of the body-fixed frame
We address two cases. In the first case, the (K-roll, M -pitch, and N -yaw). This generalised-force
infinite-frequency added mass is considered available, vector can be separated into four components:
and the fluid-memory model is estimated based on
the frequency-dependent added mass (including the τ = τ rad + τ visc + τ res + τ exc . (2)
infinite-frequency value) and the frequency-dependent The first component corresponds to the radiation forces
potential damping. In the second case, the infinite- arising from the change in momentum of the fluid due
frequency added mass is considered unavailable, and to the motion of the structure and the waves gener-
it is estimated together with the fluid-memory model. ated as the result of this motion. The second compo-
That is, the complete radiation-force model is esti- nent corresponds to forces due to fluid-viscous effects
mated. For the second case, we follow the approach (skin friction and vortex shedding). The third compo-
proposed by Perez and Fossen (2008a). The second nent corresponds to restoring forces due to gravity and
case is relevant for data of hydrodynamic codes based buoyancy. The fourth component represents the exci-
on 2D-potential theory since these codes do not nor- tation pressure forces due to the incoming waves and
mally solve the boundary-value problem associated other forces used to control the motion of the vessel.
with the infinite frequency. Cummins (1962) used potential theory (ideal fluid,
no viscous effects) to study the radiation hydrodynamic
2 Dynamics of Ships and Offshore problem in the time-domain, and found the following
representation:
Strucutres Z t
τ rad = −A∞ ξ̈ − K(t − t0 )ξ̇(t0 ) dt0 . (3)
The linearised equation of motion of marine structures 0
can be formulated as
The first term in (3) represents pressure forces due the
MRB ξ̈ = τ . (1) accelerations of the structure, and A∞ is a constant
positive-definite matrix called infinite-frequency added
The matrix MRB is the rigid-body generalised mass. The second term represents fluid-memory effects
mass. The generalised-displacement vector ξ , that capture the energy transfer from the motion of the
[x, y, z, φ, θ, ψ]T gives the position of the vessel with re- structure to the radiated waves. The convolution term
spect to an equilibrium frame (x-surge, y-sway, and z- is known as a fluid-memory model. The kernel of the
heave) and the orientation in terms of Euler angles (φ- convolution term, K(t), is the matrix of retardation or
roll, θ-pitch, and ψ-yaw). The generalised force vector memory functions (impulse responses).

2
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

By combining terms and adding the linearised restor- for a finite set of frequencies of interest—see, for exam-
ing forces τ res = −Gξ, the Cummins Equation (Cum- ple, Beck and Reed (2001) and Bertram (2004). Hy-
mins, 1962) is obtained: drodynamic codes based on 3D-potential theory usu-
ally solve, the boundary-value problem associated with
Z t
infinite-frequency that gives A∞ , whereas codes based
(MRB +A∞ )ξ̈+ K(t−t0 )ξ̇(t0 ) dt0 +Gξ = τ exc , (4)
0 on 2D-potential theory do not normally solve this prob-
lem.
Equation (4) describes the motion of ships and offshore
structures in an ideal fluid provided the linearity as-
sumption is satisfied. This model can then be embel-
lished with non-linear components taking into account,
4 Identification of Radiation-force
for example, viscous effects and mooring lines–see Fig- Models
ure 1.
To implement simulations models based on the Cum-
mins equation (4), non-parametric fluid-memory mod-
3 Frequency-domain Models els can be used. This method requires a discrete-time
approximation of the convolution integral and saving
When the radiation forces (3) are considered in the fre- enough past data to evaluate the convolution at each
quency domain, they can be expressed as follows (New- step of the simulation. This approach can be time con-
man, 1977; Faltinsen, 1990): suming and may require significant amounts of com-
puter memory as illustrated in Taghipour et al. (2008).
τ rad (jω) = −A(ω)ξ̈(jω) − B(ω)ξ̇(jω). (5) In addition, the non-parametric models are not amica-
ble the analysis and design of vessel motion control
The parameters A(ω) and B(ω) are the frequency- systems.
dependent added mass and potential damping respec- One way to overcome these difficulties consists of
tively. This representation leads to the following approximating the fluid-memory models by a linear-
frequency-domain relationship between the excitation time-invariant parametric model:
forces and the displacements:
Z t
[−ω 2 [M+A(ω)]+jωB(ω)+G]ξ(jω) = τ exc (jω). (6) ẋ = Â x + B̂ ξ̇
µ= K(t − t0 )ξ̇(t0 ) dt0 ≈
0 µ̂ = Ĉ x,
Ogilvie (1964) showed the relationship between the pa- (10)
rameters of the time-domain model (4) and frequency- where the number of components of the state vector x
domain model (6) using the Fourier Transform of (4): corresponds to the order of the approximating system
and the matrices Â, B̂, and Ĉ are constants. Note that
1 ∞ the above state-space approximation does not have a
Z
A(ω) = A∞ − K(t) sin(ωt) dt, (7) feed-through term D̂ ξ̇ in the output equation. The
ω 0
Z ∞ reason for this is that the mapping ξ̇ 7→ µ has relative
B(ω) = K(t) cos(ωt) dt. (8) degree 1—see Perez and Fossen (2008b) and references
0
therein.
From expression (7) and the application of the The approximation problem (10) can be re-casted in
Riemann-Lebesgue lemma, it follows that A∞ = the frequency domain:
limω→∞ A(ω), and hence the name infinite-frequency
added mass. K(jω) ≈ K̂(jω) = Ĉ(jωI − Â)−1 B̂, (11)
From the Fourier transform, it also follows the
frequency-domain representation of the retardation where K̂(s) is matrix of rational transfer functions with
functions: entries

K(jω) = B(ω) + jω[A(ω) − A∞ ]. (9) Pik (s) pr sr + pr−1 sr−1 + ... + p0


K̂ik (s) = = n . (12)
Qik (s) s + qn−1 sn−1 + ... + q0
Expression (9) is key to generate data used in the iden-
tification problems that seek parametric approxima- One can estimate the transfer functions K̂ik (s) and
tions to the fluid memory term in (4). then obtain the state-space model (10) via canonical
Hydrodynamic codes based on potential theory, are realisations (Taghipour et al., 2008). The identification
nowadays readily available to compute B(ω) and A(ω) problem then focus on the transfer functions K̂ik (s).

3
Modeling, Identification and Control

4.1 Identification when A∞ is Available 4.2 Order Selection


This problem can be formulated in terms of Least- With respect to the order selection of the approxima-
Squares (LS) fitting: tion, it follows from the constraints (16)-(19) that the
X minimum order transfer function that can be consid-
θ ? = arg min wl ∗l l , (13) ered has the following form:
θ
l
min p1 s
K̂ik (s) = . (21)
l = Kik (jωl ) − K̂ik (jωl , θ) (14) s2 + q1 s + q0
where the notation ∗ indicates transpose complex con- Therefore, for automatic order determination, one can
jugate, and wl are weighting coefficients. The non- start with the lowest-order approximation (21) and in-
paramtetric model Kik (jωl ) is computed via (9) using crease the order to improve the fitting until a satisfac-
A∞,ik and Aik (ωl ) and Bik (ωl ) for a for a given finite tory approximation is obtained (Unneland and Perez,
set of frequencies ωl . 2007).
The structure of the estimate K̂ik is given by (12), As a metric for determining the quality of the fit,
and the vector of parameters θ can be taken as one can use the coefficient of determination for both
added mass and damping. This coefficient is defined
θ = [pr , ..., p0 , qn−1 , ..., q0 ]T . (15)
as
From hydrodynamic properties of the model under
(Xk − X̂k )2
P
2
study, it follows that the problem (13)-(14) must be R = 1 = Pk 2
, 0 ≤ R2 ≤ 1 (22)
considered subject to the following constraints (Perez k (Xk − X)
and Fossen, 2008b):
where Xk are the data points and X̂k are the estimates.
K̂ik (s) has a zero at s = 0, (16) The coefficient R2 is interpreted as the fraction of the
data that is explained by the regression model.
K̂ik (s) has relative degree 1, (17)
The steps for automatic-order detection can then be
K̂ik (s) is stable, (18) as follows:
K̂ik (s) is positive real for i = k. (19) (i) Obtain the parametric model (12).
The optimisation problem (13)-(14) is non-linear. Two (ii) Reconstruct the added mass and damping from
methods can be followed to solve this problem: the real and imaginary parts of the estimate (12),
1. Linearise (13)-(14), and solve a sequence of linear that is,
LS problems using the solution of the previous it-
Âik (ω) = Im{ω −1 K̂ik (jω)} + A∞,ik (23)
eration to compute the weighting coefficients wl .
B̂ik (ω) = Re{K̂ik (jω)}, (24)
2. Use the solution of the linear problem to initialise
a Gauss-Newton search algorithm.
(iii) Compute the corresponding coefficients of deter-
The linearisation of (13)-(14) is due to (Levy, 1959) mination for added mass and damping. If either
and the iterative solution via a sequence of linear prob- of these coefficients is below 0.99, then the model
lems is due to (Sanathanan and Koerner, 1963): order is increased, and the procedure is repeated
from step (i). Otherwise, stop.
θ̂ p = arg min
θ
X 2 4.3 Stability
sl,p |Qik (jωl , θ)Kik (jωl ) − Pik (jωl , θ)| , (20)
l The resulting model from the LS problem (13)-(14)
may not necessarily be stable because stability is not
where
1 enforced as a constraint in the optimisation. This can
sl,p = . be addressed in a sub-optimal manner. Should the ob-
|Qik (jωl , θ̂ p−1 )|2
tained model be unstable, one could obtain a stable
Note that (20) results in a Linear LS minimiza- one by reflecting the unstable poles about the imagi-
tion. After a few iterations (usually p=10 to 20), nary axis and re-computing the denominator polyno-
Qik (jωl , θ p ) ≈ Qik (jωl , θ p−1 ); and therefore, the prob- mial. That is,
lem (13)-(14) is approximately recovered. This allows
solving the nonlinear LS problem via iterations on lin-
ear LS problems. (i) Compute the roots of λ1 , . . . , λn of Qik (s, θ̂ ik ).

4
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

(ii) If Re{λi } > 0, then set Re{λi } = - Re{λi }, On the other hand, taking the Laplace transform of (3),
and assuming a rational approximation for the convo-
(iii) Reconstruct the polynomial: lution term we obtain
Qik (s) = (s − λ1 )(s − λ2 ) · · · (s − λn ). h
Pik (s) ˙
i
τ̂rad,i (s) = − A∞,ik s + Q ik (s)
ξk (s), (28)
0
h i
P (s) ¨
= − A∞,ik + Qik
ik (s)
ξk (s) (29)

4.4 Passivity The transfer function in brackets in (29) can be further


expressed as
The mapping ξ̇ into a force introduced by the fluid-
0
memory convolution is passive–see Perez and Fos- Rik (s) A∞,ik Qik (s) + Pik (s)
Âik (s) = = . (30)
sen (2008b) and references therein. The frequency- Sik (s) Qik (s)
response-LS-fitting problem (13)-(14) does not enforce
passivity. If passivity is required (i.e., Bik (ω) > 0), Thus, we can use LS optimisation to estimate the
a simple way to ensure it is to try different order ap- parameters of the approximation (30) given the
proximations and choose the one that is passive. The frequency-respose data (27):
approximation is passive if X
θ ? = arg min wl (∗l l ), (31)
  θ
Pik (jωl , θ) l
Re > 0. (25)
Qik (jωl , θ) with
Rik (jωl , θ)
When this is checked, one should evaluate the transfer l = Aik (jωl ) − , (32)
Qik (jωl , θ)
function at low and high frequencies—below and above
the frequencies used for the parameter estimation. and the constraint that n = deg Rik (s) = deg Qik (s).
As already mentioned in the previous section, the min-
Often, low-order approximations models given by imum order approximation is n = 2. Therefore, we can
the solution of (13)-(14) are passive—the term ‘low’ start with this order and increase it to improve the fit if
depends on the data of the particular vessel under necessary. Hence, we can use the same algorithms that
consideration. Therefore, one can reduce the order we use for the case when the infinite-frequency added
and trade-off fitting accuracy for passivity. mass is available, subject to different order constraints
and interpretation of the estimates obtained.
If the polynomial Qik (s) is normalised to be monic,
4.5 Identification when A∞ is Unavailable then
Rik (s, θ ? )
Â∞,ik = lim ? . (33)
If the infinite-frequency added mass matrix A∞ is un- ω→∞ Sik (s, θ )
available, one cannot form K(jω) as indicated in (9). That is, the infinite-frequency added mass A
∞,ik is the
In this case, the method proposed by Perez and Fos- coefficient of the highest order term of R (s, θ ? ). Also,
ik
sen (2008a) can be followed and estimate jointly the after obtaining R (s, θ ? ) and S (s, θ ? ), we can re-
ik ik
infinite-frequency added mass and the fluid-memory cover the polynomials for the fluid-memory model:
transfer function. The method exploits the knowl-
edge and procedures used in the identification of K̂ik (s) Qik (s, θ ? ) = Sik (s, θ ? ),
when the infinite-frequency added mass is considered ? ? ?
(34)
available. Therefore, it provides an extension of those P ik (s, θ ) = R ik (s, θ ) − Â ∞,ik Sik (s, θ ).
results putting the two identification problems into the
same framework. 5 Toolbox Description
On the one hand, the radiation forces in the
frequency-domain given in (5) can be expressed The toolbox presented in this paper is an independent
component of the Marine Systems Simulator (MSS,
2009). Figure 2 shows a diagram of the different soft-
 
Bik (ω)
τrad,i (jω) = − + Aik (ω) ξ¨k (s), (26) ware components of the toolbox and their dependabil-

ity. The main function of the toolbox is FDIRadMod.m,
where the expression in brackets gives the complex co- which processes the input data and returns the esti-
efficient mate of the fluid-memory transfer function and also
Bik (ω) the infinite-frequency added mass if required. This
Aik (jω) , + Aik (ω). (27) function calls other functions to prepare the data for

5
Modeling, Identification and Control

identification and to compute the estimates. The tool- The option value 2 gives a good trade-off
box also includes two demos which show how to use between computational speed and accuracy.
the main function. The first demo considers the es- • FDIopt.Iterations – Maximum number of
timation with infinite-frequency added mass available iterations to be used in the iterative linear
(WA), and the second demo considers the estimation LS solution.
when infinite-frequency added mass is not available • FDIopt.PlotFlag – Logic flag. If set to 1, it
(NA). plots the identification results correspond-
The functionality of the main components is de- ing to each iteration of auto order detection
scribed in the following. identification process. A typical value is 0.
• FDIopt.LogLin – Logic flag. If set to 1, all
5.1 FDIRadMod.m the data is plotted in logarithmic scale and
the magnitude of the transfer functions in
Purpose: This function processes the input hydrody-
dB. If set to 0, all the data is plotted in
namic data and estimates the order and the pa-
linear scale.
rameters of a transfer function approximation of
• FDIopt.wsFactor – This is a sampling factor
the fluid-memory model. The function processes
for plotting the data of the parametric ap-
only single-input-single-output models. Hence,
proximation. The sample frequency used to
for a multiple degree of freedom vessel or marine
plot the data is this factor times the mini-
structure, this function should be used for each
mum difference of frequencies in the input
relevant coupling i, k.
vector W. A typical value is 0.1.
Syntax: • FDIopt.wminFactor – The minimum fre-
[KrNum,KrDen,Ainf hat]= quency to be used in the plots is
FDIRadMod(W,A,Ainf,B,FDIopt,Dof) FDIopt.wminFactor*Wmin, where Wmin is the
minimum frequency of the dataset used for
Input Data: identification. Typical value 0.1.
• W – Vector of frequencies. • FDIopt.wmaxFactor – The maximum fre-
• A – Vector of frequency-dependent added quency to be used in the plots is
mass. FDIopt.wmaxFactor*Wmax, where Wmax is the
• Ainf – Infinite-frequency added mass. maximum frequency of the dataset used for
identification. Typical value 2 to 5.
• B – Vector of frequency-dependent potential
damping. Output Data:
• FDIopt – Structure with computation op-
tions. • KrNum,KrDen – Vectors with the numera-
• Dof = [i,k] – Coupling of degrees of free- tor and demoninator coefficients of the es-
dom (this is used to label the plots). timated single-input-single-output transfer
The structure FDIopt has the following fields: function.
• Ainf hat – Estimate of the infinite-frequency
• FDIopt.OrdMax – Maximum order to be used
added mass coeffieicient. If the op-
in automatic order detection. Typical value
tion FDIopt.AinfFlag is set to 1, then
20.
Ainf hat=Ainf, which is part of the input
• FDIopt.AinfFlag – Logic flag. If set to 1, the data. If the option FDIopt.AinfFlag is set
value Ainf is used in the calculations. If set to 0, the input value Ainf is ignored and es-
to 0, the infinite- frequency added mass is timated, so the user can enter any value in
estimated, and the value in the argument of the function argument.
the function is ignored.
• FDIopt.Method – This refers to the methods Description: The function FDIRadMod.m first calls
used to solve the parameter optimisation EditAB.m to prepare the data for identification.
problem. If set to 1, a linearised model is Then, depending on the option FDIopt.AinfFlag,
used and a linear LS problem is solved. If set the function calls the appropriate computation
to 2, an iterative linear LS problem is solved. routine—see Figure 2.
If set to 3, the linear LS solution is used The function FDIRadMod.m also makes an auto-
to initialise a nonlinear LS problem, which matic order estimate by increasing the order of
is solved using the Gauss-Newton method. the approximation and computing the coefficient

6
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

ω,A(ω),B(ω),A∞
 Krad(s),

FDIRadMod.m

FDIopt
 [A∞]


EditAB.m
 Ident_retarda>on_FD.m
 Ident_retarda>on_FDna.m


Demo_FDIRadMod_WA.m


Fit_siso_fresp.m

Demo_FDIRadMod_NA.m


Figure 2: Frequency-domain Identification of Radiation Models (FDIRadMod): Software organisation and de-
pendability.

of determination related to the fitting of both damping. The low-frequency data point should
added mass and damping. When both these coef- be selected first, then the high-frequency point,
ficients reach a value greater or equal to 0.99, the and finally the user should press the return key.
function stops increasing the order, and the re- The data is then re-plotted within the selected
constructued added mass and damping are plot- range.
ted together with the non-parametric data used After selecting the frequency range, the function
for identification. At this point, the function allows the elimination of data wild points. A mes-
prompts the user to either adjust the order of the sage on the workspace prompts the user to opt
approximation manually via a keyboard input or for wild point elimination. If required, this elim-
leave the model as it is and exit the function. ination is done by clicking with the mouse on all
The user can make as many changes in order as the points that are to be eliminated (either on
required, and every time there is a change in the the plot of the added mass or damping), and fi-
order, the model is re-estimted and the data re- nally the user should press the return key. The
plotted. function allows the user to re-start the process in
case a point is deleted accidentally.
5.2 EditAB.m
Purpose: This function allows the user to select the 5.3 Ident retardation FD.m
frequency range to be used for identification and
to eliminate data wild points1 . Purpose: This function estimates the parameters of
a specified order approximation for the fluid-
Description: This is a support function for memory transfer function given the frequency re-
FDIRadMod.m, so the user may not need to sponse K(jωl ).
call it directly. The function first plots the
added mass and potential damping as a function Description: This is a support function for
of the frequency, and then prompts the user to FDIRadMod.m, so the user may not need to
select the range of frequencies for identification. call it directly. This function performs the
This range selection is done by clicking with the estimation for the problem in which the infinite
mouse on the plot of either the added mass or frequency added mass is available to compute
1 Wild points in the data computed using hydrodynamic codes
K(jωl ). This problem is described in Sec-
are due to ill-conditioned numerical problems, which often
tion 4.1. The function performs data scaling
arise at high-frequencies if inappropriate panel sizes are used and enforces the model structure constraints
to discretise the hull–see Faltinsen (1990) for details. (16)–(19). A summary of the algorithm is given

7
Modeling, Identification and Control

in the Appendix. contains data corresponding to 6 degrees of freedom,


that is, i, k = 1,...,6. In this section, we illustrate the
5.4 Ident retardation FDna.m estimation results on the models corresponding to ver-
tical motion modes; that is, couplings 3-3, 3-5, 5-3, and
Purpose: This function performs the joint parameter 5-5.
estimation of the approximating fluid-memory
transfer function and the infinite-frequency
added mass coefficient. Figure 3 shows the raw added mass and damping for
coupling 5-3, which by symmetry of the hull it is the
Description: This is a support function for
same as the 3-5 coupling. These data are obtained from
FDIRadMod.m, so the user may not need to
a hydrodynamic code. Figure 4 shows the edited data
call it directly. The function uses as input the
after eliminating some wild points. Figure 5 shows the
frequency-dependant added mass and damping,
corresponding curve fitting results. This figure shows
and it requires a desired order. The associated
the fitting of the fluid-memory frequency response on
estimation problem is described in Section 4.5.
the left-hand side and the re-construction of added
The function performs data scaling and enforces
mass and damping based on the estimated model on
the model structure constraints (16)–(19).
the right-hand side. The order of the approximation
is 5, which is obtained automatically by the function.
5.5 Fit siso fresp.m Figures 6 and 7 show the corresponding results for the
Purpose: This is a general purpose function to esti- 3-3 and 5-5 couplings. For both these couplings the
mate a single-input-single-output transfer func- automatic order detection selected order 3, but then
tion of a specified order and relative degree given we manually increase the order to 4 to improve the fit.
a frequency response.
This function can be used not only to identify The second demo, Demo FDIRadMod NA.m (NA-No
fluid-memory transfer functions, but also force- infinite-frequency Added mass), also loads the data
to-motion transfer functions (Perez and Lande, structure vessel of the FPSO, and allows the user to
2006). That latter is a functionality that will be select the desired coupling for identification. In this
included in future versions of the toolbox. demo, however, the identification is done without us-
Description: This is a support func- ing the infinite-frequency added mass coefficient. Fig-
tion for Ident retardation FD.m and ure 8 shows the fitting results for the coupling 5-3.
Ident retardation FDna.m, so the user may The left-hand-side plots show the fitting of the com-
not need to call it directly. This function plex coefficient Ã(jω) given by (27), whereas the right-
implements 3 methods for parameter estimation, hand-side plots show the re-construction of added mass
namely, 1 - uses a linearised model and linear and damping based on the estimated model. Figure 9
LS optimisation. 2 - uses iterative linear LS shows the estimated fluid-memory frequency response
optimisation, 3- uses the linear LS optimisation function. These results are in agreement with those
solution to initialise a non-linear LS optimisa- shown in Figure 5; however, there are small differences
tion problem solved using the Gauss-Newton due to the fact that the two estimators use different
method. The function is built upon the function- information.
ality invfreqs.m of Matlab’s Signal Processing
Toolbox.
It is worthwhile highlighting that the removal of wild
points could be very important. For example, Figures
6 Demos 10 and 11 show the results of identification without
using added mass for the coupling 5-3 when the wild
The toolbox provides two demo files that make use of points in the added mass and damping have not been
the main function FDIRadMod.m–see Figure 2. These removed. In this case, the automatic order detection
demos are based on the data of a FPSO that belongs selected an approximation of order 10. This is because
to the Hydro add in of the Marine Systems Simulator the algorithm tries to fit lightly-damped complex poles
(MSS, 2009). to the wild points. The function gives the user the op-
The first demo, Demo FDIRadMod WA.m (WA-with tion to manually reduce the order. However, for some
infinite-frequency Added mass), loads the data struc- cases this may not solve the problem, and the identifi-
ture vessel, and allows the user to select the desired cation process should be started again and remove the
coupling (i, k) for identification. The structure vessel wild points.

8
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

7 Dependence on Other Matlab Acknowledgments


Toolboxes The work presented in this paper has been sponsored
by Australian Research Council, through the Centre
The toolbox presented in this paper is based on stan- for Complex Dynamic Systems and Control at the The
dard Matlab code, except for two specific functions University of Newcastle, Australia, and by the Norwe-
that belong to the Signal Processing Toolbox, namely, gian Research Council through the Centre for Ships
freqs.m and invfreqs.m. and Ocean Structures at NTNU, Norway.
The function freqs.m computes the frequency re-
sponse of a transfer function model for a specified set of
frequencies. The function invfreqs.m performs the pa- References
rameter estimation using either the linear LS method
or the Gauss-Newton method. In order to implement Beck, R. and Reed, A. Modern computational methods
the iterative linear LS method, this function is called for ships in a seaway. SNAME Transactions, 2001.
recursively by fit siso fresp.m. 109:1–51.
If the user does not have a licence for the Signal
Bertram, V. Practical Ship Hydrodynamics. Butter-
Processing Toolbox, the two functions used should be
worth Heinemann, 2004.
coded by the user. An alternative to the function
freqs.m is very simple to code. The algorithm given
Cummins, W. The impulse response function and ship
in the Appendix can be used as a guide to implement motion. Technical Report 1661, David Taylor Model
an alternative to invfreqs.m. Basin–DTNSRDC, 1962.

Faltinsen, O. Sea Loads on Ships and Offshore Struc-


tures. Cambridge University Press, 1990.
8 Software Repository
Levy, E. Complex curve fitting. IRE Trans. Autom.
The toolbox presented in this paper is an independent Control, 1959. AC-4:37–43.
component of the Marine Systems Simulator (MSS,
2009) maintained by the authors. This is a free tool- MSS. Marine Systems Simulator. Viewed 7 September
box released under a GNU licence. The software is 2009, http://www.marinecontrol.org, 2009.
available at www.marinecontrol.org
Newman, J. Marine Hydrodynamics. MIT Press, 1977.

Ogilvie, T. Recent progress towards the understanding


9 Conclusion and prediction of ship motions. In 6th Symposium
on Naval Hydrodynamics. 1964 .
This paper describes a toolbox for parametric iden-
tification of fluid-memory models associated with the Perez, T. and Fossen, T. Joint identification of
radiation forces of marine structures based on a infinite-frequency added mass and fluid-memory
frequency-domain method. The models identified find models of marine structures. Modeling Identifica-
application in the development of ship simulators, con- tion and Control, published by The Norwegian So-
trol design, and the evaluation of wave energy convert- ciety of Automatic Control., 2008a. 29(3):93–102,
ers. doi:10.4173/mic.2008.1.1.
The software described provides tools for prepar- Perez, T. and Fossen, T. I. Time-domain vs. frequency-
ing the non-paramatric data generated hydrodynamic domain identification of parametric radiation force
codes, automatic model order detection, and parame- models for marine structures at zero speed. Modeling
ter estimation. The toolbox contains a main function Identification and Control, published by The Norwe-
that performs all these tasks by calling other support gian Society of Automatic Control., 2008b. 29(1):1–
functions. The user may only need to call the main 19, doi:10.4173/mic.2008.3.2.
function.
The identification is done for single-input-single- Perez, T. and Lande, Ø. A frequency-domain approach
output models. This gives the user freedom to se- to modelling and identification of the force to motion
lect the couplings of interest each particular applica- vessel response. In Proc. of 7th IFAC Conference on
tion and to integrate the functionality of the toolbox Manoeuvring and Control of marine Craft, Lisbon,
into other data processing codes. Portugal. 2006 .

9
Modeling, Identification and Control

Sanathanan, C. and Koerner, J. Transfer function syn- 7. Estimate the added-mass and damping based on
thesis as a ratio of two complex polynomials. IEEE the identified parametric approximation via
Trans. of Autom. Control, 1963.
Âik (ω) = Im{ω −1 K̂ik (jω)} + A∞,ik (39)
Taghipour, R., Perez, T., and Moan, T. Hybrid
frequency–time domain models for dynamic response B̂ik (ω) = Re{K̂ik (jω)}, (40)
analysis of marine structures. Ocean Engineering,
and compare with the Aik (ω) and Bik (ω) given
2008. doi:10.1016/j.oceaneng.2007.11.002.
by the hydrodynamic code. If the fitting is not
Unneland, K. and Perez, T. MIMO and SISO identifi- satisfactory increase the order of the approxima-
cation of radiation force terms for models of marine tion and go back to step (iii).
structures in waves. In IFAC Conference on Con-
8. Check for passivity if required B̂ik (jω) > 0.
trol Applications in Marine Systems (CAMS). Bol,
Croatia, Sept. 2007 .

A Parameter Estimation Algorithm


This section presents the main steps of a parameter
estimation algorithm for the case where the infinite-
frequency added mass coefficients are used in the iden-
tification.
1. Set the appropriate range of frequencies where
the hydrodynamic data is considered accurate,
eliminate wild points, and compute the frequency
response for a set of frequencies ωl :

Kik (jωl ) = Bik (ωl ) − jω(Aik (ωl ) − A∞,ik ). (35)

2. Scale the data:


0 1
Kik (jωl ) = α Kik (jωl ), α, .
max |Kik (jωl )|
(36)
3. Select the order of the approximation
n=deg(Qik (jω, θ ik )). The minimum order
approximation is n=2, which can be the starting
point for automatic-order selection.
4. Estimate the parameters
X K 0 (jωl ) 0
2
Pik (jωl , θ)
θ ?ik = arg min ik
(jωl ) − ,
θ Qik (jωl , θ)
l
(37)
0
with deg(Pik (jω, θ ik ))=n − 2. This problem can
be linearised and solved iteratively as in (20).
5. Check stability by computing the roots of
Qik (jω, θ ?ik ) and change the real part of those
roots with positive real part.
6. Construct the desired transfer function by scaling
and incorporate the s factor in the numerator:
0
1 s Pik (s, θ ?ik )
K̂ik (s) = . (38)
α Qik (s, θ ?ik )

10
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

8
x 10
2

A(w) 1

−1
0 0.5 1 1.5 2 2.5
Frequency [rad/s]
7
x 10
10

5
B(w)

−5
0 0.5 1 1.5 2 2.5
Frequency [rad/s]

Figure 3: Raw added mass and damping data of a FPSO vessel computed by a hydrodynamic code. Coupling
5-3 (pitch-heave).

8
x 10
2

1
A(w)

−1
0 0.5 1 1.5 2 2.5
Frequency [rad/s]
7
x 10
10
B(w)

0
0 0.5 1 1.5 2 2.5
Frequency [rad/s]

Figure 4: Added mass and damping of a FPSO vessel after eliminating wildpoints. Coupling 5-3 (pitch-heave).

11
Modeling, Identification and Control

Convolution Model DoF 53 8


x 10 Added Mass DoF 53
160 2
155 1.5
150

Added Mass
1 A

|K(jw)|
145
0.5 Aest FD indet, order 5
140 Ainf
0
135 K(jw)
K (jw) order 5 −0.5
130 hat

125 −2 −1 0 1
−1 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

x 10 Potential Damping DoF 53


7
100 10

8
Phase K(jw) [deg]

50

Damping
6 B
0
Best FD ident, order 5
4
−50
2

−100 −2 −1 0 1
0 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

Figure 5: Identification results for the coupling 5-3 (pitch-heave) using information of the infinite-frequency
added mass. The left-hand-side plots show the fluid-memory frequency response data and the response
of the identified model. The right-hand-side plots show the added mass and potential damping and
their re-construction from the estimated model.

Convolution Model DoF 33 8


x 10 Added Mass DoF 33
155 3.5
150
3
145
Added Mass

2.5 A
|K(jw)|

140
Aest FD indet, order 4
135 2 Ainf
130
K(jw) 1.5
125 Khat(jw) order 4
120 −2 −1 0 1
1 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

x 10 Potential Damping DoF 33


7
100 5

4
Phase K(jw) [deg]

50 B
3 Best FD ident, order 4
Damping

0 2

1
−50
0

−100 −2 −1 0 1
−1 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

Figure 6: Identification results for the coupling 3-3 (heave-heave) using information of the infinite-frequency
added mass. The left-hand-side plots show the fluid-memory frequency response data and the response
of the identified model. The right-hand-side plots show the added mass and potential damping and
their re-construction based the estimated model.

12
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

Convolution Model DoF 55 x 10


11 Added Mass DoF 55
220 5.5

210 5

Added Mass
A
200 4.5

|K(jw)|
Aest FD indet, order 4
Ainf
190 4
K(jw)
180 K (jw) order 4 3.5
hat

170 −2 −1 0 1
3 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

x 10 Potential Damping DoF 55


10
100 10

8
Phase K(jw) [deg]

50
6 B

Damping
0 4 Best FD ident, order 4

2
−50
0

−100 −2 −1 0 1
−2 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency [rad/s] Frequency [rad/s]

Figure 7: Identification results for the coupling 5-5 (pitch-pitch) using information of the infinite-frequency
added mass. The left-hand-side plots show the fluid-memory frequency response data and the response
of the identified model. The right-hand-side plots show the added mass and potential damping and
their re-construction based on the estimated model.

x 10
8 DoF 53 8
x 10 DoF 53
2.5 2
A
2 1.5 Aest
Added Mass

1
1.5
|Ac(jw)|

0.5
1
0
0.5 Ac(jw)
Achat(jw) order 5 −0.5

0 −2 0
−1 −2 0
10 10 10 10
Freq. [rad/s] Frequency [rad/s]
7
x 10
0 10
B
8
Phase Ac(jw) [deg]

−50 Best
Damping

6
−100
4
−150
2

−200 −2 0
0 −2 0
10 10 10 10
Frequency [rad/s] Frequency [rad/s]

Figure 8: Identification results for the coupling 5-3 (pitch-heave) without using information of the infinite-
frequency added mass. The left-hand-side plots show the complex coefficient Ã(jω) data and the
response of the identified model. The right-hand-side plots show the added mass and potential damp-
ing and their re-construction based on the estimated model.

13
Modeling, Identification and Control

Fluid−Memory Model Frequency Response


170
K hat(jw) order 5
160

150

|K(jw)| 140

130

120

110 −2 −1 0 1
10 10 10 10
Frequency [rad/s]

100
Phase K(jw) [deg]

50

−50

−100 −2 −1 0 1
10 10 10 10
Frequency [rad/s]

Figure 9: Frequency response of the identified fluid-memory model for the coupling 5-3 (pitch-heave) without
using information of the infinite-frequency added mass.

8
x 10 DoF 53 8
x 10 DoF 53
3.5 2
3 Ac(jw) 1.5
Achat(jw) order 10
2.5 1
Added Mass

A
|Ac(jw)|

2 0.5 Aest
1.5 0

1 −0.5

0.5 −1
0 −2 0
−1.5 −2 0
10 10 10 10
Freq. [rad/s] Frequency [rad/s]
8
x 10
200 5

4
B
Phase Ac(jw) [deg]

100
3 Best
Damping

0 2

1
−100
0

−200 −2 0
−1 −2 0
10 10 10 10
Frequency [rad/s] Frequency [rad/s]

Figure 10: Identification results for the coupling 5-3 (pitch-heave) without using information of the infinite-
frequency added mass and without eliminating wild points. The left-hand-side plots show the complex
coefficient Ã(jω) data and the response of the identified model. The right-hand-side plots show the
added mass and potential damping and their re-construction based on the estimated model.

14
Perez and Fossen, “A Matlab Toolbox for Identification of Radiation Force Models”

Fluid−Memory Model Frequency Response


180

160
|K(jw)|

140

120 K hat(jw) order 10

100 −2 −1 0 1
10 10 10 10
Frequency [rad/s]
100
Phase K(jw) [deg]

50

−50

−100 −2 −1 0 1
10 10 10 10
Frequency [rad/s]

Figure 11: Frequency response of the identified fluid-memory model for the coupling 5-3 (pitch-heave) without
using information of the infinite-frequency added mass and without eliminating wild points.

15

Potrebbero piacerti anche