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
CapacityConstraint- Defines a single capacity limit with design value, max value, current value supplier, and utilization calculationsCapacityConstrainedEquipment- Interface for equipment that has capacity limits (separators, compressors, pumps, etc.)StandardConstraintType- Predefined constraint types with standard names and units
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 | 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:
-
ClassDescriptionResult class containing information about the bottleneck equipment and constraint.Interface for process equipment that has capacity constraints.Represents a capacity constraint for process equipment.Enum defining the severity level of constraint violations.Enum defining the type of capacity constraint.Capacity strategy for compressor equipment.Capacity strategy for distillation column equipment.Capacity strategy for ejector equipment.Strategy interface for equipment-specific capacity evaluation.Registry for equipment capacity strategies.Capacity strategy for expander equipment.Capacity strategy for heat exchanger equipment.Capacity strategy for mixer equipment.Capacity strategy for pipe and pipeline equipment.Capacity strategy for pump equipment.Capacity strategy for separator equipment.Capacity strategy for splitter equipment.Standard constraint types commonly used across process equipment.Capacity strategy for tank equipment.Capacity strategy for valve equipment.