Week 2
Week 2
Week 2
Sayantan Dutta
Logistics of course
• From next week onwards, the attendance will be biometric.
• Please register for biometric attendance at the
corresponding office near LA 202.
5 Wikimedia
Mathematical models: Observation to Prediction
observation quantitative models prediction
m1m2
F=G 2
r
6 Wikimedia
Mathematical models: Observation to Prediction
observation quantitative models prediction
m1m2
F=G 2
r
7 Wikimedia
Some quotes on process modeling
Disturbance Unmeasured
variable Output
Process
Manipulated
variable Measured
Output
Controller
Fout = Fh + Fc
Fout FhTh + FcTc
Tout Tout =
Fh + Fc
Fh Fc
Th Tc
i
Fi, CA
A→B
F, CA
First Principle Models
•Conservation Equation:
Rate of
accumulation = Rate of
in flow
− Rate of
out flow
+ Generation-
Consumption
Conservation of Mass:
i
Fi, CA dV
= Fi − F
dt
A→B Conservation of species:
d(VCA) i
= FiCA − FCA − VrA(CA)
F, CA
dt
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
· dT ·
• Transport rates: Q = kA ; Q = UA(T − Tamb)
dx
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
· dT ·
• Transport rates: Q = kA ; Q = UA(T − Tamb)
dx
• Reaction rates: rA = kCA
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
· dT ·
• Transport rates: Q = kA ; Q = UA(T − Tamb)
dx
• Reaction rates: rA = kCA
• Phase equillibrium: PA = P0xA
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
· dT ·
• Transport rates: Q = kA ; Q = UA(T − Tamb)
dx
• Reaction rates: rA = kCA
• Phase equilibrium: PA = P0xA
2
an
• Equation of states : PV = nRT; (P + )(V − nb) = nRT
V2
First Principle Models
•Constitutive Equations: Physical/Chemical properties of
material
· dT ·
• Transport rates: Q = kA ; Q = UA(T − Tamb)
dx
• Reaction rates: rA = kCA
• Phase equilibrium: PA = P0xA
2
an
• Equation of states : PV = nRT; (P + )(V − nb) = nRT
V2
• Material properties: σxx = Eϵxx
Is this a conservation or constitutive equation?
Both!!!!
Is this a conservation or constitutive equation?
Property of a incompressible
dvx dvy
[ dy dx ]
τyx = − μ + & . . . , ρ = const . Newtonian fluid:
Constitutive equation
First principle models: Disasdvantange
x y
Input Process Output
y = 2x + 0.1
Problem with black box models
y = 1.2x − 0.28
Actual model:
2
y = x + 0.05
y = 1.2x − 0.28
The fit performs badly in the range outside where the model was fit.
Problem with black box models
Actual model:
2
y = x + 0.05
y = 1.2x − 0.28
You shouldn’t design for a situation, which you haven’t measured with a black box model.
Neural networks are black box models
Dog
Cat
Lion
Bird
Set of pixels
Degrees of freedom
x+y=4 x+y=4 x+y=4
x−y=2 x−y=2 2 variables,
1 equation,
2 variables, 2x − 2y = 4 Infinitely many solutions
2 equations, Repetitive equation
Solutions exactly known x = 3,y = 1
x+y=4
x−y=2
2x − 2y = 6
No possible values of x, y
2 variables,
3 equations,
Degrees of freedom
x+y=4 x+y=4 x+y=4
x−y=2 x−y=2 2 variables,
1 equation,
2 variables, 2x − 2y = 4 Infinitely many solutions
2 equations, Repetitive equation
Solutions exactly known x = 3,y = 1
x+y=4
x−y=2
2x − 2y = 6
No possible values of x, y
2 variables,
3 equations,
Degrees of freedom
Degrees of
freedom = Number of
variables
− Number of
Equations
Degrees of freedom
x+y=4 x+y=4 x+y=4
x−y=2 x−y=2 2 variables,
1 equation,
2 variables, 2x − 2y = 4 Infinitely many solutions
2 equations, Repetitive equation
Solutions exactly known x = 3,y = 1 DOF=1
x+y=4
x−y=2
DOF=0
2x − 2y = 6
No possible values of x, y
DOF=-1
Degrees of freedom
i
Fi, CA
A→B
F, CA
dV
= Fi − F
dt
i
Fi, CA
d(VCA) i
= FiCA − FCA − kVCA
dt
A→B
i
Variables: Fi, CA, F, V, CA
Equations: 2
F, CA DOF: 5-2=3
dV
= Fi − F
dt
i
Fi, CA
d(VCA) i
= FiCA − FCA − kVCA
dt
A→B
F = kc(V − Vsp)
i
Variables: Fi, CA, F, V, CA
F, CA Equations: 3
DOF: 5-3=2
Space (i.e. x, y, z) and time (t) are part of the reference frame.
They don’t vary as the part of the process.
Consider degree of freedom in other context (such as Thermodynamics/Stat Mech)
Practice problems
Problem 1
• System of 2 CSTRs
• First order reaction with constant rate k.
• Flow rates are volumetric.
• F1 and F2 are proportional to respective
height of the tank
• Density of the liquid constant.
Problem 1