• No results found

Exact Stochastic Simulation of the Oregonator The Gillespie-Algorithm

N/A
N/A
Protected

Academic year: 2022

Share "Exact Stochastic Simulation of the Oregonator The Gillespie-Algorithm"

Copied!
20
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

Exact Stochastic Simulation of the Oregonator

The Gillespie-Algorithm

Marco Bussolera, Christoph Appel

Nonequilibrium Statistical Physics 21.03.2016

University of Augsburg

(2)

1

Introduction

2

Mathematical Basis

3

Stochastic Simulation Algorithm

4

Results for the Oregonator

(3)

Introduction

Introduction

Two different approaches to calculate the time behaviour of a spatially homogeneous chemical system.

Deterministic approach: continuous time evolution for reaction-rate equations

set of coupled ordinary differential equations

Stochastic approach: discrete time evolution as random-walk governed by a single equation

Master-equation (mathematically complicated)

Exact Stochastic Simulation Algorithm (SSA) by Gillespie

(4)

Mathematical Basis

Description of the system

spatially homogeneous chemical system with fixed Volume V

N chemical species with X

i

molecules (i = 1, 2, . . . , N)

M chemical reaction channels R

µ

with µ = 1, 2, . . . , M

thermal but no chemical equilibrium

(5)

Mathematical Basis

Stochastic formulation of chemical kinetics

Average probability that a combination of reactant molecules of R

µ

will react in the infinitesimal time interval (t, t +

dt)

= c

µdt

Probability that a reaction R

µ

occurs in (t, t +

dt)

= [number of distinct R

µ

molecular combinations]

·

c

µdt

h

µ

c

µdt

a

µdt

(6)

Mathematical Basis

Reaction Probability Density Function

Probability that, given the state (X

1

, . . . , X

N

) at time t, the next reaction will occur in the time interval (t + τ, t + τ +

), and will be an R

µ

reaction

= P (τ, µ)

= P

0

(τ )

·

a

µ

P

0

(τ ) is the probability that no reaction occurs in (t, t + τ )

P

0

(τ +

) = P

0

(τ )

·

"

1

M

X

ν=1

a

ν

#

resulting in

P

0

(τ ) =

exp −

M

X

ν=1

a

ν

τ

!

≡exp

(−a

0

τ )

(7)

Stochastic Simulation Algorithm

Stochastic Simulation Algorithm (1)

Randomly generate a pair (τ, µ) according to the probability density function P (τ, µ)

Therefore generate a random pair (r

1

, r

2

) between 0 and 1 and assign:

τ = 1

a

0

·ln

1

r

1

µ−1

X

ν=1

a

ν

< r

2

a

0

µ

X

ν=1

a

ν

(8)

Stochastic Simulation Algorithm

Stochastic Simulation Algorithm (2)

Step 0:

Input of population numbers X

i

and reaction constants c

µ

Step 1:

- Calculate h

1

, . . . , h

M

for current state - Calculate a

1

= h

1

c

1

, . . . , a

M

= h

M

c

M

- Calculate a

0

=

M

P

ν=1

a

ν

Step 2:

Generate a random pair (r

1

, r

2

) and calculate (τ, µ)

Step 3:

- Increase t by τ

- Update population numbers according to R

µ Return to step 1

(9)

Stochastic Simulation Algorithm

The Oregonator (1)

Chemical reactions:

X1

+

Y2 −→c1 Y1 Y1

+

Y2 −→c2 Z1 X2

+

Y1 −→c3

2Y

1

+

Y3

2Y

1 −→c4 Z2 X3

+

Y3 −→c5 Y2

(10)

Stochastic Simulation Algorithm

The Oregonator (2)

Reaction constants:

c

1

X

1

= ρ

1s

/Y

2s

c

2

= ρ

2s

/ (Y

1s

Y

2s

) c

3

X

2

= (ρ

1s

+ ρ

2s

) /Y

1s

c

4

= 2ρ

1s

/Y

1s

2

c

5

X

3

= (ρ

1s

+ ρ

2s

) /Y

3s

With the parameters:

ρ

1s

c

1

X

1

Y

2s

ρ

2s

c

2

Y

1s

Y

2s

(11)

Results for the Oregonator

Results: Oscillations, molecule numbers vs. time

0 2500 5000 7500 10000

0 1 2 3 4 5 6

numbersofmolecules

time (s)

Y1 Y2 Y3

0 2500 5000 7500 10000

1 1.5 2 2.5 3

numbersofmolecules

time (s)

Y1 Y2 Y3

Figure:These plots show Y1(t),Y2(t) andY3(t). The initial values are equal to the steady-state values: Y1s =Y1i = 500, Y2s =Y2i = 1000, Y3s =Y3i = 2000, with the reaction rates: ρ1s = 2000 andρ2s = 50000. The simulation was done

× 5

(12)

Results for the Oregonator

Results: 3D-plot

0 2.5·103 5·103 7.5·103 1·104

Y2

0 2.5·103

103 7.5·103

1·104

0 Y1 2·103 103 6·103 8·103 1·104

Y3

