bsyse595 lecture basic modeling approaches for engineering systems – summary and review shulin...

36
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Upload: linette-ramsey

Post on 29-Dec-2015

215 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

BsysE595 Lecture Basic modeling approaches for engineering systems

– Summary and Review

Shulin ChenJanuary 10, 2013

Page 2: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Topics to be covered

• Review basic terminologies on mathematical modeling

• Steps for model development• Example: modeling a bioreactor

Page 3: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Definition

• Modeling – The process of application of fundamental knowledge or

experience to simulate or describe the performance of a real system to achieve prediction goals.

• Mathematical modeling – Using fundamental theories and principles governing the

systems along with simplifying assumptions to derive mathematical relationships between the variable known of significant.

– The resulting model can be calibrated using historical data from the real system and can be validated using additional data. Predictions can them be made with predefined confidence

Page 4: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Types of models

• Deterministic versus probabilistic – Variables and their changes are well defined with

certainty, the relationship between the variables are fixed, then the model is said to be deterministic; If some unpredictable randomness or probabilities are associated with at least one of the variable of the outcomes, the model is considered probabilistic.

Page 5: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Types of models

• Continuous versus discrete– When the variables in a system are continuous

functions of time, the model is continuous (using differential equations); If the changes in the variables occur randomly or periodically, the modeling is termed discrete (using difference equations).

Page 6: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Static versus Dynamic

• When a system is at a steady state, its inputs and outputs do not vary with passage of time and are average values, the model is known as static or steady-state. The results of the model are obtained by a single computation of all of the equation. When the system behavior is time-dependent, its model is called dynamic. Dynamic models are built with differential equations that yield solutions in the form of functions.

Page 7: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Distributed versus lumped

• When the variations of the variable in a system are continuous functions of time and space, the system has to be modeled by a distributed model; If the variable does not change with space, it is referred as a lumped model. Lumped models are often built of algebraic equations, lumped, static models are often built of ordinary differential equations, distributed models are often built of partial differential equations.

Page 8: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Linear versus nonlinear

• When an equation contains only one variable in each term and each variable appears only to the first power, the equation is termed linear, if not, it is termed non-linear.

Page 9: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Analytical versus numerical

• When all the equations can be solved algebraically to yield a solution in a close form, the can be classified as analytical. If that is not possible, and a numerical procedure is required to solve one or more of the model equations, the model is classified as numerical.

Page 10: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Terminologies

• Variables– The quantitative attributes of the system and of

the surroundings that have significant impact on the system

– Variables include those attributes that change in value during the modeling time span and those that are remain constant during the period. Variables that are constant during the period are referred to as parameters

Page 11: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Terminologies

• Input– Variables that are generated by surroundings and

influence the behavior of the system • Output– Variables that are generated by the system and

influence the behavior of the surroundings

Page 12: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Definition and terminology in mathematical modeling

• System– A collection of one or more relate objects

• Boundary– The system is isolated from its surroundings by the

boundary, which can be physical or imaginary• Close system– When the system does not interact with

surroundings– Neither mass nor energy will cross the boundary

Page 13: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

System Modeling

• Systems modeling approach– Definition of systems– System design – Systems modeling • Optimization • Control

Page 14: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Biological modeling approach

– Open system – Growth and transformation – Network – Flux– Regulation and control

Page 15: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Engineering modeling approach

• Principle of conservation– Mass balances • Mass transport

– Flow– Diffusion

• Transformation• Energy balances

Page 16: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Steps of model development

• Problem formulation• Mathematical representation• Checking for validity • Mathematical analysis• Interpretation and evaluation of results

Page 17: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Problem formulation

• Establishing the goal of the modeling effort• Characterize the system– Identifying the system and its boundary– Identify the significant and relevant variables and

parameters– Establish how, when, where, and at what rate the

system interact with its surroundings– Create graphic model

• Simplifying and idealizing the system

Page 18: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Mathematical Representation• Identifying fundamental theories that govern the system

behaviors– Stoichiometry– Conservation of mass and energy– Reaction theory– Reactor theory– Transport mechanisms.

