Package neqsim.process.equipment.capacity


package neqsim.process.equipment.capacity
Equipment capacity constraint framework for process optimization.

This package provides a standardized framework for defining, tracking, and querying capacity constraints on process equipment. It enables automated bottleneck detection and optimization across entire process systems.

Key Components

Constraint Types

  • HARD - Cannot be exceeded (e.g., max speed, surge limit). Exceeding causes trip or damage.
  • SOFT - Can be temporarily exceeded (e.g., design flow). Reduces efficiency or life.
  • DESIGN - Informational only. Used for reporting and optimization guidance.

Usage Example

// In equipment class (e.g., Compressor)
public class Compressor implements CapacityConstrainedEquipment {
  private Map<String, CapacityConstraint> constraints = new LinkedHashMap<>();

  public void initializeConstraints() {
    // Speed constraint
    addCapacityConstraint(StandardConstraintType.COMPRESSOR_SPEED.createConstraint()
        .setDesignValue(10000.0)
        .setMaxValue(11000.0)
        .setWarningThreshold(0.9)
        .setValueSupplier(() -> this.getSpeed()));

    // Power constraint
    addCapacityConstraint(StandardConstraintType.COMPRESSOR_POWER.createConstraint()
        .setDesignValue(5000.0)
        .setMaxValue(5500.0)
        .setValueSupplier(() -> this.getPower()));
  }
}

// In ProcessSystem or optimization code
ProcessSystem process = ...;
BottleneckResult bottleneck = process.findBottleneck();
System.out.println("Bottleneck: " + bottleneck.getEquipmentName());
System.out.println("Constraint: " + bottleneck.getConstraint().getName());
System.out.println("Utilization: " + bottleneck.getUtilizationPercent() + "%");

Supported Equipment Types

Equipment types and their typical capacity constraints
Equipment Typical Constraints
Separator Gas load factor, liquid load factor, residence time
Compressor Speed, power, surge margin, discharge temperature
Pump NPSH margin, flow rate, power
Heat Exchanger Duty, approach temperature, pressure drop
Valve Cv utilization, pressure drop, opening
Pipe Velocity, erosional velocity ratio, pressure drop
Version:
1.0
Author:
NeqSim Development Team
See Also: