process dynamics and control · 2018-07-25 · dynamic process modeling process dynamics and...

32
1 Dynamic Process Modeling Dynamic Process Modeling Process Dynamics and Control Process Dynamics and Control

Upload: tranduong

Post on 05-Aug-2018

249 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

1

Dynamic Process ModelingDynamic Process Modeling

Process Dynamics and ControlProcess Dynamics and Control

Page 2: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

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 ElectricalElectrical circuits and electrochemical systemscircuits and electrochemical systems Fluid and heat flow modelsFluid and heat flow models

Brief intro toBrief intro to Matlab Matlab and and Simulink Simulink tools (Tutorials 1 and 2)tools (Tutorials 1 and 2)

Page 3: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

3

Process ModelingProcess Modeling

Motivation:

Develop understanding of processa mathematical hypothesis of process mechanisms

Match observed process behavioruseful in design, optimization and control of processes

Control:

Interested in description of process dynamicsDynamic model is used to predict how process responds to given

inputTells us how to react

Page 4: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

4

Process ModelingProcess Modeling

What kind of model do we need?

Dynamic vs. Steady-state (Static)

Steady-state (Static)Variables not a function of timeuseful for design calculation

DynamicVariables are a function of timeControl requires dynamic model

Page 5: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

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-stateDynamics describe the transient behavior

0 50 100 150 200 250 30040

45

50

55

60

65

Output

Time

Steady-State 1

Steady-State 2

Page 6: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

6

Process ModelingProcess Modeling

What kind of model do we need?

Experimental vs Theoretical

ExperimentalDerived from tests performed on actual processSimpler model formsEasier to manipulate

TheoreticalApplication of fundamental lawsmore complex but provides understandingRequired in design stages

Page 7: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

7

Process ModelingProcess Modeling

Empirical vs. Mechanistic models Empirical Models

only local representation of the process(no extrapolation)

model only as good as the dataMechanistic Models

Rely on our understanding of a processDerived from first principlesObserving physical lawsUseful for simulation and exploration of new operating

conditionsMay contain unknown constants that must be estimated

Page 8: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

8

Process ModelingProcess Modeling

Empirical vs Mechanistic models Empirical models

do not rely on underlying mechanismsFit specific function to match process

Page 9: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

9

Process ModelingProcess Modeling

Mechanistic modeling procedure

Identify modeling objectivesend use of model (e.g. control)

Apply fundamental physical and chemical lawsMass, 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

Page 10: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

10

Process ModelingProcess Modeling

Modeling procedure

Check model consistencydo we have more unknowns than equations

Determine unknown constantse.g. friction coefficients, fluid density and viscosity

Solve model equationstypically nonlinear ordinary (or partial) differential equationsinitial value problems

Check the validity of the modelcompare to process behavior

Page 11: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

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 Balance2. Energy Balance3. Momentum Balance (Newton’s Law)

Rate of Accumulationof fundamental quantity

FlowIn

FlowOut

Rate ofProduction

= -

+

Page 12: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

12

Process ModelingProcess Modeling

Application of a mass balanceHolding Tank

Modeling objective: Control of tank level

Fundamental quantity: Mass

Assumptions: Incompressible flow

Page 13: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

13

Process ModelingProcess Modeling

Total mass in systemTotal mass in systemFlow inFlow inFlow outFlow out

Balance equation:Balance equation:

For constant densityFor constant density

Page 14: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

14

Process ModelingProcess Modeling

TakingTaking Laplace Laplace transformtransform

If the outlet flowIf the outlet flow is zero ( )is zero ( )

Page 15: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

15

Process ModelingProcess Modeling

Interesting parallel with capacitorInteresting parallel with capacitor Holding tank (assumeHolding tank (assume ))

CapacitorCapacitor

Dynamics of both systemsDynamics of both systems are equivalentare equivalent

Page 16: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

16

Process ModelingProcess Modeling

Energy balance

Objective: Control tank temperatureFundamental quantity: Mass and EnergyAssumptions: Incompressible flow

Constant hold-upConstant mean pressure

Page 17: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

17

Process ModelingProcess Modeling

Under constant hold-up and constant densityMass balance equation

Total Mass Mass In Mass Out

Constant volume

Page 18: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

18

Process ModelingProcess Modeling

Under constant hold-up and constant mean pressureUnder constant hold-up and constant mean pressurechangeschanges 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 WorkWork done on systemdone on system Total enthalpy in the systemTotal enthalpy in the system

Page 19: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

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 coefficientis the effective area for heat transfer

Page 20: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

20

Process ModelingProcess Modeling

Modeling heat inputModeling heat input

Heat input isHeat input is proportional to the difference in temperatureproportional to the difference in temperature

Page 21: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

21

Process ModelingProcess Modeling

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

where is the tank residence time (or time constant)

Isolating and solving for gives

Page 22: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

22

Process ModelingProcess Modeling

If F changes with time then the differential equation does nothave a closed form solution.

Products and makes this differentialequation nonlinear.

Solution will need numerical integration.

Page 23: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

23

Process ModelingProcess Modeling

Gravity tank

Objectives:Objectives: height of liquid in tankFundamental quantity:Fundamental quantity: Mass, momentumAssumptions: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

Page 24: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

24

Process ModelingProcess Modeling

From mass balance and Newton’s law,

A system of simultaneous ordinary differential equations results

Linear or nonlinear?

Page 25: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

25

Solution of Solution of ODEsODEs

Mechanistic modeling results in (sets of) nonlinear ordinarydifferential 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

Page 26: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

26

Input SpecificationsInput Specifications

Study of control system dynamicsObserve the time response of a process output in

response to input changes

Focus on specific inputs

1. Step input signals2. Ramp input signals3. Pulse and impulse signals4. Sinusoidal signals5. Random (noisy) signals

Page 27: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

27

Common Input Signals

1. Step Input Signal: a sustained instantaneous change

e.g. Unit step input introduced at time 1

Page 28: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

28

Common Input SignalsCommon Input Signals

2. Ramp Input: A sustained constant rate of changee.g. Ramp input at time t=1

Page 29: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

29

Common Input SignalsCommon Input Signals

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

Page 30: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

30

Common Input SignalsCommon Input Signals

3. Pulses:e.g. Rectangular Pulse

Page 31: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

31

Common Input SignalsCommon Input Signals

4. Sinusoidal input, e.g.

Page 32: Process Dynamics and Control · 2018-07-25 · Dynamic Process Modeling Process Dynamics and Control. 2 Process Modeling Description of process dynamics ... Solution of ODEs

32

Common Input SignalsCommon Input Signals

5. Random Input, e.g. white noise