Docsity

Dynamic Mathematical Models-Modeling and Simulation-Lecture Slides, Slides of Mathematical Modeling and Simulation

Toggle sidebar
bg1
4/4/2011
1
&
MODELING
http://www.pieas.edu.pk/umarfaiz/cis308
&
SIMULATION
http://www.pieas.edu.pk/umarfaiz/cis308
http://www.pieas.edu.pk/umarfaiz/cis308
Dynamic
MathematicalModels
DynamicMathematicalModels
Dynamic(continuous)simulationisdefinedasa
systemdescribedbystatevariablesthatchange
continuously withrespecttotime.
–Statevariablesareparametersofthesystemthatdescribe
thesystem’sbehavior.
DynamicMathematicalModels
Manyoftheprinciplesinscienceandengineering
concernrelationshipsbetweenchangingquantities.
–Mathematically,ratesofchangearerepresentedby
derivatives.Therefore,suchprinciplesareoftenexpressed
intermsofdifferentialequations.
These principles contain derivatives to represent
These
principles
contain
derivatives
to

represent
changesinsystemelementswithrespecttotime.
Couplingmanysystemsmeansthatweare
connectingthesedifferentialequations.
DynamicMathematicalModels
Adifferentialequationisanyequationcontaining
oneormorederivativeterms.
–Whensystemelementshavedependenceonone
independentvariable, themodelsarebasedonOrdinary
DifferentialEquations(ODEs).
–
Systems having functions dependent on
many
Systems
having
functions
dependent
on
many
independentvariables aremodeledusingPartial
DifferentialEquations(PDEs).
CoupledModels
CoupledEquations
–Inmodeling,therearecaseswhenwefindthat
mathematicalequationsrepresentingthecoupledsystem
havemoredependentvariablesthanthenumberof
equations.
–
For coupled models, we always need additional
For
coupled
models,
we
always
need
additional
informationforthosevariables andtheirrelationships.
•Itwillproduceasetofsimultaneousorcoupledequationsas
opposedtooneequation.
–Mostofthescienceandengineeringmodelsinvolve
coupledequationsandtheirsimulation.
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Dynamic Mathematical Models-Modeling and Simulation-Lecture Slides and more Slides Mathematical Modeling and Simulation in PDF only on Docsity!

MODELING

http://www.pieas.edu.pk/umarfaiz/cis

SIMULATION

http://www.pieas.edu.pk/umarfaiz/cis308 http://www.pieas.edu.pk/umarfaiz/cis

Dynamic Mathematical Models

Dynamic Mathematical Models

ƒ Dynamic (continuous) simulation is defined as a

system described by state variables that change

continuously with respect to time.

  • State variables are parameters of the system that describe the system’s behavior.

Dynamic Mathematical Models

ƒ Many of the principles in science and engineering

concern relationships between changing quantities.

  • Mathematically, rates of change are represented by derivatives. Therefore, such principles are often expressed in terms of differential equations.

ƒƒ These principles contain derivatives to representThese principles contain derivatives to represent

changes in system elements with respect to time.

ƒ Coupling many systems means that we are

connecting these differential equations.

Dynamic Mathematical Models

ƒ A differential equation is any equation containing

one or more derivative terms.

  • When system elements have dependence on one independent variable, the models are based on Ordinary Differential Equations (ODEs).
  • Systems having functions dependent onSystems having functions dependent on manymany independent variables are modeled using Partial Differential Equations (PDEs).

Coupled Models

ƒ Coupled Equations

  • In modeling, there are cases when we find that mathematical equations representing the coupled system have more dependent variables than the number of equations.
  • For coupled models, we always need additionalFor coupled models, we always need additional information for those variables and their relationships. - It will produce a set of simultaneous or coupled equations as opposed to one equation.
  • Most of the science and engineering models involve coupled equations and their simulation.

docsity.com

Coupled Models

ƒ Coupled Equations

  • Consider a system of first order, linear differential equations.

1 1 2

1 1 2 ' 3 2

x x x

x x x = +

  • We call this kind of system a coupled system since knowledge of x 2 is required in order to find x 1 and likewise knowledge of x 1 is^ required^ to^ find^ x^2.

Model Classification on Differential Equations

ƒ Number of Independent Variables (Single)

  • When the unknown function depends on a single independent variable (most often time), only ordinary derivatives appear in the equation. - In this case, the equation is said to be an ordinary differential equations (ODE).

= 9. 8 − 0. 2 , = 0. 5 p − 450 dt

dp v dt

dv

Model Classification on Differential Equations

ƒ Number of Independent Variables (Several)

  • When the unknown function depends on several independent variables, partial derivatives appear in the equation. - In this case the equation is said to be a partial differential equation (PDE).

(,) (,) (wave equation)

(,) (,) (heatequation)

2

2 2

2 2

2 2

2 2

t

ux t x

a uxt

t

uxt x

uxt

∂

=∂ ∂

∂

∂

=∂ ∂

α ∂

Model Classification on Differential Equations

ƒ Number of unknown Functions: Systems of

Differential Equations

  • This classification depends on the number of unknown functions that are involved. - If there is a single unknown function to be found, then one equation is sufficient.

Model Classification on Differential Equations

ƒ Number of unknown Functions: Systems of

Differential Equations

  • Example
    • Predator‐prey equations have the form

du / dt = au − α uv

