Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Api 520, Equation 29 - Unit Problems In Mathcad

api 520 mathcad thermal relief

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic
Share this topic:
| More

#1 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 04:02 AM

I am trying to set up a Mathcad document in which we can carry out our Thermal Relief Valve sizing based on the API 520 method.

 

All was working fine until I tried to run equation number 29 - A=((11.788*Q)/(Kd*Kw*Kc*Kv))*sqrt(G1/(P1-P2))

 

Mathcad gives a result with the units m^(7/2) / kg^(1/2). The only reason I can think that this is (I've checked all the units and carried out a unit balance and got the same unit result as mathcad) is that the constant 11.788 is not actually dimensionless and to give me an area unit result, this constant must have a unit of kg^(1/2) / m^(1 1/2).

 

Can anyone confirm this? And if this is the case, what is the best way for me to get around Mathcad's automatic unit balancing to get the answer in cm^2 as the API suggests that the outcome of the equation should be?

 

Thanks in advance for any help.

 

Stuart



#2 PaoloPemi

PaoloPemi

    Gold Member

  • Members
  • 549 posts

Posted 15 November 2013 - 04:13 AM

for Mathcad I recommend this resource

 

'http://www.harveyhen...roperties.html'

 

download the files and you will be able to size/rate

a PSV with HEM, HNE, NHNE methods  



#3 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 04:27 AM

Thanks for the advice Paolo but unfortunately the network I work off of will not allow download of Zip files of that sort.



#4 curious_cat

curious_cat

    Gold Member

  • Members
  • 475 posts

Posted 15 November 2013 - 04:39 AM

 

Can anyone confirm this? And if this is the case, what is the best way for me to get around Mathcad's automatic unit balancing to get the answer in cm^2 as the API suggests that the outcome of the equation should be?

 

Why not explicitly include it as a dimensional constant?



#5 PaoloPemi

PaoloPemi

    Gold Member

  • Members
  • 549 posts

Posted 15 November 2013 - 04:42 AM

when you solve for area = W / (K*sqrt(dens*dp))

you need to consider the units of flow, dp etc.

if these are predefined just convert to the unit required,

as suggested by curious_cat,

differently you need to redefine constants.

(by the way this is the reason why

I suggested to use that Mathcad

library which includes an automatic

unit conversion procedure)


Edited by PaoloPemi, 15 November 2013 - 04:54 AM.


#6 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 04:52 AM

Thanks curious_cat. I've tried adding replacing 11.78 with K and making K = 11.78 (kg^(1/2) / m^(1 1/2)) and this gives me a more sensible option which is in area units (a step in the right direction!) but it is still not the same value as you would get if you purely plugged values into the API calculation on your calculator.



#7 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 04:55 AM

I think basically I need to find where API 540 calculation 29 is derived from to find out the units of the constant but unfortunately I can't seem to find that.



#8 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 05:36 AM

As I work further through I am finding the same problem with equation 33 for calculating the Reynolds number with a dimensionless number causing havoc with the units.

I am thinking that maybe I should have stuck to a simpler Excel spreadsheet and surrender to writing up individual reports for each thermal relief valve.



#9 curious_cat

curious_cat

    Gold Member

  • Members
  • 475 posts

Posted 15 November 2013 - 07:06 AM

 

I am thinking that maybe I should have stuck to a simpler Excel spreadsheet and surrender to writing up individual reports for each thermal relief valve.

 

No no. Don't give up yet. Yes, Excel may be easy but IMO what you are doing is indeed the right way. 

 

I think you'll figure it out and in the process figure a bit more about the origins of these equations. 



#10 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 15 November 2013 - 07:24 AM

Thanks for the encouragement. I'll try and delve deeper into how the original equation was derived and maybe I'll find the key to unlock my condundrum there!



#11 curious_cat

curious_cat

    Gold Member

  • Members
  • 475 posts

Posted 15 November 2013 - 08:06 AM

Thanks for the encouragement. I'll try and delve deeper into how the original equation was derived and maybe I'll find the key to unlock my condundrum there!

 

In this eq. can you define the various terms? 

 

A=((11.788*Q)/(Kd*Kw*Kc*Kv))*sqrt(G1/(P1-P2))

 

I assume A is area, P1, P2 are pressures. 

 

What are the other terms?

 

Assuming the three K's are dimensionless & that G is specific gravity, I get the same units for 11.788 as you do. i.e. kg^(1/2) / m^(1 1/2)


Edited by curious_cat, 15 November 2013 - 08:16 AM.


#12 curious_cat

curious_cat

    Gold Member

  • Members
  • 475 posts

Posted 15 November 2013 - 08:17 AM

Your this statement I did not exactly understand:

 

 

 

 but it is still not the same value as you would get if you purely plugged values into the API calculation on your calculator.

 

Can you illustrate with actual numbers? I'll try replicating it. 



#13 breizh

breizh

    Gold Member

  • Admin
  • 6,344 posts

Posted 15 November 2013 - 10:55 PM

Hi,

Pay attention that A is expressed in mm2 ; Q (liters/minute) and Pressure (Kpa).

Hope this helps

 

Breizh


Edited by breizh, 18 November 2013 - 07:39 AM.


#14 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 18 November 2013 - 03:44 AM

Curious_cat - the units are as follows:

 

 

Q is the required relief rate (L/min).

KD is the coefficient of discharge. This can be obtained from the valve manufacturer but for preliminary sizing an effective discharge of 0.65 can be used when a PRV is installed with or without a rupture disk in combination, or 0.62 when a PRV is not installed and sizing is for a rupture disk.

KW is the correction factor due to backpressure; if the backpressure is atmospheric, a value of 1.0 is used. Balanced bellows valves in backpressure service will require a correction factor that can be determined from Figure 31 in API 520. Conventional and pilot operated valves require no special correction.

KC is the combination correction factor for installations with a rupture disk upstream of the PRV. The value of this is 1 when a rupture disk is not installed and 0.9 when a rupture disk is installed in combination witha PRV and the combination does not have a certified value.

KVis the correction factor due to viscosity

G is the specific gravity of the fluid (dimensionless)

P1 is the relieving pressure (kPag) – this is the set pressure (see below) plus 10% over-pressure.

P2 is the total back-pressure (kPag)


Edited by SPF, 18 November 2013 - 03:46 AM.


#15 SPF

SPF

    Junior Member

  • Members
  • 19 posts

Posted 18 November 2013 - 03:49 AM

 In my example,

 

Q = 5.141 l/min

Kd = 0.65

Kw = 1

Kc = 1

Kv =1

P2 = 82 kPa

P1 = 913 kPa

G = 0.73

 

Thanks again!






Similar Topics