You are on page 1of 7

Function Coeff_Discharge(PSV_RD As Variant)

'condition for effective coeficient of dicharge

If PSV_RD = "PSV" Then

Coeff_Discharge = 0.975

Else:

Coeff_Discharge = 0.62

End If

End Function

Function Combinatn_factor(A17 As Variant)

'Combination factor

If A17 = "PSV and RD are not in combination" Then

Combinatn_factor = "1"

Else:

Combinatn_factor = "0.9"

End If

End Function

Function Over_pressure_kpag(A23, A18 As Variant)

'over pressure in kpag

Over_pressure_kpag = A23 * A18 / 100

End Function

Function releiving_pressure_kpaa(A23, A36 As Variant)

'Releiving pressure kpaa

releiving_pressure_kpaa = A23 + A36 + 101.325

End Function

Function C_value(A19 As Variant)

'Value of C

C_value = 0.03948 * (A19 * (2 / (A19 + 1)) ^ ((A19 + 1) / (A19 - 1))) ^ 0.5

End Function

Function Pressure_kpaa(A37, A20 As Variant)


'Value of Pressure

Pressure_kpaa = A37 * A20

End Function

Function Condn_1(A39, A24 As Variant)

'Critical and sub critical flow condition

If A39 > (A24 + 101.325) Then

Condn_1 = "Flow is Critical"

Else:

Condn_1 = "Flow is Sub-Critical"

End If

End Function

Function Total_backpresuure(A24, A25 As Variant)

'Total backpressure in kpaa

Total_backpresuure = A24 + A25 + 101.325

End Function

Function Value_r(A40, A41, A37 As Variant)

'Value of r (P2/P1)

If A40 = "Flow is Critical" Then

Value_r = ""

Else:

Value_r = A41 / A37

End If

End Function

Function F2_value(A40, A19, A42 As Variant)

'value of f2 for sub critical flow

If A40 = "Flow is Critical" Then

F2_value = ""

Else:

F2_value = (((A19 / (A19 - 1) * (A42) ^ (2 / A19) * (1 - (A42) ^ ((A19 - 1) / A19)) / (1 - A42))) ^ 0.5)

End If

End Function
Function Calculated_area(A21, A38, A34, A37, A28, A35, A22, A26, A27, A43, A41, A40 As Variant)

'Calculated orifice area

If A40 = "Flow is Critical" Then

Calculated_area = ((A21 / A38 / A34 / A37 / A28 / A35) * ((A22 + 273.15) * A26 / A27) ^ 0.5)

Else:

Calculated_area = ((17.9 * A21 / A43 / A34 / A35 * (A26 * (A22 + 273.15) / (A27 * A37 * (A37 - A41))) ^
0.5))

End If

End Function

Function Area_inch2(A44 As Variant)

Area_inch2 = A44 / (25.4) ^ 2

End Function

Function Orifice_size(A45 As Variant)

'selection of orifice designation from API 526

If A45 < 0.11 Then

Orifice_size = "D"

ElseIf A45 > 26 Then

Orifice_size = "Non standard size"

Else:

Orifice_size = WorksheetFunction.Index(Range("AC38:AC53"), 2 +
WorksheetFunction.Match(Range("A45"), Range("AD38:AD53")) +
(WorksheetFunction.Lookup(Range("A45"), Range("AD38:AD53")) <> Range("A45")))

End If

End Function

Function Selected_orifice_area(A46 As Variant)

'Selected orifice area from API 526

If A46 = "Non standard size" Then

Selected_orifice_area = "NA"

Else:

Selected_orifice_area = WorksheetFunction.VLookup(A46, Range("AC38:AD52"), 2, True)

End If

End Function
Function ratio_1(A45, A47 As Variant)

ratio_1 = A45 / A47

End Function

Function Display_critical(A21, A38, A34, A37, A28, A35, A22, A26, A27 As Variant)

Display_critical = ((A21 / A38 / A34 / A37 / A28 / A35) * ((A22 + 273.15) * A26 / A27) ^ 0.5)

End Function

Function Display_subcritical(A21, A38, A34, A37, A28, A35, A22, A26, A27, A43, A41 As Variant)

Display_subcritical = ((17.9 * A21 / A43 / A34 / A35 * (A26 * (A22 + 273.15) / (A27 * A37 * (A37 - A41)))
^ 0.5))

End Function
Prepared by: Mr. Mohammed Electricwala

PROJECT NO.

ASSIGNMENT_SESSION_03_PRD

PROJECT TITLE

Process Design Course

DOCUMENT TITLE

PRD Sizing as per API (Part 1)

DATE REV. REASON FOR REVISION PREP. CHKD. APPD. APPD.

DOC. NO. PAGE 1 of 3 REV. 0


PRD Sizing as per API (Part 1)
DOC. NO. REV. 0
PROJECT NO. PAGE NO. 3 of 3
PROJECT TITLE
INTRODUCTION
This spreadsheet provides the sizing calculations of pressure relief device for Compressible fluid.

INPUT
PSV Select PSV or Rupture disk
PSV and RD are not
Are PSV and RD in combination?
in combination

10.0 % - Overpressure

1.110 k Refer table 7 for specific heat ratio

0.585 Refer Table 7 for Critical flow pressure ratio at 60 oF


24270.0 kg/h Q Required flow through the device
o
74.9 C T Relieving temperature
517.00 kPag Pset Pressure set point
379.00 kPag Pback Constant backpressure
51.7 kPa PBuilt up Built up backpressure
0.9 - Z Calculated compressibility (Use Z = 1.0, if calculated compressibility is not available)
51 M Molecular weight
1 - Kb Vendor provided Kb value
RESULTS
0.975 - Kd Effective coefficient of discharge (For preliminary sizing: 0.975 for PRV and 0.62 for RD)
1 Kc Combination correction factor for installations with a RD
51.70 kPag Overpressure
670.03 kPaa P1 Relieving pressure
0.02489 C
391.96 kPaa
Flow is Sub-
Critical
532.0 kPaa P2 Total back pressure
0.794 r P2/P1
0.855 F2
2
4248.56 mm A Orifice Area-Calculated
2
6.59 inch A Orifice Area-Calculated
Q Selected Orifice
2
11.05 inch A Orifice Area for selected orifice

60% 1 3699.17 Critical


2 4248.56 Sub-critical
REMARKS

You might also like