Enum Class ReleaseOrientation

java.lang.Object
java.lang.Enum<ReleaseOrientation>
neqsim.process.safety.release.ReleaseOrientation
All Implemented Interfaces:
Serializable, Comparable<ReleaseOrientation>, Constable

public enum ReleaseOrientation extends Enum<ReleaseOrientation>
Enumeration of release orientations for leak and rupture scenarios.

The release orientation affects:

  • Jet trajectory and dispersion
  • Pool formation for liquid releases
  • Impingement on nearby equipment
Version:
1.0
Author:
ESOL
  • Enum Constant Details

    • HORIZONTAL

      public static final ReleaseOrientation HORIZONTAL
      Horizontal release - typical for pipe and flange leaks.
    • VERTICAL_UP

      public static final ReleaseOrientation VERTICAL_UP
      Vertical upward release - typical for vent releases.
    • VERTICAL_DOWN

      public static final ReleaseOrientation VERTICAL_DOWN
      Vertical downward release - typical for drain leaks.
    • ANGLED_UP_45

      public static final ReleaseOrientation ANGLED_UP_45
      45 degrees upward.
    • ANGLED_DOWN_45

      public static final ReleaseOrientation ANGLED_DOWN_45
      45 degrees downward.
  • Field Details

    • angle

      private final double angle
    • description

      private final String description
  • Constructor Details

    • ReleaseOrientation

      private ReleaseOrientation(double angle, String description)
  • Method Details

    • values

      public static ReleaseOrientation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReleaseOrientation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAngle

      public double getAngle()
      Gets the release angle from horizontal.
      Returns:
      angle in degrees (-90 to +90)
    • getDescription

      public String getDescription()
      Gets the description.
      Returns:
      description
    • isHorizontal

      public boolean isHorizontal()
      Checks if release is predominantly horizontal.
      Returns:
      true if angle is within ±30° of horizontal
    • isVertical

      public boolean isVertical()
      Checks if release is predominantly vertical.
      Returns:
      true if angle is within 30° of vertical
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ReleaseOrientation>