• No results found

Time domain modeling

N/A
N/A
Protected

Academic year: 2021

Share "Time domain modeling"

Copied!
32
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Equation of motion of a WEC

• Frequency domain:

– Ok if all effects/forces are linear

• Time domain:

– If non linear effects/forces are involved (and significant)

– Examples: PTO, control, drag effects, moorings, hydrostatic

( )

(

)

( )

ex

( ) (

H PTO

) ( )

(

( )

PTO

)

( )

others ω ω ω ω ω ω + = − + − + + M A X&&% F% K K X% B B X&%

(

)

( )

0t

( ) ( )

ex

t

H rad

t

d

PTO

others

τ

τ τ

+

=

+

+

M

µ

X

&&

F

K X

K

X

&

F

Must be linear

( )

= ∞ 0

(

β

τ η

) (

β τ τ

)

(3)

Outline:

• Integration in time of the equation of motion

• State space approximation of the memory term in the radiation force

(4)

Time integration of the equation

of motion

(5)

Equation of motion in time domain

• It is a second order ODE (Ordinary Differential Equation):

• But available time integration schemes are for first order ODE…

How to deal with that?

(

M

+

µ

)

X

&&

=

F

ex

0t

K t

(

τ

)

X

&

( )

τ τ

d

K X

H

+

F

drag

+

F

PTO

+

F

others

(

t

X

X

)

g

X

&

&

=

,

,

&

( )

t

S

f

S

&

=

,

Fluid/structure interactions

PTO force

Other forces (moorings, wind, Coriolis forces…)

Can depend on X (non linear mechanics)

(6)

From second order to first order

• Let define the state vector

• The equation of motion can be rewritten as an ODE of first order

( )

( ) (

)

( )

                    + + + − − + + = =

− ∞ others PTO drag H t ex F F F X K d X t K F M X S t f S t f S 0 1 ( ) , ,

τ

τ

τ

µ

& & &





=

X

X

S

&

(7)

Discretisation of continuous problem

• Time discretisation is necessary for solving the problem numerically

• Let

t be a small time step

• Discretisation of time:

• Discretisation of the state vector:

• Discretisation of the memory term by the trapezoidal rule (second order accuracy)

t

n

t

n

=

( )

n n

t

S

S

=

( )

(

0 0

)

1

( )

2 0 1

1

(

)

2

n t n n n j j j

K t

τ

X

τ τ

d

K X

K X

t

K

X

t

O

t

− − =

=

+

∆ +

∆ +

&

&

&

&

If K and X are sampled at the same times

(8)

Discrete equation of motion

(

)

(

)

(

)

(

0 0

)

1 1 1 , 1 , 2 n n n n n n n n n j j n n ex j n n n n

H drag PTO others

S f t S X F K X K X t K X t f t S M K X F F F

µ

− − − = ∞ =        + + ∆ +  =   +      + + +     

& &
(9)

The simplest time integration scheme

• Numerical time derivation

• From which:

( )

(

t

S

)

t

O

( )

t

f

S

S

t

O

t

S

S

S

n n n n n n n

+

+

=

+

+

=

+ +

,

1 1

&

( )

t

O

t

S

S

S

n n n

+

=

+1

&

It is called ‘Euler explicit scheme’ Advantage: Simple

Drawbacks: Poor accuracy (first order), unstable (divergence)

(10)

Second order time integration scheme

• Two steps scheme:

– Step 1: calculate the velocity k1at tn

– Step 2: make a prediction of the state at tn+1 and calculate the

velocity k2 at tn+1

– Advance in time using:

• Second order scheme, same as for discretisation of convolution product

(

k

k

)

t

S

S

n+1

=

n

+

1

+

2

2

1

(

n n

)

S

t

f

k

1

=

,

(

t

S

k

t

)

f

k

2

=

n+1

,

n

+

1

(11)

Higher orders scheme

• There are many higher order schemes

– Runge Kutta 4 – Adams Moutons – …

• MATLAB has validated functions for time integration (ode45, ode23, …)

(12)

Summary and recommendations

• Discrete equation of motion:

• Always use a time integration scheme of order at least 2. • Always check the convergence (are the results the same

if you refine the time step?)

(

)

(

)

(

)

(

)

1 0 0 1 1 , 1 , 2 n n n n n n n n n j j n n ex j n n n n

H drag PTO others

S f t S X F K X K X t K X t f t S M K X F F F

µ

− − − = ∞ =        + + ∆ +  =   +      + + +     

& &
(13)

May be used in exercise 4 : FD2TD.m

PURPOSE:

• Calculate radiation coefficients in time domain using frequency domain coefficients by using Ogilvie’s formulas:

INPUTS

w frequency vector

A added mass coefficients

B radiation damping coefficients

