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

0

Erosional Velocity Calculation In Pipe


No replies to this topic
Share this topic:
| More

#1 mak13616

mak13616

    Brand New Member

  • Members
  • 1 posts

Posted 11 May 2018 - 09:18 AM

I am trying to set up a user variable for calculating erosional velocity in Hysys. I know I can manually calculate it but want to show it in my simulation. The code I wrote is not working. Or is there any solution.

 

Sub PostExecute ()

 

InletDensity = activeobject.FeedStream.MassDensityValue

outletDensity = activeobject.FeedStream.MassDensityValue

 

averageDensity = 0.5 * (inletDensity + outletDensity)

 

erosionalVelocty = 100 / Sqr (averageDensity)

 

End Sub






Similar Topics