Class AlarmTripScheduleGenerator

java.lang.Object
neqsim.process.mechanicaldesign.AlarmTripScheduleGenerator
All Implemented Interfaces:
Serializable

public class AlarmTripScheduleGenerator extends Object implements Serializable
Auto-generates alarm and trip setpoints from process design envelopes.

Walks all unit operations in a ProcessSystem and generates alarm/trip setpoints based on operating conditions and design margins per IEC 61511 and NORSOK I-001/I-002 practice. For each measurable variable (pressure, temperature, level, flow), the generator produces LO, HI, and HIHI/LOLO setpoints from operating values and equipment design limits.

Usage:

AlarmTripScheduleGenerator gen = new AlarmTripScheduleGenerator(process);
gen.generate();
String json = gen.toJson();
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

  • Constructor Details

    • AlarmTripScheduleGenerator

      public AlarmTripScheduleGenerator(ProcessSystem processSystem)
      Creates an alarm/trip schedule generator.
      Parameters:
      processSystem - the process system to analyze
  • Method Details

    • generate

      public void generate()
      Generates alarm and trip setpoints for all applicable equipment.
    • generateSeparatorAlarms

      private void generateSeparatorAlarms(Separator sep)
      Generates alarms for a separator.
      Parameters:
      sep - the separator
    • generateCompressorAlarms

      private void generateCompressorAlarms(Compressor comp)
      Generates alarms for a compressor.
      Parameters:
      comp - the compressor
    • generateHeaterAlarms

      private void generateHeaterAlarms(Heater heater)
      Generates alarms for a heater or cooler.
      Parameters:
      heater - the heater or cooler
    • generateValveAlarms

      private void generateValveAlarms(ThrottlingValve valve)
      Generates alarms for a valve.
      Parameters:
      valve - the throttling valve
    • getEntries

      Gets all generated alarm/trip entries.
      Returns:
      list of alarm/trip entries
    • getEntryCount

      public int getEntryCount()
      Gets the total number of generated entries.
      Returns:
      count of entries
    • getEntriesForEquipment

      public List<AlarmTripScheduleGenerator.AlarmTripEntry> getEntriesForEquipment(String equipmentName)
      Gets entries for a specific equipment.
      Parameters:
      equipmentName - equipment tag name
      Returns:
      filtered entries for that equipment
    • toJson

      public String toJson()
      Exports the alarm/trip schedule to JSON.
      Returns:
      JSON string