T time vector OUTPUTSK retardation functionMu added mass Cf help FD2TD [ ] ( ) [ ]( ) ( ) [ ]( ) ( ) ( ) 0 0 1 sin 2 cos rad rad A K d K t B d µ ω τ ωτ τ ω ω ωτ ω π ∞ ∞ ∞ = + = 

(14)

For exercise 4 time domain modelling

• Make your own RK2 solver or use MATLAB ode45 • Use of ode45:

1. Create a function f.m

function dS=f(t,S,parameters)

2. Time integration using ode45

[T,S]= ode45(@(t,S) f(t,S,parameters),[ti tf], [IC], options)

Discrete time

Discrete

states parameters end time ofStart and simulation

Initial conditions

(15)

State space approximation of the

memory term of the radiation force

(16)

Direct calculation of the memory term

• Drawbacks:

– Can be CPU time consuming

– Discretisation time of K and t can be different. K needs to be interpolated then not very convenient

Solution: To replace the convolution product by a

function of additional state variables given by additional state equations state space approximation

( )

(

0 0

)

1

( )

2 0 1

1

(

)

2

n t n n n j j j

K t

τ

X

τ τ

d

K X

K X

t

K

X

t

O

t

− − =

=

+

∆ +

∆ +

&

&

&

&

(

) ( )

( )

0

t

K t

τ

X

τ τ

d

=

g I

(17)

Prony’s method

• Approximation using Prony’s method :

( )

=

N i i i

t

t

K

1

)

exp(

β

α

Complex constants calculated by Prony’s method
(18)

Prony’s method

( )

=

N i i i

t

t

K

1

)

exp(

β

α

time (s) F o rc e (N /m .s ) 0 2 4 6 8 -20000 -10000 0 10000 20000 30000 K Prony' s approximation
(19)

Prony’s method

• Using :

• Let:

• One can show:

( )

=

N i i i

t

t

K

1

)

