Escolar Documentos
Profissional Documentos
Cultura Documentos
Mathieu Desroches
mathieu.desroches@inria.fr
Session A3: Mathematics for oscillations
24-25 July
Introduction to XPPAUT
XPP- -AUT
...
Part I
(short) Introduction to
! (parametrised families of) ODEs
! their Bifurcations
! direct simulation of ODEs
! numerical continuation study
Part I
(short) Introduction to
! (parametrised families of) ODEs
! their Bifurcations
! direct simulation of ODEs
! numerical continuation study
Part I
(short) Introduction to
! (parametrised families of) ODEs
! their Bifurcations
! direct simulation of ODEs
! numerical continuation study
Part I
(short) Introduction to
! (parametrised families of) ODEs
! their Bifurcations
! direct simulation of ODEs
! numerical continuation study
Part I
(short) Introduction to
! (parametrised families of) ODEs
! their Bifurcations
! direct simulation of ODEs
! numerical continuation study
Bifurcation diagram
Bifurcation diagram
when > 0
x = x
2
Example 2: fold bifurcation
ODE :
" Equilibria :
x =
when > 0
x = 0 when = 0
x = x
2
Example 2: fold bifurcation
ODE :
" Equilibria :
x =
when > 0
x = 0 when = 0
when < 0 no equilibrium
x = x
2
Example 2: fold bifurcation
ODE :
" Equilibria :
x =
when > 0
x = 0 when = 0
when < 0 no equilibrium
x = x
2
" Stability : f
0
(x) = 2x
Example 2: fold bifurcation
ODE :
" Equilibria :
SO 1) it depends on !>0
x =
when > 0
x = 0 when = 0
when < 0 no equilibrium
x = x
2
" Stability : f
0
(x) = 2x
Example 2: fold bifurcation
ODE :
" Equilibria :
SO 1) it depends on !>0
2) always opposite stability BUT at 0!
x =
when > 0
x = 0 when = 0
when < 0 no equilibrium
x = x
2
" Stability : f
0
(x) = 2x
Bifurcation diagram
x = x
2
Bifurcation diagram
x = x
2
Bifurcation diagram
x = x
2
Bifurcation diagram
x = x
2
Bifurcation diagram
! Fold bifurcation point
x = x
2
x = f (x, )
2D systems ... (nD, n>2)
vector of (state) variables
vector of parameters
x
x = f (x, )
Equilibria: nd all such that f( , )=0
x
is xed!)
2D systems ... (nD, n>2)
vector of (state) variables
vector of parameters
x
x = f (x, )
Stability: Jacobian matrix
J =
f
i
x
j
is xed!)
2D systems ... (nD, n>2)
vector of (state) variables
vector of parameters
x
x = f (x, )
Stability: Jacobian matrix
J =
f
i
x
j
is xed!)
2D systems : nullclines
x = f(x, y, )
y = g(x, y, )
2D systems : nullclines
x = f(x, y, )
y = g(x, y, )
Equilibria:
(x !=! )
0
f(x
, y
,
0
) = 0 & g(x
, y
,
0
) = 0
2D systems : nullclines
x = f(x, y, )
y = g(x, y, )
Equilibria:
(x !=! )
0
f(x
, y
,
0
) = 0 & g(x
, y
,
0
) = 0
! Geometrically:
{f(x, y,
0
) = 0}{g(x, y,
0
) = 0}
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
I = 1.5
= 0.08
a = 0.7
b = 0.8
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
I = 1.5
= 0.08
a = 0.7
b = 0.8
! f is cubic
! g is linear
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
I = 1.5
= 0.08
a = 0.7
b = 0.8
! f is cubic
! g is linear
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
I = 1.5
= 0.08
a = 0.7
b = 0.8
1 eq.
! f is cubic
! g is linear
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
= 0.08
a = 0.7
I = 0.4
b = 1.8
! f is cubic
! g is linear
2D systems : nullclines
(example) FitzHugh-Nagumo
v = v v
3
/3 w + I
y = (v + a bw)
= 0.08
a = 0.7
I = 0.4
b = 1.8
3 eq.
! f is cubic
! g is linear
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
- nonlinear dynamics -
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
focus
- nonlinear dynamics -
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
focus node
- nonlinear dynamics -
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
focus node
saddle
- nonlinear dynamics -
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
focus node
saddle
- nonlinear dynamics -
(un)stable eigenspaces
Re
Im
Linear approximation: 2D case
source
sink
nodal sink nodal source hyperbolic centre
focus node
saddle
- nonlinear dynamics -
(un)stable eigenspaces
! nonlinear equivalent: (un)stable manifolds
W
s,u
Re
Im
Linear systems: stability
Ref.: [Jordan & Smith, 4th ed., Oxford Uni. Press, 2007]
Bifurcations
C
Re
Im
stable focus
unstable focus
Hopf bifurcation
C
Re
Im
stable focus
unstable focus
unstable focus
Hopf bifurcation
C
Re
Im
! focus eq. destabilises when eigenvalues cross Im
stable focus
unstable focus
unstable focus
Hopf bifurcation
C
Re
Im
! focus eq. destabilises when eigenvalues cross Im
stable focus
unstable focus
a stable
limit cycle
is created!
Hopf : bifurcation diagram
Measure of
the solution
H
Hopf : bifurcation diagram
Measure of
the solution
H
Before : stable equilibrium
Hopf : bifurcation diagram
Measure of
the solution
H
After : unstable equilibrium
Hopf : bifurcation diagram
Measure of
the solution
H
After : stable limit cycle
Hopf : bifurcation diagram
Measure of
the solution
H
After : stable limit cycle
Represented
in this diagram by
max. and min. values
Hopf : bifurcation diagram
Measure of
the solution
H
After : stable limit cycle
Represented
in this diagram by
max. and min. values
From stationary to periodic when varying !!
Hopf : bifurcation diagram
- 3D visualisation -
x
y
Transient dynamics
Long-term dynamics (attractors)
1
F(x) = 0,
(
0
+ ) = 0
Problem at a fold !!
Kellers pseudo-arclength continuation
0
+ (x x
0
) x
0
s = 0
Arclength measured along the tangent space !
Periodic orbit continuation
x
0
k1
dt = 0
(x
k
(0) x
k1
(0))
x
0
k1
(0)) = 0
x
0
k1
dt = 0
(x
k
(0) x
k1
(0))
x
0
k1
(0)) = 0
x
k1
dt + (T
k
T
k1
)
T
k1
+(
k
k1
)
k1
s = 0
! Inside mesh intervals: well-chosen collocation points (good
convergence properties)
HB
HB
stable
unstable
stable
max(v)
min(v)
FHN: 1-par. continuation results
b=0.8
! !"#$ !"$ !"%$ &
#
&
!
&
#
FHN: 1-par. continuation results
b=1.8
I
v
HB
HB
stable
unstable
stable
LP
LP
HO
HO
FHN: 2-par. continuation results
I & b
! ! " #$
$
#%!&
!%&
'%(&
&
I
b
HB
LP
0.8
1.8
1.25
2.5
FHN: 2-par. continuation results
I & b
I
b
LP
HB
0.8
1.8
Part III: XPPAUT
- practice it yourself -
Hindmarsh-Rose equation file
Hindmarsh-Rose equation file
D.E.
Hindmarsh-Rose equation file
D.E.
Par.
Hindmarsh-Rose equation file
D.E.
Par.
I.C.
Hindmarsh-Rose equation file
D.E.
Par.
I.C.
Num.
HB
HB HB
HB
References
XPPAUT
References
% Bard Ermentrout (University of Pittsburgh, USA):
XPPAUT
References
% Bard Ermentrout (University of Pittsburgh, USA):
XPPAUT
References
% Bard Ermentrout (University of Pittsburgh, USA):
XPPAUT
References
XPPAUT
References
% Other tutorials :
XPPAUT
http://www.math.ualberta.ca/~devries/math570-winter2008/XPPtutorial.pdf
http://people.uleth.ca/~roussel/nld/bifurc_analysis.pdf
http://www.math.osu.edu/~kao/Math865Lsourcecode/Handout/xppaut_tutorial.pdf
http://www.iiserpune.ac.in/~pgoel/XPP_Tutorial.pdf
References
% Other tutorials :
XPPAUT
http://www.math.ualberta.ca/~devries/math570-winter2008/XPPtutorial.pdf
http://people.uleth.ca/~roussel/nld/bifurc_analysis.pdf
http://www.math.osu.edu/~kao/Math865Lsourcecode/Handout/xppaut_tutorial.pdf
http://www.iiserpune.ac.in/~pgoel/XPP_Tutorial.pdf
% Examples of ode les :
http://mrb.niddk.nih.gov/sherman/gallery/index.html
http://www.math.fsu.edu/~bertram/software/
References ...
ODEs & Bifurcations
References ...
ODEs & Bifurcations
(Tutorials & Software sections)
(MathDoctorMitchells Channel)
References ...
ODEs & Bifurcations
(Tutorials & Software sections)
http://www.bio.vu.nl/thb/research/project/globif/
(MathDoctorMitchells Channel)
References ...
ODEs & Bifurcations
(Tutorials & Software sections)
http://www.bio.vu.nl/thb/research/project/globif/
(MathDoctorMitchells Channel)
Beyond XPPAUT!
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Other continuation packages:
MatCont Matlab based !
CoCo
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Other continuation packages:
MatCont Matlab based !
!! mostly for ODEs !!
CoCo
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Other continuation packages:
MatCont Matlab based !
Beyond ODEs:
!! mostly for ODEs !!
CoCo
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Other continuation packages:
MatCont Matlab based !
Beyond ODEs:
%codes exist for PDEs ( ) and DDEs ( )
!! mostly for ODEs !!
CoCo
LOCA Knut
Beyond XPPAUT!
Command-line AUTO: the proper way to do continuation!
! Allows to continue: equilibria, limit cycles
AND boundary-value problems
Other continuation packages:
MatCont Matlab based !
Beyond ODEs:
%codes exist for PDEs ( ) and DDEs ( )
& on-going work for SDEs and equation-free problems ...
!! mostly for ODEs !!
CoCo
LOCA Knut
References
AUTO - 07p
References
% Eusebius Doedel (Concordia University, Montreal):
AUTO - 07p
References
% Eusebius Doedel (Concordia University, Montreal):
AUTO - 07p
References
% Eusebius Doedel (Concordia University, Montreal):
AUTO - 07p
References
% Eusebius Doedel (Concordia University, Montreal):
AUTO - 07p
http://www2.imperial.ac.uk/~jswlamb/LDSG/grad0506/auto_course.htm
Thanks for your attention!
... questions?