mathematical modeling 1

Upload: waqas-gehlan

Post on 06-Apr-2018

231 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/3/2019 Mathematical Modeling 1

    1/52

    Prepared by Mrs. Asma Adeel 1

    Dynamic System Modeling

    What is virtual environment? Time and frequency domain.

    What is mathematical modeling?

    Applications of mathematical modeling

    Electrical Circuits

    Translational Mechanical Systems

    Rotational Mechanical Systems

    ( with or without lossless gears )

    Electromechanical Systems

  • 8/3/2019 Mathematical Modeling 1

    2/52

    Prepared by Mrs. Asma Adeel 2

    What is a mathematical model?

    Amathematical model is an abstractmodelthat uses mathematical language todescribe the behavior of a system.

    A mathematical model as 'arepresentation of the essential aspects ofan existing system (or a system to beconstructed) which presents knowledge of

    that system in usable form'.

    http://en.wikipedia.org/wiki/Model_%28abstract%29http://en.wikipedia.org/wiki/Model_%28abstract%29http://en.wikipedia.org/wiki/Mathematicshttp://en.wikipedia.org/wiki/Systemhttp://en.wikipedia.org/wiki/Systemhttp://en.wikipedia.org/wiki/Systemhttp://en.wikipedia.org/wiki/Systemhttp://en.wikipedia.org/wiki/Mathematicshttp://en.wikipedia.org/wiki/Model_%28abstract%29http://en.wikipedia.org/wiki/Model_%28abstract%29
  • 8/3/2019 Mathematical Modeling 1

    3/52

    Prepared by Mrs. Asma Adeel 3

    Background of Mathematical Modeling:

    Used in need of controlling and optimizing a system.

    Engineers build the descriptive model of the system as ahypothesis how a system would work or try to estimate that howan unforeseeable event could affect the system.

    Then different softwares could be used to simulate a system.

    A mathematical model usually describes a system by a set ofvariables and a set of equations that establish relationships betweenthe variables.

    The values of the variables can be practically anything; real or integer

    numbers, boolean values or strings, The variables represent some properties of the system, for example,measured system outputs often in the form of signals, timing data,counters, event occurrence.

    The actual model is the set of functions that describe the relations

    between the different variables.

    http://en.wikipedia.org/wiki/Real_numberhttp://en.wikipedia.org/wiki/Integerhttp://en.wikipedia.org/wiki/Boolean_algebrahttp://en.wikipedia.org/wiki/Signal_%28information_theory%29http://en.wikipedia.org/wiki/Signal_%28information_theory%29http://en.wikipedia.org/wiki/Boolean_algebrahttp://en.wikipedia.org/wiki/Integerhttp://en.wikipedia.org/wiki/Real_number
  • 8/3/2019 Mathematical Modeling 1

    4/52

    Prepared by Mrs. Asma Adeel 4

    Building Blocks of the Mathematical Model:

    There are six basic groups of variables:

    Independent

    Variables andDecision

    variables Exogenousvariables orparametersand constants

    Input

    variables

    State

    Variables

    Random

    Variables

    OutputVariables

    Input VariableTypes

    The variables arenot independent ofeach other.

    Both represent

    objective andconstraints on thesystem.

  • 8/3/2019 Mathematical Modeling 1

    5/52

    Prepared by Mrs. Asma Adeel 5

    A review of Laplace Transform

    Clarify the difference

    between time domain andfrequency domain.

  • 8/3/2019 Mathematical Modeling 1

    6/52

    Prepared by Mrs. Asma Adeel 6

    Laplace

    T

    ransform

    P

    roperties

  • 8/3/2019 Mathematical Modeling 1

    7/52

    Prepared by Mrs. Asma Adeel 7

    Transfer Function:

    write a general nth order, linear, time invariant differential

    equation,and

    nc(t) /dtn+ an-1 dn-1 c(t) / dtn-1+ .. + aoc(t) =

    bmdmr(t) / dtm+ bm-1 d

    m-1r(t) / dtm-1+ . + bor(t)

    Taking Laplace of both the sides and put all the initial conditions tozero.

    The required ration

    C(s) / R(s) = G(s) = bm sm + bm-1 s

    m-1+. b0

    ansn + an-1 sn-1+ a0

    The transfer function is represented as a block

    R(s) C(s)bm s

    m + bm-1 sm-1+. b0

    ansn + an-1 s

    n-1+ a0

    C(s)= R(s) G(s)

  • 8/3/2019 Mathematical Modeling 1

    8/52

    Prepared by Mrs. Asma Adeel 8

    Electrical System Modeling

  • 8/3/2019 Mathematical Modeling 1

    9/52

    Prepared by Mrs. Asma Adeel 9

    Electrical Networks

    Impedance admittance

  • 8/3/2019 Mathematical Modeling 1

    10/52

    Prepared by Mrs. Asma Adeel 10

    Example 2.6

    Transfer function- single loop via differential

    equation

  • 8/3/2019 Mathematical Modeling 1

    11/52

    Prepared by Mrs. Asma Adeel 11

    Example 2.7

    Repeat previous example using mesh analysis

    and node analysis and transform methodswithout writing differential equations.

    Replace the circuitelements by thefrequency domaincircuit parameters

  • 8/3/2019 Mathematical Modeling 1

    12/52

    Prepared by Mrs. Asma Adeel 12

    Example 2.10

    Transfer functions with the multiple loopelectrical circuits.

  • 8/3/2019 Mathematical Modeling 1

    13/52

    Prepared by Mrs. Asma Adeel 13

    A quick way to write network equations

    Writing Equations Via Inspection

    Sum of Impedances

    around Mesh 1 I1 (s) -Sum of Impedances

    common to twomeshes I

    2 (s)

    = Sum of applied voltages around Mesh 1

    Sum of Impedancescommon to twomeshes

    - I1 (s) + Sum of Impedancesaround mesh 2

    I2 (s)

    = Sum of applied voltages around Mesh 2

  • 8/3/2019 Mathematical Modeling 1

    14/52

    Prepared by Mrs. Asma Adeel 14

    Writing Nodal Equations by inspection

    (Sum of admittances to node 1) V1(s)(Sum of admittances common to twonodes) V2(s) = Sum of applied currentsat node 1

    -(Sum of admittances common to twonodes)V1(s)+ ( Sum of admittances at

    node 2 ) V2(s) = Sum of applied currentsat node 2

  • 8/3/2019 Mathematical Modeling 1

    15/52

    Prepared by Mrs. Asma Adeel 15

    Example 2.11

    Transfer Function with multiple nodes

    Example 2.12

    Transfer Function with multiple nodes Do it Yourself!!!!!!!

  • 8/3/2019 Mathematical Modeling 1

    16/52

    Prepared by Mrs. Asma Adeel 16

    Example 2.19

    Write Down the mesh equations of the system

  • 8/3/2019 Mathematical Modeling 1

    17/52

    Prepared by Mrs. Asma Adeel 17

    Skill Assessment 2.6

    Find the Transfer Function

  • 8/3/2019 Mathematical Modeling 1

    18/52

    Prepared by Mrs. Asma Adeel 18

    Example 2.12

    Find the Transfer Function

  • 8/3/2019 Mathematical Modeling 1

    19/52

    Prepared by Mrs. Asma Adeel 19

    Translational MechanicalSystem Modeling

  • 8/3/2019 Mathematical Modeling 1

    20/52

    Prepared by Mrs. Asma Adeel 20

    Translational Mechanical Systems

    Number of Equations of Motion= Degree of

    Freedom

  • 8/3/2019 Mathematical Modeling 1

    21/52

    Prepared by Mrs. Asma Adeel 21

    Example 2.16

    Find the Transfer Function

    Free BodyDiagram

    Transformed FreeBody Diagram

    G(s) = X(s)/ F(s) = 1 / Ms2 + fvs + K

  • 8/3/2019 Mathematical Modeling 1

    22/52

    Prepared by Mrs. Asma Adeel 22

    Equations of Motion by Inspection

    (Sum of impedances connected to motion atx1) X1(s) (Sum of impedances between x1and x2) X2(s) = (Sum of applied forces at x1)

    - (Sum of impedances between x1 and x2)X1(s) + (Sum of impedances connected to themotion at x2) X2(s) = (Sum of applied forcesat x2)

  • 8/3/2019 Mathematical Modeling 1

    23/52

    Prepared by Mrs. Asma Adeel 23

    Equations of Motion by Inspection

    Example 2.17

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    24/52

    Prepared by Mrs. Asma Adeel 24

    Equations of Motion by Inspection

    Example 2.18

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    25/52

    Prepared by Mrs. Asma Adeel 25

    Equations of Motion by Inspection

    Skill Assessment 2.8

    Write the motion equations but do not solve

    X2(s) / F(s) = (3s+1) / s( s3+ 7s2+ 5s + 1)

  • 8/3/2019 Mathematical Modeling 1

    26/52

    Prepared by Mrs. Asma Adeel 26

    Equations of Motion by Inspection

    Example 2.18

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    27/52

    Prepared by Mrs. Asma Adeel 27

    Equations of Motion by Inspection

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    28/52

    Prepared by Mrs. Asma Adeel 28

    Equations of Motion by Inspection

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    29/52

    Prepared by Mrs. Asma Adeel 29

    Equations of Motion by Inspection

    Write the motion equations but do not solve

  • 8/3/2019 Mathematical Modeling 1

    30/52

    Prepared by Mrs. Asma Adeel 30

    Rotational MechanicalSystem Modeling

    Torque angular displacement and angular

  • 8/3/2019 Mathematical Modeling 1

    31/52

    Prepared by Mrs. Asma Adeel 31

    Torque, angular displacement and angularvelocity relationships for rotational Mechanical

    Systems

    Number of Equations of Motion= Degree of

    Freedom

  • 8/3/2019 Mathematical Modeling 1

    32/52

    Prepared by Mrs. Asma Adeel 32

    Equations of Motion by Inspection

    (Sum of impedances connected to motionat 1) 1(s) (Sum of impedancesbetween 1 and 2) 2(s) = (Sum of

    applied torques at

    1)

    - (Sum of impedances between 1 and 2)

    1

    (s) + (Sum of impedances connected tothe motion at 2) 2(s) = (Sum of appliedtorques at 2)

  • 8/3/2019 Mathematical Modeling 1

    33/52

    Prepared by Mrs. Asma Adeel 33

    Example No. 1

  • 8/3/2019 Mathematical Modeling 1

    34/52

    Prepared by Mrs. Asma Adeel 34

    Example No. 2

  • 8/3/2019 Mathematical Modeling 1

    35/52

    Prepared by Mrs. Asma Adeel 35

    Example No. 3

    G(s) = 1 / 2s2 +s+1

  • 8/3/2019 Mathematical Modeling 1

    36/52

    Prepared by Mrs. Asma Adeel 36

    Example No. 4

  • 8/3/2019 Mathematical Modeling 1

    37/52

    Prepared by Mrs. Asma Adeel 37

    Example No. 5

  • 8/3/2019 Mathematical Modeling 1

    38/52

    Prepared by Mrs. Asma Adeel 38

    Gears

    Give Mechanicaladvantage to rotationalsystems.

    gears allow to match the

    drive system to load forappropriate mechanicalpower coupling.

    a trade between torque

    and speed

    example moving uphill

    More torque ----- lesser

    speed

    A non linearity feature

    with gears is Backlash

    Here Lossless gearsare considered wheredamping and moment

    of inertia is zero

    http://en.wikipedia.org/wiki/Image:Gears_animation.gif
  • 8/3/2019 Mathematical Modeling 1

    39/52

    Prepared by Mrs. Asma Adeel 39

    Transfer Functions for Systemswith Gears

    r1/r2 = N1/N2 = T1/T2 = 2/1

    r1 1= r2 2

    T1 1 = T2 2

    Translational energy

    of force timesdisplacement equals

    the rotationalenergy times

    angulardisplacement

  • 8/3/2019 Mathematical Modeling 1

    40/52

    Prepared by Mrs. Asma Adeel 40

    Rotational Mechanical SystemsDriven with gears

    Reflection of impedances

  • 8/3/2019 Mathematical Modeling 1

    41/52

    Prepared by Mrs. Asma Adeel 41

    Rotational MechanicalImpedances can be reflected

    through gear trains by multiplying

    the impedances by the ratioNumber of teeth of gear on

    destinationshaft

    Number of teeth of gear on

    Source Shaft

  • 8/3/2019 Mathematical Modeling 1

    42/52

    Prepared by Mrs. Asma Adeel 42

    Example No. 4

    One degree of freedom

  • 8/3/2019 Mathematical Modeling 1

    43/52

    Prepared by Mrs. Asma Adeel 43

    Cascading of Gear trains

    Equivalent Gear Ratios is the product

    of the individual gear Ratios

  • 8/3/2019 Mathematical Modeling 1

    44/52

    Prepared by Mrs. Asma Adeel 44

    Electro - mechanical

    system

    xmFext IM

    lga

    ext

    0jlg,a

    je0jlg,a

    ji

    KCL (or KVL) Newtons law

    Translation Rotation

    Here voltages are denoted by e to avoid confusion with velocities

    Electromechanical Systems

  • 8/3/2019 Mathematical Modeling 1

    45/52

    Prepared by Mrs. Asma Adeel 45

    Electromechanical Systems are Hybrid ofelectrical and mechanical systems.

    examples are

    antenna azimuth position control system

    robot controls sun and star

    trackers

    computer disk

    drive position

    controls.

  • 8/3/2019 Mathematical Modeling 1

    46/52

    Prepared by Mrs. Asma Adeel 46

    Antenna Azimuth Position control System (1)

  • 8/3/2019 Mathematical Modeling 1

    47/52

    Prepared by Mrs. Asma Adeel 47

    Antenna Azimuth Position control System (2)

    Load

    Effect of Mechanical motion and

  • 8/3/2019 Mathematical Modeling 1

    48/52

    Prepared by Mrs. Asma Adeel 48

    Effect of Mechanical motion andMagnetic field interaction with the

    magnetic fieldA current-carrying wire of

    length lplaced at right angle in a

    magnetic field B experiences a

    magnetic force F, perpendicularto the wire.

    Law of motors:

    BLiF

    Effect of Motion & Magnetic Field

  • 8/3/2019 Mathematical Modeling 1

    49/52

    Prepared by Mrs. Asma Adeel 49

    Effect of Motion & Magnetic FieldInteraction on Electrical Field

    A current-carrying wireof length L moving in amagnetic field Bat avelocity generates avoltage eacross thewire.

    Law of generators:

    x

    e = B l V

  • 8/3/2019 Mathematical Modeling 1

    50/52

    Prepared by Mrs. Asma Adeel 50

    Armature Controlled DC Servo Motor

  • 8/3/2019 Mathematical Modeling 1

    51/52

    Prepared by Mrs. Asma Adeel 51

    DC motor Driving a rotationalmechanical load

  • 8/3/2019 Mathematical Modeling 1

    52/52

    Prepared by Mrs Asma Adeel 52

    Torque-speed curves with anarmature voltage ea, as a

    parameter