Class LoopedPipeNetwork.NetworkPipe

java.lang.Object
neqsim.process.equipment.network.LoopedPipeNetwork.NetworkPipe
Enclosing class:
LoopedPipeNetwork

public static class LoopedPipeNetwork.NetworkPipe extends Object
Represents a pipe in the network.
Version:
1.0
Author:
Even Solbraa
  • Field Details

    • name

      private final String name
    • fromNode

      private final String fromNode
    • toNode

      private final String toNode
    • length

      private double length
    • diameter

      private double diameter
    • roughness

      private double roughness
    • flowRate

      private double flowRate
    • headLoss

      private double headLoss
    • pipeModel

      private AdiabaticPipe pipeModel
  • Constructor Details

    • NetworkPipe

      public NetworkPipe(String name, String fromNode, String toNode)
      Constructor for network pipe.
      Parameters:
      name - pipe name
      fromNode - source node name
      toNode - target node name
  • Method Details

    • getName

      public String getName()
      Get pipe name.
      Returns:
      name
    • getFromNode

      public String getFromNode()
      Get source node name.
      Returns:
      from node
    • getToNode

      public String getToNode()
      Get target node name.
      Returns:
      to node
    • getLength

      public double getLength()
      Get pipe length in m.
      Returns:
      length
    • setLength

      public void setLength(double length)
      Set pipe length in m.
      Parameters:
      length - length in m
    • getDiameter

      public double getDiameter()
      Get pipe diameter in m.
      Returns:
      diameter
    • setDiameter

      public void setDiameter(double diameter)
      Set pipe diameter in m.
      Parameters:
      diameter - diameter in m
    • getRoughness

      public double getRoughness()
      Get pipe roughness in m.
      Returns:
      roughness
    • setRoughness

      public void setRoughness(double roughness)
      Set pipe roughness in m.
      Parameters:
      roughness - roughness in m
    • getFlowRate

      public double getFlowRate()
      Get mass flow rate in kg/s.
      Returns:
      flow rate (positive = from->to direction)
    • setFlowRate

      public void setFlowRate(double flowRate)
      Set mass flow rate in kg/s.
      Parameters:
      flowRate - flow rate
    • getHeadLoss

      public double getHeadLoss()
      Get head loss in Pa.
      Returns:
      head loss
    • setHeadLoss

      public void setHeadLoss(double headLoss)
      Set head loss in Pa.
      Parameters:
      headLoss - head loss
    • getPipeModel

      public AdiabaticPipe getPipeModel()
      Get pipe model.
      Returns:
      the AdiabaticPipe model
    • setPipeModel

      public void setPipeModel(AdiabaticPipe model)
      Set pipe model.
      Parameters:
      model - the pipe model