22
STELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA numerically simulates the solutions to systems of differential

equations.

STELLA INTEGRATES!

Page 2: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA Diagram

Stock X

Flow 1

Constant aSTELLA Equations:Stock_X(t) = Stock_X(t - dt) + (Flow_1) * dt

INIT Stock_X = 100Flow_1 = Constant_aConstant_a = 10

Flow is constant.

Page 3: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

7:28 AM Tue, Apr 10, 2001

0.00 3.00 6.00 9.00 12.00

Time

1:

1:

1:

100.00

200.00

300.00

1: Stock X

1

1

1

1

Graph 1 (Untitled)

Page 4: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!
Page 5: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (Flow_1) * dt

(Stock_X(t) - Stock_X(t - dt))/dt = Flow_1Flow_1 = Constant_a

(X(t) - X(t - dt))/dt = alet dt 0

dX/dt = a (a differential equation)

Solution to DE: X = at + X(0)

Page 6: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA DiagramStock X

Flow 1

Constant a

STELLA Equations:Stock_X(t) = Stock_X(t - dt) + (Flow_1) * dt

INIT Stock_X = 100Flow_1 = Constant_a*Stock_XConstant_a = .1

Flow is proportional to X.

Page 7: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

7:34 AM Tue, Apr 10, 2001

0.00 3.00 6.00 9.00 12.00

Time

1:

1:

1:

100.00

250.00

400.00

1: Stock X

1

1

1

1

Graph 1 (Untitled)

Page 8: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (Flow_1) * dt

(Stock_X(t) - Stock_X(t - dt))/dt = Flow_1Flow_1 = Constant_a*Stock_X

(X(t) - X(t - dt))/dt = aX(t-dt)

dX/dt = aX (differential equation)

Solution to DE:

Page 9: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA Diagram

Two flows, an inflow and an outflow.

Population

Births

Birth Fraction

Deaths

Page 10: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (Flow_1 - Flow_2) * dtINIT Stock_X = 1000

Flow_1 = Constant_a*Stock_X(t-dt)

Flow_2 = Constant_b

Constant_a = .11

Constant_b = 100

Page 11: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

4:17 PM Wed, Feb 08, 2006

Population

Page 1

0.00 3.00 6.00 9.00 12.00

Time

1:

1:

1:

0

1000

2000

1: Population

1 1 11

Page 12: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (Flow_1 - Flow_2) * dt

(Stock_X(t) - Stock_X(t - dt))/dt = Flow_1 - Flow_2Flow_1 = Constant_a*Stock_X(t-dt)

Flow_2 = Constant_b

dX/dt = aX - b

Solution to DE:?

Page 13: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA Diagram

Two flows, an inflow and an outflow.

Population

Births Deaths

Death Fraction

Page 14: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

3:54 PM Wed, Feb 09, 2005

Population

Page 10.00 25.00 50.00 75.00 100.00

Time

1:

1:

1:

0

600

1200

1: Population

11 1 1

Page 15: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (Flow_1 - Flow_2) * dt

(Stock_X(t) - Stock_X(t - dt))/dt = Flow_1 - Flow_2Flow_1 = Constant_a

Flow_2 = Constant_b*

dX/dt = a - bX

Solution to DE:?

Page 16: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA Diagram

Stock X

Flow 1

Constant a

Stock Y

Flow 2

Constant b Constant c

Flow 3

Two stocks, X and Y, and three flows.

The outflow from Stock X is the inflow to Stock Y.

Page 17: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

STELLA Equations 5

Stock_X(t) = Stock_X(t - dt) + (Flow_1 - Flow_2) * dtINIT Stock_X = 100

Flow_1 = Constant_a*Stock_X

Flow_2 = Constant_b*Stock_X*Stock_Y

Stock_Y(t) = Stock_Y(t - dt) + (Flow_2 - Flow_3) * dtINIT Stock_Y = 100

Flow_2 = Constant_b*Stock_X*Stock_Y

Flow_3 = Constant_c*Stock_Y

Constant_a = .2

Constant_b = .001

Constant_c = .01

Page 18: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

7:35 AM Tue, Apr 10, 2001

0.00 12.50 25.00 37.50 50.00

Time

1:

1:

1:

2:

2:

2:

0.00

100.00

200.00

100.00

300.00

500.00

1: Stock X 2: Stock Y

1

1

1 1

2

2 2

2

Graph 1 (Untitled)

Page 19: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

(Stock_X(t) - Stock_X(t - dt))/dt= Flow_1 - Flow_2

(Stock_Y(t) - Stock_Y(t - dt))/dt= Flow_2 - Flow_3

dX/dt = aX - bXY

dY/dt = bXY - cY

(A pair of differential equations)

How many differential equations do we need?

Page 20: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!
Page 21: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock X Stock Y Stock Z

Flow 1 Flow 2

Constant a Constant b

Page 22: STELLA numerically simulates the solutions to systems of ...jcmayer/Stella and Calculus.pdfSTELLA numerically simulates the solutions to systems of differential equations. STELLA INTEGRATES!

Stock_X(t) = Stock_X(t - dt) + (- Flow_1) * dtFlow_1 = Constant_a*Stock_X*Stock_Y /dt

Stock_Y(t) = Stock_Y(t - dt) + (Flow_1 - Flow_2) * dtFlow_1 = Constant_a*Stock_X*Stock_Y

Flow_2 = Constant_b*Stock_Y

Stock_Z(t) = Stock_Z(t - dt) + (Flow_2) * dtFlow_2 = Constant_b*Stock_Y