CHEE319 Notes 2012 Lecture2

download CHEE319 Notes 2012 Lecture2

of 32

Transcript of CHEE319 Notes 2012 Lecture2

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    1/32

    1

    Dynamic Process ModelingDynamic Process Modeling

    Process Dynamics and ControlProcess Dynamics and Control

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    2/32

    2

    Process ModelingProcess Modeling

    !! Description of process dynamicsDescription of process dynamics

    "" Classes of modelsClasses of models

    "" What do we need for control?What do we need for control?

    !! Modeling for controlModeling for control"" Mechanical Systems ModelingMechanical Systems Modeling

    "" ElectricalElectricalcircuits and electrochemical systemscircuits and electrochemical systems

    "" Fluid and heat flow modelsFluid and heat flow models

    !! Brief intro toBrief intro toMatlabMatlab andand SimulinkSimulink tools (Tutorials 1 and 2)tools (Tutorials 1 and 2)

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    3/32

    3

    Process ModelingProcess Modeling

    ! Motivation:

    " Develop understanding of process

    #a mathematical hypothesis of process mechanisms

    " Match observed process behavior

    #useful in design, optimization and control of processes

    ! Control:

    " Interested in description of process dynamics

    #Dynamic model is used to predict how process responds to giveninput

    #Tells us how to react

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    4/32

    4

    Process ModelingProcess Modeling

    What kind of model do we need?

    ! Dynamic vs. Steady-state (Static)

    " Steady-state (Static)

    #Variables not a function of time

    #useful for design calculation

    "Dynamic

    #Variables are a function of time

    #Control requires dynamic model

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    5/32

    5

    Process ModelingProcess Modeling

    ! Dynamic vs. Steady-state

    ! Step change in input to observe

    " Starting at steady-state, we made a step change

    " The system oscillates and finds a new steady-state

    "Dynamics describe the transient behavior

    0 50 100 150 200 250 30040

    45

    50

    55

    60

    65

    Output

    Time

    Steady-State 1

    Steady-State 2

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    6/32

    6

    Process ModelingProcess Modeling

    What kind of model do we need?

    ! Experimental vs Theoretical

    " Experimental

    #Derived from tests performed on actual process

    #Simpler model forms

    #Easier to manipulate

    " Theoretical

    #Application of fundamental laws

    #more complex but provides understanding

    #Required in design stages

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    7/32

    7

    Process ModelingProcess Modeling

    ! Empirical vs. Mechanistic models" Empirical Models

    #only local representation of the process

    (no extrapolation)

    #model only as good as the data

    "Mechanistic Models#Rely on our understanding of a process

    #Derived from first principles

    #Observing physical laws

    #Useful for simulation and exploration of new operating

    conditions#May contain unknown constants that must be estimated

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    8/32

    8

    Process ModelingProcess Modeling

    ! Empirical vs Mechanistic models

    " Empirical models

    #do not rely on underlying mechanisms

    #Fit specific function to match process

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    9/32

    9

    Process ModelingProcess Modeling

    ! Mechanistic modeling procedure

    " Identify modeling objectives

    #end use of model (e.g. control)

    "Apply fundamental physical and chemical laws

    #Mass, Energy and/or Momentum balances"Make appropriate assumptions (Simplify)

    #ideality (e.g. isothermal, adiabatic, ideal gas, no friction,

    incompressible flow, etc,)

    "Develop the model equations

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    10/32

    10

    Process ModelingProcess Modeling

    ! Modeling procedure

    " Check model consistency

    #do we have more unknowns than equations

    "Determine unknown constants

    #e.g. friction coefficients, fluid density and viscosity" Solve model equations

    #typically nonlinear ordinary (or partial) differential equations

    #initial value problems

    " Check the validity of the model

    #compare to process behavior

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    11/32

    11

    Process ModelingProcess Modeling

    ! For control applications:

    " Modeling objectives is to describe process dynamics based on thelaws of conservation of mass, energy and momentum

    ! The balance equation

    1. Mass Balance

    2. Energy Balance

    3. Momentum Balance (Newtons Law)

    Rate of Accumulation

    of fundamental quantity

    Flow

    In

    Flow

    Out

    Rate of

    Production

    = -

    +

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    12/32

    12

    Process ModelingProcess Modeling

    ! Application of a mass balance

    Holding Tank

    ! Modeling objective: Control of tank level

    ! Fundamental quantity: Mass

    ! Assumptions: Incompressible flow

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    13/32

    13

    Process ModelingProcess Modeling

    Total mass in systemTotal mass in system

    Flow inFlow in

    Flow outFlow out

    !! Balance equation:Balance equation:

    "" For constant densityFor constant density

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    14/32

    14

    Process ModelingProcess Modeling

    !! TakingTakingLaplaceLaplace transformtransform

    !! If the outlet flowIf the outlet flowis zero ( )is zero ( )

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    15/32

    15

    Process ModelingProcess Modeling

    !! Interesting parallel with capacitorInteresting parallel with capacitor

    "" Holding tank (assumeHolding tank (assume ))

    "" CapacitorCapacitor

    "" Dynamics of both systemsDynamics of both systemsare equivalentare equivalent

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    16/32

    16

    Process ModelingProcess Modeling

    ! Energy balance

    Objective: Control tank temperature

    Fundamental quantity: Mass and Energy

    Assumptions: Incompressible flow

    Constant hold-up

    Constant mean pressure

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    17/32

    17

    Process ModelingProcess Modeling

    ! Under constant hold-up and constant density

    "Mass balance equation

    #Total Mass

    #Mass In

    #Mass Out

    " Constant volume

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    18/32

    18

    Process ModelingProcess Modeling

    !! Under constant hold-up and constant mean pressureUnder constant hold-up and constant mean pressure

    changeschanges

    "" Energy Balance leads to an enthalpy balanceEnergy Balance leads to an enthalpy balance

    "" Inlet EnthalpyInlet Enthalpy

    "" Outlet EnthalpyOutlet Enthalpy

    "" Heat flow to the systemHeat flow to the system

    ""

    WorkWorkdone on systemdone on system"" Total enthalpy in the systemTotal enthalpy in the system

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    19/32

    19

    Process ModelingProcess Modeling

    After substitution,with fixed and assuming constant

    Divide by

    "Heat input from a hot (or cold source) at temperature

    where is a heat-transfer coefficient

    is the effective area for heat transfer

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    20/32

    20

    Process ModelingProcess Modeling

    !! Modeling heat inputModeling heat input

    "" Heat input isHeat input isproportional to the difference in temperatureproportional to the difference in temperature

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    21/32

    21

    Process ModelingProcess Modeling

    Assume F is fixed then the ODE is linear, use Laplace

    Transforms

    where is the tank residence time (or time constant)

    Isolating and solving for gives

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    22/32

    22

    Process ModelingProcess Modeling

    If F changes with time then the differential equation does not

    have a closed form solution.

    Products and makes this differentialequation nonlinear.

    Solution will need numerical integration.

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    23/32

    23

    Process ModelingProcess Modeling

    ! Gravity tank

    Objectives:Objectives: height of liquid in tank

    Fundamental quantity:Fundamental quantity: Mass, momentum

    Assumptions:Assumptions:

    " Outlet flow is driven by head of liquid in the tank

    " Incompressible flow" Plug flow in outlet pipe

    " Turbulent flow

    h

    L

    F

    Fo

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    24/32

    24

    Process ModelingProcess Modeling

    From mass balance and Newtons law,

    Asystemofsimultaneousordinary differential equations results

    Linear or nonlinear?

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    25/32

    25

    Solution ofSolution of ODEsODEs

    ! Mechanistic modeling results in (sets of) nonlinear ordinary

    differential equations

    ! Solution requires numerical integration

    ! To get solution, we must first:

    " specify all constants

    " specify all initial conditions

    " specify types of perturbations of the input variables

    For the heated stirred tank,

    " specify

    " specify

    " specify

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    26/32

    26

    Input SpecificationsInput Specifications

    ! Study of control system dynamics

    "Observe the time response of a process output inresponse to input changes

    ! Focus on specific inputs

    1. Step input signals

    2. Ramp input signals

    3. Pulse and impulse signals

    4. Sinusoidal signals

    5. Random (noisy) signals

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    27/32

    27

    Common Input Signals

    1. Step Input Signal: a sustained instantaneous change

    e.g. Unit step input introduced at time 1

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    28/32

    28

    Common Input SignalsCommon Input Signals

    2. Ramp Input: A sustained constant rate of change

    e.g. Ramp input at time t=1

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    29/32

    29

    Common Input SignalsCommon Input Signals

    3. Pulse: An instantaneous temporary changee.g. Fast pulse (unit impulse) at t=1

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    30/32

    30

    Common Input SignalsCommon Input Signals

    3. Pulses:

    e.g. Rectangular Pulse

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    31/32

    31

    Common Input SignalsCommon Input Signals

    4. Sinusoidal input, e.g.

  • 8/12/2019 CHEE319 Notes 2012 Lecture2

    32/32

    32

    Common Input SignalsCommon Input Signals

    5. Random Input, e.g. white noise