• Deriving relationships– Apply and integrate the theories and principles to derive

relationships between the variables of significance and relevance• Standardizing relationships

– Simplifying, transforming, normalizing, or forming dimensionless groups.

Page 19: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Check for Validity

• Check for units and dimensions– Make sure all terms in both sides of the equation

have the same unit or dimension;• Check for extreme conditions – Assign extreme values to some variables • Give them infinitely large values • Give them infinitely small values • Make them zero

Page 20: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Mathematical Analysis

• Applying standard mathematical techniques ad procedures to “solve” the model to obtain the desirable solutions.

Page 21: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Interpretation and evaluation of results

• Calibrating the model – using observed data from the real system

• Sensitivity analysis– Check system response with changes in selected

variables• Validating the model– Assure mass balance closed– Compare model output with hand calculations– Using a test data set

Page 22: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Example: Modeling a Bioreactor

Page 23: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Step 1. Problem formulation

CCC,V,X, k

Q, Ci Q, Co

Page 24: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Step 2: Mathematical representation

A

∆x

u

C,r

Page 25: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Mass balance

Rate of accumulation of mass within the system boundary = rate of flow of mass into the system boundary - rate of flow of mass out of the boundary + rate of generation within the system boundary

Page 26: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Mass transfer terms - advection

• Advection in which the amount of the mass transported through a flow is the multiplication of the flow rate and the concentration,

• Transport by advection = AuCWhere • A = the cross sectional area, m2• u = average pore velocity, m/d• C = mass concentration of the contaminant, g/m3

Page 27: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Mass transfer terms – dispersion including diffusion

• Dispersion, the longitudinal transport of material due to turbulence and molecular diffusion. Dispersion is driven by the concentration gradient of the substances. There are typically two components that contribute to dispersion. The first is molecular diffusion when the mean flow velocity is very low, and the second component is caused by eddy effect when the liquid particles do not travel at the same speed under a real (non-ideal) flow condition. It becomes a common practice in transport modeling to lump the dispersion and diffusion together, to be represented by a dispersion coefficient. Thus,

• • Transport by dispersion = (5.2.2)• • The reaction rate in the reactor, r, expressed as mass reduction in unit time

and unit volume:• Substrate reaction rate = r (g/m3-d)

x

CDA

Page 28: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Basic Equation

• Substituting all the terms into the mass balance equation, we obtain

xrAx

CADuAC

x

CADuACxA

t

C

xxx

Page 29: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

The model

• When x0, the above equation can be reduced to

rx

Cu

x

CD

t

C

2

2

Page 30: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

The reaction term• The reaction rate, r, can be represented by kinetics. Kinetics is typically

described by different orders, which are determined by the exponent of the term that represents the constituent involved. If a first order reaction is appropriate. Accordingly:

• •

• • where r = reaction rate (or reaction rate), g/m3.d,• C = concentration of the substrate, g/m3,• t = time, d,• KT= reaction rate constant at a given temperature T, d-1.

CKr T

Page 31: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Step 3: Checking for validity

rx

Cu

x

CD

t

C

2

2

Check for units

Page 32: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Step 4: Mathematical analysis- A steady-state condition

0

2

2

CKx

Cu

x

CD T

)2

exp()1()2

exp()1(

)2

exp(4

22

D

auLa

D

auLa

D

uLa

C

C

o

e

Page 33: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Step 5: Interpretation and evaluation of results

Page 34: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

A plug flow reactor

Page 35: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

Plug-flow • If the dispersion in a reactor is negligible, equation becomes • •

• • Integration of the above equation • •

• resulting in•

• Where:• Ci = influent concentration, g/m3 (mg/l)• Co = effluent concentration, g/m3 (mg/l)• KT = reaction rate constant, d-1• h = Hydraulic detention time, d.

0 CKx

Cu T

L C

c

Te

dCC

Kudx

0 0

hTT Ku

LK

i

o eeC

C

Page 36: BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013

For a completely mixed reactor

CC

C,V,X, k

Q, Ci Q, Co

rCeCoQdt

dC )(