exp(

β

α

(

) ( )

0 1 N t i i i i i i

K t

X

d

I

I

I

X

τ

τ τ

β

α

=

=

=

+

&

&

&

( )

0t

exp(

(

) ( )

)

i i i

I t

=

α

β

t

τ

X

&

τ τ

d

(20)

Prony’s method

• Let define the state vector

• The equation of motion can be rewritten in the form an ODE of first order

( )

( ) (

)

1 1 , , N

ex i H drag PTO others

i t X t M F I K X F F F I I X

µ

β

α

− ∞ = =         = + − − + + +      = +   

Y F I F I & & & & i

X

X

I

=

Y

&

(21)

Calculation of coefficients with Prony.m

PURPOSE:

• Identification of function K using Prony’s method

INPUTS

T time vector

K function to be identified OUTPUTS

• Arrays of alpha and beta coefficients

(22)

Frequency Domain Identification (FDI)

• State space approximation directly from frequency domain coefficients(FDI, Perez & Fossen)

• Approximation using a rational fraction:

( )

0t

(

) ( )

rad

F

t

= −

µ

&&

z

K t

τ

z

&

τ τ

d

( )

( )

(

( )

)

K j

ω

=

B

ω

+

j

ω

A

ω µ

Fourier transform

( )

P s

( )

( )

K s

Q s

www.marinecontrol.org and

papers by Perez & Fossen for more details

(23)

Frequency Domain Identification (FDI)

• Using:

• One can show:

( )

( )

( )

1 1 0 1 1 0

...

...

r r r r n n n

P s

p s

p s

p

K s

Q s

s

q

s

q

− − − −

+

+ +

=

+

+ +

(

) ( )

[

]

( )

( )

( )

{

( )

1 1 0 0 1 2 0

1

1

0

0

0

0

1

0

0

0

0

0

0

t r r n n

K t

X

d

p

p

p

p I t

q

q

q

I t

I t

X t

τ

τ τ

− −

=

 

 

 

=

+

 

 

 

= +

R R B A

&

L

L

&

&

O

14444244443

(24)

Frequency domain identification

• Let define the state vector

• The equation of motion can be rewritten in the form an ODE of first order

( )

( ) (

)

1 1 1 1 , , r

ex r i i H drag PTO others

i F t X t I M

µ

F p I K X F F F + − ∞ + − = =         = + − − + + +      = +   

Y I F I A I B X & & & &

X

X

=

Y

I

&

(25)

Frequency domain identification

• How to compute the coefficients of the FDI?

1 Matlab routine invfreqs:

[P,Q] = invfreqs(K,w,r,n)

2 FDI toolbox from Perez & Fossen (www.marinecontrol.org)

[P,Q]=FDIRadMod(w,A33,Mu33,B33,FDIopt,Dof)

( )

( )

( )

1 1 0 1 1 0 ... ... r r r r n n n n P s p s p s p K s Q s q s q s q − − − − + + + ≈ = + + + Coefficients Discrete Transfer function Discrete frequency vector Guess of orders r < n

1

1

n

q

n

r

=

= +

From the physics, the approximation must follow these constraints

(26)

Issues with state-space approximation

• Passivity : the radiation force dissipates energy. For the some frequencies, it may not be the case with the

approximation divergence of numerical model 1 With Prony method:

2 With FDI (necessary condition)

( )

=

N i i i

t

t

K

1

)

exp(

β

α

( )

β

i

0

<

( )

( )

k 0 P j Q j

ω

ω

  ℜ >  
(27)

Summary

• Convolution product can be replaced by a state space model

• Coefficients of the state space model can be derived using:

– Prony’s method in Time domain – Frequency Domain Identification

• Matlab routine invfreqs • Perez & Fossen toolbox

(28)
(29)

Excitation force

Measurement Directional Unidirectional Regular Wave spectrum Wave elevation Incident wave model ( , , )

(

i t

)

I O t Ae ω η β = ℜ − ( ) ( ) 2 S f ω f π δ = ( ), i j i t I j j O t A e eϕ ω η = ℜ −    

 ( ), i j i t I jl l j O t A e eϕ ω η = ℜ −    

∑∑

 ( , , ) I l l O t η β

Random phases

Directions need to be identified

2 f ω = π       − − = 4 212/ 2 2 5 ) ( σ γ α f e f T B e f A f S 09 . 0 1 07 . 0 1 1 1 = > = < σ σ T f T f 2 1/3 4 4 1 1 5 5 1 16 4 H A B T T = =

( )

2 j j A = S ff

(

)

2 , lj l j A = S β f ∆ ∆f θ

( )

θ θ S f D f S( , ) = ( ) ( )       = 2 cos2 0 θ θ θ s D D
(30)

Excitation force

Measurement Directional Unidirectional Regular

Wave excitation force Wave elevation Incident wave model ( , , )

(

i t

)

I O t Ae ω η β = ℜ − ( )

(

( )

)

, O i t ex ex F t = ℜ AF% β ω e−ω ( )

(

,

)

j j ex i O i t j ex j j F t A eϕ β ω e−ω =   ℜ  

F  % ( )

(

,

)

jl j ex i O i t jl ex l j l j F t A eϕ β ω e−ω =   ℜ  

∑∑

F  % ( , , ) I O l t η β

( ) ( ) ( ) ex F t β τ η β τ τ ∞ = −

∑∫

Directions need to be identified

( ), i j i t I j j O t A e eϕ ω η = ℜ −    

 ( ), i j i t I jl l j O t A e eϕ ω η = ℜ −    

∑∑

 Random phases

( )

2 j j A = S ff

(

)

2 , lj l j A = S β f ∆ ∆f θ
(31)

May be used in exercise 4 : FD2TDex.m

PURPOSE:

• Calculate force impulse response function in time domain using frequency domain coefficients according to:

INPUTS

w frequency vector

Fex excitation force coefficients

T time vector

OUTPUTS

Kex force impulse response function

Cf help FD2TDex

( )

1 0

(

(

)

)

, , , O i t ex ex K β t F O β ω eω dω π ∞ =

ℜ %
(32)

Calc. of wave force with wave measurement

• Force impulse response function Kex

• Calculation of wave excitation force Fex

( )

,

1

0

(

(

, ,

)

)

O i t ex

t

ex

O

e

d

ω

β

β ω

ω

π

=

K

F

%

( )

0

(

) (

)

, , , ex t

β

t

τ η

ex O

β τ τ

d ∞ −∞ =

exF K

References

Related documents

At the inlet, the temperature is the air temperature (surrounding temperature), and the air temperature decreases as it flows through the tract. This is due to the heat

In conclusion, the fifteen papers in our Special Issue cover a range of methodologies, theoretical approaches, topics, and geographical regions, and all aim at increasing

Beginning with its inception, the paper is progresses towards its various HRM functions like recruitment and selection of employee, training and development,

activities of shareholders concerned with opportunistic insiders. Under the current dual reporting system, it is impossible for investors to tell what firms pay in taxes, clouding

Отже, нами встановлено, що відсутність вітаміну А в організмі з пухлиною, порівняно з онкогенезом за нормальної забезпеченості цим есенціальним нутрієнтом,

The GST will reshape the structure of indirect tax by subsume the majority of indirect taxes like Service tax, Excise duty, Value added tax (VAT), Countervailing duty

(1998a); 49 teachers’ use of ‘meta-talk’ (explanatory grammar talk) in the classroom (1998b); teachers’ pedagogical systems and their teaching of grammar (1998c);

What competencies/capacities of public health leadership can be developed through education and training, including MPH graduate training programs.