EBS270 Assignment 1-Finite Differences & Matlab PDPE Solved

35.00 $ 17.50 $

Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . zip solution files instantly, after Payment


Rate this product


15 1) Solve for the steady state temperature distribution within the orange using FDM. Derive matrix equations first and then write your own MATLAB code to do this problem.  Verify the FDM solution against the steady state solution obtained in HW#1.  Use the following data:


Ambient Temperature at Harvest:  26.7 °C

Storage temperature, 3 °C

Radius of the fruit = 0.036 m

Heat production due to respiration = 4.71 + 3.55 * Temperature (°C), J/(s-m3)

Fruit and rind density = 998 kg/m3

Sp. heat of fruit and rind = 3900 J/kg/˚C

Thermal conductivity of fruit = 0.47 W/m/˚C

Convective heat transfer coef. at the rind surface = 6 W/m2/˚C


15 2a) Solve the transient orange cooling problem using “pdepe” routine in MATLAB. Assume that the fruit was harvested at 26.7 ºC.  Note that the distribution of temperature at t=0 needs to be determined using “pdepe” itself[1]).   Hint:  You need to think about how to input IC for orange cooling problem.  You can start with ambient (harvest) condition (IC) and go for a long time with convective heat loss corresponding to ambient temperature (this creates IC for cold storage condition), then change convective BC to represent cold storage condition.

Compare the steady state solutions obtained using theoretical, FD in #1, and pdepe by plotting all of them on the same figure.


10 2b)  Repeat Prob#2a without making the assumption that heat of respiration is a linear function of temperature (i.e., Use Arrhenius equation for heat of respiration,


i.e, Q=Q*e RT , where Q*= 11.6*1012 J/m3,  E/R=7569 ºK.  How much does the steady state temperature distribution differ from the one obtained in #2a?  Is the linear heat source assumption reasonable?


20        3a) Derive the following forward and backward difference second order approximation to the first derivative at node  analytically:


∂φ −3φ+4φ+1 −φ+2                       3

Forward Difference:                       x=                               +O(∆x )              (1a)

x                   2∆x

∂φ φ2 −4φ1 +3φ                      3

Backward Difference:                    x=                            +O(∆x )                 (1b)

x                  2∆x



10 3b) Repeat Prob #2b assuming that there is material discontinuity between rind and the flesh.  How much does the steady state temperature distribution differ from the one obtained in #2b?  Is the assumption of homogeneity between rind and flesh (i.e., same thermal conductivity for flesh and rind) reasonable?   Use following data for the rind:


Thickness of the rind is 0.003 m;

Thermal conductivity of the rind is 0.23 W/m2/ºC


5 3c) Determine the amount of heat that should be removed after the fruit reaches steady state for the case given in 3b above.  How does this amount compare with the analytically estimated amount in HW#1?


Hint:  Heat that needs to be removed during cold storage under steady condition can be determined by knowing the temperature of the last node at steady state and evaluating the convective heat loss for transient problems.


15 3d) Estimate the amount of heat that needs to be removed for cooling the orange from the harvest condition to cold storage condition.   How does this amount differ from the one obtained in HW#1.


Hint:  Heat removed during cooling can be determined by knowing the temperature of the last node on the rind with time and evaluating the convective heat loss for the transient problem.



30              4) Solve the bioreactor problem (Prob#3, HW#2) using pdepe.   Refer to Example #2 in the “pdepe” document. You can use “help” feature of MATLAB to get this information.


Remember that the growth of A. niger follows the following growth equation:



                                     dX                      X 

=µmaxX 1     (3a) dt Xmax


                                           dt    =a dt + bX



                                        d[mCO2]  dX          


where,             µmax =           E      , Maximum growth rate[2]


(Saucedo-Costaneda et al[3]., 1990).

X      = Concentration of the microorganism

Xmax= Maximum biomass concentration that depends on

temperature, expressed as fraction of dry matter

Tabs = Absolute temperature

A=2.694*1011  (1/h)


Ea1=70,225 J/(g-mole)

Ea2=283,356 J/(g-mole)  R = 8.31447 J/(mol-°K)  a     =  0.37 g–CO2/cc-S  b     =  0.41●10-5 g-CO2/(cc-S h)  mCO2    = mass of CO2 per unit volume of substrate, S4.

Moreover, respiration which leads to CO2 generation is given by:


                                        C6H12O6 +6O2 =6CO2 +6H2O+Q                              (3c)

where Q = 674 Kcal/mole of glucose.


Use coupled pdes (both X and T) and solve the nonlinear problem.

X                        X  1 ∂        ∂X                                                     (4)

maxX 1−         +        k1r     

t                     Xmax r r        ∂r

-4             when t=0 and ∂X = 0 at both  r=0 and r= 6 cm. with X=8.74●10 g/g-DM.


T 1 ∂  ∂T       (5) ρCp  = Q + k2r

t            r r       ∂r

with T=25°C at t=0  and BCs are given by:



= 0                        at r=0



and                   −k2   =h(T T)                at r= 3 cm




Note that f1 = k =0 in equation (5)!



Note that Xmax should be a fraction (not percent) when you use in pdepe.  SaucedoCastaneda et. al .(1990) give following expression for Xmax:


Xmax = (−127.08+ 7.95T− 0.016T 2 − 4.03•103T 3 + 4.73•105T 4)/100                  (6)


For  30 °C < T < 45 °C

Use following data:

k2 = 18 cal/(cm °C h)                                      h = 10.14  cal/(cm2 °C h)                      ρ  = 0.7 gm/cm3                                  Cp = 4.19 cal/(g °C)


If you need additional data please refer Saucedo-Costaneda et al(1990).



Figure 1.  A flexiglass, cylindrical bioreactor of radius 6 cm and height 35 cm with a water jacket that is maintained at 35 ºC.

[1] You could use your analytical solution for this purpose.  However, when you go to problem #2b, you will need numerically obtained IC.

[2] Note that (E/RT) has no units.  As long as E, R, and T are in consistent units, you do not need to convert them to some other units.

[3] Saucedo-Castaneda, G., M. Gutierrez-Rojas, G. Bacquet, M. Raimbault, and Viniegra-Gonzalez.  1990.

Heat transfer simulation in solid substrate fermentation. Biotechnology and Bioengineering.35:802-808. 4 This is given in terms of unit volume of substrate after appropriately accounting for the density of substrate.