Question: Q 3 . You are required to write a Scilab function with the header DetectorResponse ( spr _ vertical _ distance, spr _ radius _

Q3. You are required to write a Scilab function with the header
DetectorResponse(spr_vertical_distance, spr_radius_distance,
spr_act_temp, spr_RTI, fire_class, room_amb_temp) to estimate the
activation time of the detector/sprinkler (T_(D,t)) and required heat release rate to activate the detector/sprinkler. The Scilab function DetectorResponse shall be able to
(1) Plot the t-square growth fire curve till the activation of the detector/sprinkler;
(2) Plot the detector/sprinkler temperature (T_(D,t)), ceiling jet temperature (T_(jet,t)) varying with time till the activation of the detector/sprinkler; and
(3) Save the iteration results for all the variables including Q_(t)^(),v_(jet,t),\tau ,T_(jet,t) and T_(D,t) to a text file named as "output.txt" at the end of the simulation.
The following equations are used to calculate the thermal response of a detector or sprinkler located at or near a ceiling whose area is large enough to neglect the effects of smoke layer development. When the detector or link temperature reaches its activation temperature, then the detector will be activated.
The rate of temperature rise of the detector response is modelled by
TD,t+t-TD,tt=(Tjet,t+t-TD,t)(1-e-1)+(Tjet,t+t-Tjet,t)(e-1+1-1)
Where
=RTIvjett2
vjett={0.95(Qtz)13,forrz0.15
0.2Qt?13z12r56, for rz>0.15
Tjet,t={T+16.9Qt?23z53,forrz0.18
T+5.38z(Qtr)23, for rz>0.18
Qt, Total theoretical fire heat release rate at time t(kW)
r, Radial distance of the detector/sprinkler from the vertical axis of the fire (m)
RTI Response Time Index of detector/sprinkler
Tjet,t+t, Temperature of the jet at the next time step, t+t(C)
Tjet,t, Temperature of the jet at the previous time step, t(C)
T, Ambient space and initial detector/sprinkler temperature (C)
TD,t, Detector or sprinkler temperature at time, t(C)
Tactivation, Detector or sprinkler activation temperature, t(C)
vjet,t, Velocity of the ceiling jet gases at the time step, t(ms)
Z
Vertical entrainment distance; the difference between the height of the ceiling
and the base of the flames (m)
Qpeak=*T2
Assume the fire will develop as a t-square growth fire.
Four fire classes named as "U"- ultra-fast, "F"- fast, "M"-
medium and "S"- slow will be considered. The fire growth
rate table is summarized at the right table.
Ultra-fast=0.1876
Fast=0.0469
Medium=0.0117
Slow=0.0029
 Q3. You are required to write a Scilab function with the

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!