Class PipingRouteBuilder.MinorLoss

java.lang.Object
neqsim.process.equipment.pipeline.routing.PipingRouteBuilder.MinorLoss
All Implemented Interfaces:
Serializable
Enclosing class:
PipingRouteBuilder

public static class PipingRouteBuilder.MinorLoss extends Object implements Serializable
One K-value minor loss attached to a route segment.
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • fittingType

      private final String fittingType
    • kValue

      private final double kValue
    • equivalentLengthRatio

      private double equivalentLengthRatio
  • Constructor Details

    • MinorLoss

      private MinorLoss(String fittingType, double kValue, double equivalentLengthRatio)
      Creates one minor loss.
      Parameters:
      fittingType - fitting or valve description
      kValue - resistance coefficient K
      equivalentLengthRatio - equivalent length ratio L/D
  • Method Details

    • getFittingType

      public String getFittingType()
      Returns the fitting type description.
      Returns:
      fitting type description
    • getKValue

      public double getKValue()
      Returns resistance coefficient K.
      Returns:
      resistance coefficient K
    • getEquivalentLengthRatio

      public double getEquivalentLengthRatio()
      Returns equivalent length ratio L/D.
      Returns:
      equivalent length ratio L/D
    • toMap

      private Map<String,Object> toMap()
      Converts the minor loss to a JSON-friendly map.
      Returns:
      map representation of the minor loss