Pipeline Modeling With Confidence

Modeling Fluid Flow Hydraulics With Confidence

March 21, 2018

Pipeline modeling can either be the easiest thing you do today, or the most difficult.

In fact, did you know that AspenTech has at least four different tools to model the pressure-flow profile of a fluid through pipes? Aspen HYSYS® Pipe Segment, Aspen HYSYS Compressible Gas Pipe, Aspen HYSYS Hydraulics (AHH) and Aspen Flare System Analyzer (AFSA) — to name a few.

For the sake of this article, I’m going to focus on steady-state tools in Aspen HYSYS (Pipe Segment, Compressible Gas Pipe and Aspen HYSYS Hydraulics). We’ll leave the dynamic discussion to a later article.

Now, there's a variety of reasons we don't combine these tools (organizational inertia is certainly one of them, though not the primary one). But the main reason is that, fundamentally, different problems require different solutions.

Are you modeling connected to plant data? Then solve time and performance may be important.  

Are you modeling two-phase flow with risk of slugging? Then more rigorous two-phase models are essential.

In the AspenTech ecosystem, some of our models solve faster than others (e.g., Aspen HYSYS Pipe Segment), while others provide more rigor and fewer assumptions (AHH). Some models have correlations and assumptions tailored primarily for vapor-filled, high-velocity fluid flow (AFSA), while others are intended for multi-phase flow (AHH).

OK, you might say, but why not create one tool with full rigor and perfect performance? Why not one piping tool to rule all others?

As you may know, the Navier-Stokes existence and smoothness problem is one of seven Millenium Prize problems in mathematics, because no solution yet exists on how to fully model fluid flow. Without a solution to this equation, no perfect model exists. All fluid flow models are empirical, which means that they have ranges of applicability — or they are mechanistic with some major assumptions involved in their derivation. Moreover, computational power is not infinite, so full rigor (even in today’s sense) means that you must sacrifice performance.

We live in a world of trade-offs. But hope is not lost!

As engineers, we believe in being pragmatic to obtain a “good enough” solution if an exact solution is not possible. By understanding the key advantages and disadvantages of the different piping models, it will become much easier to decide which tool to use, and what you are sacrificing in the analysis.

First, let’s examine the key assumptions in each of the pipe modeling tools AspenTech provides.

Aspen HYSYS Pipe Segment:

  • Uses Darcy-Weisbach for single-phase flow (incompressible flow assumed).
  • For single-phase vapor flow, the acceleration term in the pressure drop equation is ignored, so error is introduced at high Mach number flow.
  • Ignores the kinetic energy term of the energy balance equation for all phases.
  • Acceleration is only included for a subset of the two-phase flow correlations.
  • Slip is not accounted for, even if the two-phase flow model provides a hold-up model to account for slip.

 

Aspen HYSYS Compressible Gas Pipe:

  • Applicable for single-phase flow only — uses a single density for calculations.
  • Solves the mass, momentum and energy balance equations simultaneously (including all terms of these equations according to equations outlined in F1 help).
  • Intended for dynamic modeling.
  • Do not use the interpolation mode unless you carefully assess the properties.

 

Aspen HYSYS Hydraulics:

  • Solves the mass, momentum and energy balance equations simultaneously on each phase present.
  • Provides rigorous two-phase flow models with slip included.
  • Equation-oriented solution for the entire flowsheet (so it handles networked piping).

 

I went into much more detail on these tools in our recent on-demand webinar, so please watch it if you are interested in learning more! For now, I’ll provide a “cheat sheet” for which tools to use for some common systems.

Utility Header Systems

  • For these systems, you really want to use Aspen HYSYS Hydraulics. This is because header systems involve complex piping networks, often with pressure-only boundary specifications.
    • For single-phase systems, you should be ensuring that the system is sub-cooled or super-heated at all times. Otherwise, you’ll run into convergence issues at the phase discontinuity (especially for pressure-boundary systems).

 

Safety Piping

  • Use Aspen Flare System Analyzer for analysis of safety piping.
  • For complex inlet piping configurations, use Aspen HYSYS Compressible Gas Pipe for 100-percent vapor systems.
    • If you have two-phase flow, use Aspen HYSYS Pipe Segment.
    • If you want to use Aspen HYSYS Hydraulics, you’ll need an additional macro to exclude the acceleration pressure drop across swages (which can be significant).

 

Single Pipe Line Sizing

  • Use the Pipe Sizing utility in Aspen HYSYS for quick analysis of KPIs.
  • Aspen HYSYS Hydraulics is recommended for rating or revalidation work.

 

