Package neqsim.process.safety.risk.realtime


package neqsim.process.safety.risk.realtime
Real-time Risk Monitoring Package for Digital Twin Integration.

This package provides real-time risk monitoring capabilities for integration with digital twin platforms, SCADA systems, and control room dashboards. Key features include:

  • Continuous Monitoring: Scheduled risk assessments at configurable intervals
  • Alert Generation: Automatic alerts for threshold breaches and anomalies
  • Trend Analysis: Track risk trends over time with anomaly detection
  • Dashboard Integration: JSON output format for easy integration with web dashboards
  • Equipment Status: Track individual equipment risk levels and health

Key Classes

Integration Patterns

Dashboard Integration (REST API)

RealTimeRiskMonitor monitor = new RealTimeRiskMonitor("Platform-A", processSystem);
monitor.setUpdateIntervalSeconds(60);
monitor.startMonitoring();

// In REST endpoint
public String getCurrentRisk() {
  return monitor.toJson(); // Returns JSON for dashboard
}

Alert Handling

monitor.addAlertListener(new AlertListener() {
  public void onAlert(RiskAlert alert) {
    if (alert.getSeverity() == RiskAlert.AlertSeverity.CRITICAL) {
      sendSMSNotification(alert);
      logToHistorian(alert);
    }
  }
});

OPC-UA Integration

// Update process variables from OPC-UA
assessment.addProcessVariable("PT-001", opcClient.readValue("PT-001"), 85.0, "bar");
assessment.addProcessVariable("TT-001", opcClient.readValue("TT-001"), 45.0, "C");
Version:
1.0
Author:
NeqSim Development Team
See Also: