Question: Write Matlab code for this problem and also explain how code is working. Process diagram State variables: Temperature Manipulated variables: Q Disturbance variable: F Dynamic

 Write Matlab code for this problem and also explain how code

Write Matlab code for this problem and also explain how code is working.

Process diagram State variables: Temperature Manipulated variables: Q Disturbance variable: F Dynamic model equations Both inlet and outlet flow rates are assumed to be equal and volume hold up is constant. Dynamic mass balance equation results in: dtdV=FiFoutSincevolumeFiFout=Fconstant:dtdV= Energy balance equation for the system is given by: Perfect mixing is assumed: Temperature in the reactor and leaving the reactor are identical VCpdtdT=CpF(TinTo)CpF(TTo)+Q On further simplification above equation results in the following form: VCpdtdT=CpF(TinT)+QdtdT=VF(TinT)+VCpQ Process parameters State variables: Temperature Manipulated variables: Q Disturbance variable: F Process diagram State variables: Temperature Manipulated variables: Q Disturbance variable: F Dynamic model equations Both inlet and outlet flow rates are assumed to be equal and volume hold up is constant. Dynamic mass balance equation results in: dtdV=FiFoutSincevolumeFiFout=Fconstant:dtdV= Energy balance equation for the system is given by: Perfect mixing is assumed: Temperature in the reactor and leaving the reactor are identical VCpdtdT=CpF(TinTo)CpF(TTo)+Q On further simplification above equation results in the following form: VCpdtdT=CpF(TinT)+QdtdT=VF(TinT)+VCpQ Process parameters State variables: Temperature Manipulated variables: Q Disturbance variable: F

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!