Class Fittings.Fitting

java.lang.Object
neqsim.process.equipment.pipeline.Fittings.Fitting
All Implemented Interfaces:
Serializable
Enclosing class:
Fittings

public class Fittings.Fitting extends Object implements Serializable
Inner class representing a single pipe fitting.

Each fitting has a name and an L/D ratio that defines its equivalent length contribution to pressure drop calculations.

Version:
2.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

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

      private String fittingName
      Descriptive name of the fitting.
    • LtoD

      private double LtoD
      Equivalent length ratio (L/D).
    • kFactor

      private double kFactor
      Optional K-factor (resistance coefficient).
  • Constructor Details

    • Fitting

      public Fitting(String name, double LdivD)
      Constructor with explicit L/D ratio.
      Parameters:
      name - fitting name
      LdivD - equivalent length ratio (L/D)
    • Fitting

      public Fitting(String name)
      Constructor that loads L/D from database.

      Attempts to load the fitting data from the 'fittings' database table. If not found, attempts to match against standard fitting types.

      Parameters:
      name - fitting name as stored in database
  • Method Details

    • getFittingName

      public String getFittingName()
      Get the fitting name.
      Returns:
      fitting name
    • setFittingName

      public void setFittingName(String fittingName)
      Set the fitting name.
      Parameters:
      fittingName - new fitting name
    • getLtoD

      public double getLtoD()
      Get the equivalent length ratio (L/D).
      Returns:
      L/D ratio (dimensionless)
    • setLtoD

      public void setLtoD(double LtoD)
      Set the equivalent length ratio (L/D).
      Parameters:
      LtoD - new L/D ratio
    • getKFactor

      public double getKFactor()
      Get the K-factor (resistance coefficient).

      The K-factor relates to L/D by: K = f × (L/D) where f is the friction factor.

      Returns:
      K-factor (dimensionless)
    • setKFactor

      public void setKFactor(double kFactor)
      Set the K-factor (resistance coefficient).
      Parameters:
      kFactor - new K-factor
    • getEquivalentLength

      public double getEquivalentLength(double diameter)
      Calculate equivalent length for a given pipe diameter.
      Parameters:
      diameter - pipe internal diameter in meters
      Returns:
      equivalent length in meters
    • toString

      public String toString()
      Overrides:
      toString in class Object