Pipeline Network Flow Assurance in Steady State

  • Use Aspen HYSYS Hydraulics for erosion, CO2 corrosion, hydrates and slug analysis.
    • For wax deposition analysis, you’ll need to use Aspen HYSYS Pipe Segment — but you will lose some accuracy on the pressure profile.

That concludes our discussion on steady-state modeling of pipes and pipe networks in Aspen HYSYS. Please comment below if you have suggestions to enhance this article or ideas for future articles.

 

To learn more about how to effectively use pipe models in the aspenONE® Engineering suite, view our on-demand webinar.

There was a problem storing your subscription

Leave A Comment

Comments

  • 6 years ago

    I have some question. Can I use a reservoir and the liquid surface elevation in Hysys? I need the head of the liquid surface elevation in a fluid.

  • 6 years ago

    I have some question. Can I use a reservoir and the liquid surface elevation in Hysys? I need the head of the liquid surface elevation in a fluid.

  • 6 years ago

    This information is just what I`ve been looking for, now I can complete my model.. thank you Anum!

  • 6 years ago

    This information is just what I`ve been looking for, now I can complete my model.. thank you Anum!

  • 6 years ago

    Do you have a recording from the webinar?

  • 6 years ago

    Do you have a recording from the webinar?

  • 6 years ago

    This blog is very useful for me!

  • 6 years ago

    This blog is very useful for me!

  • 6 years ago

    Juan, thank you for your patience as we posted up the recording! You can download the webinar recording here: http://bit.ly/2GxR6Y1

  • 6 years ago

    Juan, thank you for your patience as we posted up the recording! You can download the webinar recording here: http://bit.ly/2GxR6Y1

  • 4 years ago

    Gaurav, the pipe segment compute calculations dividing the pipe into increments in order to estimate better the properties at each increment, and the final result is a contribution of the results from all the increments. In each increment a pressure drop is being calculated and this warning appears when the dP in one increment is higher that the 10% of the inlet pressure of that very same increment. I will send an email with more information.

  • 4 years ago

    Gaurav, the pipe segment compute calculations dividing the pipe into increments in order to estimate better the properties at each increment, and the final result is a contribution of the results from all the increments. In each increment a pressure drop is being calculated and this warning appears when the dP in one increment is higher that the 10% of the inlet pressure of that very same increment. I will send an email with more information.

  • 4 years ago

    What is this error in pipe line modelling for water - pressure drop > 10% increment

  • 4 years ago

    What is this error in pipe line modelling for water - pressure drop > 10% increment

  • 6 years ago

    Very informative. Thanks!

  • 6 years ago

    Very informative. Thanks!

  • 6 years ago

    Very useful. Thanks! Can you provide the macro to exclude the acceleration pressure drop across swages as your mentioned in the blog?

  • 6 years ago

    Very useful. Thanks! Can you provide the macro to exclude the acceleration pressure drop across swages as your mentioned in the blog?

  • 6 years ago

    Jorge, Aspen HYSYS does not directly model the reservoir and liquid surface elevation. You can convert the head into pressure and specify the pressure as your boundary condition. Feel free to contact me at Ya-Tang.Chang@aspentech.com directly if you have any further questions!

  • 6 years ago

    Jorge, Aspen HYSYS does not directly model the reservoir and liquid surface elevation. You can convert the head into pressure and specify the pressure as your boundary condition. Feel free to contact me at Ya-Tang.Chang@aspentech.com directly if you have any further questions!

  • 6 years ago

    Thanks ktcao! I have sent you a separate email with the macro. It’s a macro that will go through all the Hydraulics operations in a case and: 1. Create a new data table for each Hydraulics op 2. Display the component pressure drops for each swage 3. Display the component pressure drops for each pipe The data tables can be exported to excel.

  • 6 years ago

    Thanks ktcao! I have sent you a separate email with the macro. It’s a macro that will go through all the Hydraulics operations in a case and: 1. Create a new data table for each Hydraulics op 2. Display the component pressure drops for each swage 3. Display the component pressure drops for each pipe The data tables can be exported to excel.

  • 5 years ago

    Hi Thanks for the nice article! Can you please provide the macro as mentioned in the blog regarding Aspen Hydraulics tool? Thank you in advance!

  • 5 years ago

    Hi Vaibhav, I will send you a separate email with the macro. Let me know if you have any question!

  • 5 years ago

    Hi Thanks for the nice article! Can you please provide the macro as mentioned in the blog regarding Aspen Hydraulics tool? Thank you in advance!

  • 5 years ago

    Hi Vaibhav, I will send you a separate email with the macro. Let me know if you have any question!