Figure:3D plot of the population numbersY1,Y2andY3

(13)

Results for the Oregonator

Results: 2D-projections of the trajectory

0 2000 4000 6000 8000 10000

0 2000 4000

numberofY2molecules

0 2000 4000 6000 8000 10000

0 2000 4000

numberofY3molecules

0 2000 4000 6000 8000 10000

0 2000 4000 6000

numberofY3molecules

(14)

Results for the Oregonator

Results: 3D-plot for different initial values

0 2.5·103 5·103 7.5·103 1·104

Y1

0 2·103 4·103 6·103 8·103 1·104

Y3

0 2·103

4·103 6·103

8·103 1·104 Y2

Y1i= 500, Y2i= 1000,Y3i= 2000

Y1i= 100, Y2i= 500, Y3i= 3000

Y1i= 1000,Y2i= 1000,Y3i= 1000

Y1i= 1000,Y2i= 10, Y3i= 10

Figure:3D plot of the number of molecule of the species Y1,Y2andY3for four simulations with different initial values

(15)

Results for the Oregonator

Results: Closing the system to X

1

-molecules

0 2500 5000 7500 10000

0 2 4 6 8

numbersofmolecules

time (s)

Y1 Y2 Y3 X1

Figure:This plot shows the behaviour of the system when the number of X1

(16)

Results for the Oregonator

Results: Closing the system to X

2

-molecules

0 2500 5000 7500 10000

0 2 4 6 8

0 25000 50000 75000 100000

numbersofmoleculesY1,Y2,Y3

time (s)

numbersofmoleculesX2

Y1 Y2 Y3 X2

Figure:This plot shows the behaviour of the system when X2is not kept

constant, starting with an initial value ofX2= 105. In this case the amplitude of the oscillation decreases for decreasingX2.

(17)

Results for the Oregonator

Results: Varying the reaction rates (1)

0 2500 5000 7500 10000

0 1 2 3 4 5 6

numbersofmolecules

time (s)

Y1 Y2 Y3

0 1000 2000 3000 4000 5000

Y2

0 1000 2000 3000 4000 5000

Y1 0

2·103 4·103 6·103 8·103 1·104

Y3

Figure:Results after changing the reaction rates from ρ1s = 2000 and ρ2s = 50000 toρ1s = 2000 and ρ2s = 20000. The amplitude of the oscillation decreases by decreasingρ2.

(18)

Results for the Oregonator

Results: Varying the reaction rates (2)

0 2500 5000 7500 10000

0 1 2 3 4 5 6

numbersofmolecules

time (s)

Y1 Y2 Y3

0 1000 2000 3000 4000 5000

Y2

0 1000 2000 3000 4000 5000

Y1 0

2·103 4·103 6·103 8·103 1·104

Y3

Figure:Results after changing the reaction rates to ρ1s = 4000 andρ2s = 20000.

The amplitude of the oscillation further decreases by increasing ρ1s.

(19)

Results for the Oregonator

Results: Varying the reaction rates (3)

0 2500 5000 7500 10000

0 1 2 3 4 5 6

numbersofmolecules

time (s)

Y1 Y2 Y3

0 1000 2000 3000 4000 5000

Y2

0 1000 2000 3000 4000 5000

Y1 0

2·103 4·103 6·103 8·103 1·104

Y3

Figure:Results after changing the reaction rates to ρ1s = 5000 andρ2s = 5000.

By increasingρ1s and decreasingρ2s even further no oscillation occurs anymore and the molecule population numbers only fluctuate around a constant value.

(20)

Results for the Oregonator

Results: Varying the number of molecules

0 1·104 2·104 3·104

4 6 8 10 12

numbersofmolecules

time (s)

Y1 Y2 Y3

0 5·103 104 1.5·104 104 2.5·104

Y2

0 103 104 1.5·104 2·104 Y1 0

104 104 104 104

Y3

Figure:Results after increasing the steady state population levels by a factor of four: Y1s = 2000, Y2s = 4000, Y3s = 8000,with reaction ratesρ1s = 2000 and ρ2s = 50000. This leads to a decrease in the relative size of the stochastic fluctuations in the time-dependent oscillations. The “spreading” of the limit cycle path is not reduced.

Referanser

RELATERTE DOKUMENTER

Stochastic partial differential equations driven by classical Brownian space- time white noise were first studied by Walsh [W]... ω, and it satisfies the equation in

In this paper, we study a robust recursive utility maximization problem for time-delayed stochastic differential equation with jumps1. This problem can be written as a

[r]

Stochastic Event Simulation of Oil Recovery Projectsr.

model uncertainty; stochastic differential game; stochastic maximum principle; operator- valued backward stochastic differential equation; optimal consumption of a mean-field cash

In this paper we prove, for small Hurst parameters, the higher order differentiability of a stochastic flow associated with a stochastic differential equation driven by an

I will present a theorem for existence and uniqueness, and strong and weak solutions of stochastic differential equations.. Finally, I will comment on the

Section 4 contains applications to the stability analysis of the generalized sto- chastic pantograph equation (5), but we stress that most results are also new for the