dv / dt =− cv + γ uv

Model Classification on Differential Equations

ƒ Order of Differential Equations

  • The order of a differential equation is the order of the highest derivative that appears in the equation.
  • Simultaneous or coupled differential equations can be combined to form higher order equations and order can then be found.then be found.

docsity.com

Model Classification on Differential Equations

ƒ Models: Solutions to Differential Equations

  • These are the important questions in the study of models based on differential equations: - Is there a solution? (Existence) - If there is a solution, is it unique? (Uniqueness) - If there is a solution, how do we find it? (Analytical solution,

Model Classification on Differential Equations

ƒ Example

Identify major features of the following mathematical model

2 y 5 t 8 cos 5 t dt

5 dy dt

3 ydy dt

d y 2

2 3

3 with + − + = +

y ( 0 )= 0 ., y ′( 0 )= 1. 0 , y ′′( 0 )=− 0. 1

2

2 dt ydy

Model Classification on Differential Equations

ƒ Example

Identify major features of the following mathematical model:

2 y 5 t 8 cos 5 t dt

5 dy dt

3 ydy dt

d y 2

2 3

3 with + − + = +

y ( 0 )= 0 ., y ′( 0 )= 1. 0 , y ′′( 0 )=− 0. 1

Model Classification on Differential Equations

ƒ Models Based On nth Order ODEs

  • Ordinary differential equations emerge when we study rates of change of dependent variables and have one independent variable. - These are formed as a result of balance of forces; balance of energy in a given differential volume; balance of flows in a volume

Model Classification on Differential Equations

ƒ Models Based On nth Order ODEs

  • We first form a differential surface or a volume under observation in a system.
  • Then we specify inputs and outputs and using conservation laws we can form balances.
  • – These balances eventually produce difference equationsThese balances eventually produce difference equations that are reduced to differential form when limits are taken.

Model Classification on Differential Equations

ƒ Models Based On nth Order ODEs

  • Let us consider an nth order linear differential equation model having non‐homogeneous term, f(t), of the following form

( ) ( 1 ) 1 () 0 () ( ) 1 (^1) dt ayt ft adyt dt

a d yt dt

a dyt n

n n n

n n +^ − + + + =

− dt −^ dt LL^ dt

docsity.com

Model Classification on Differential Equations

ƒ Models Based On nth Order ODEs

  • This may be decomposed into a set of first‐order differential equations for digital computer simulations.
  • Let us define a series of new variables

( )

() ( ) ()

( ) 1 1 0

1 (^1) d ayt

dyt a d

d yt ft a d

dyt a (^) n

n n n

n n = − − − −

− ( ) 1 1 L L 1 0 y () dt dt

f n (^) dt n n − n −

⎪

⎪

⎪

⎭

⎪

⎪

⎪

⎬

⎫

=

=

=

−

− 1

1

2

1

() ()

() ()

() ()

n

n n (^) dt gt d yt

dt

dyt gt

gt yt

M

(1.1)

Model Classification on Differential Equations

ƒ Models Based On nth Order ODEs

  • After substituting these new variables, we convert the equation (into a first order differential equation of the following form:

() 1 () 1 2 () 0 1

( ) ft a g t ag t ag dt

dg t a (^) n n = − n − n −LL− − dt

() () () ( )

( ) (^1 12) a (^0) g 1 t a g t a

a g t a

a ft dt

dg t n n

n n

n (^) = − n − (^) −LL− −

Model Classification on Differential Equations

ƒ Example

  • Convert the following third order model into first order ODEs based model.

5 () 3 ( 2 ) 2 () 8 () sin( 2 )

2 3

3 yt t dt

dyt dt

dyt dt

d yt + + + =

Model Classification on Differential Equations

ƒ Solution

  • Let us define:

( ) 5

() 8 5

() 2 5

( ) sin( 2 ) 3 2

2 3

3 y t dt

dyt dt

t dyt dt

d yt = − − −

5 () 3 ( 2 ) 2 () 8 () sin( 2 )

2 3

3 yt t dt

dyt dt

dyt dt

d yt + + + =

(A)

gg 1 (^) 1 (( tt ))= yy (( tt )) (1)

dt

g ( t ) dy ( t ) 2 =

2

2 3 ( ) () dt g t = dyt

(1) (2)

(3)

5 () (4) ()^8 5 ()^2 5

( ) sin( 2 ) 3 dt^3 t g^3 t g^2 t g^1 t

dg t = − − −

Model Classification on Differential Equations

ƒ Models based on First‐Order Differential Equations

  • The simple case is encountered when we have model based on first order differential equation only. Its general form is:

. ( )

Qxy

Px y fxy dx

dy = =− dx Q ( x , y )

Changing Model Equations into a Standard Form

ƒ In setting up a simulation procedure, we first model

the system in a form that has complete normalization

and ordering.

ƒ General procedure to re‐formulate a differential

equation based model into a standard form has

f llfollowing steps.

  1. Find out Dependent Variables:
    • First find out what are main dependent and independent variables in each equation of the model. A single equation will have one dependent and one independent variable.

docsity.com

Changing Model Equations into a Standard Form

ƒ Solution:

  • Now we identify main features of this standard model equation. - Dependent and Independent variable: y and t , - Linearity &Order: It is a non‐linear equation of order three. - Homogeneity: It is non‐homogeneous equation.

docsity.com