Package neqsim.process.processmodel.lifecycle


package neqsim.process.processmodel.lifecycle
Lifecycle management for ProcessSystem models (Digital Twins).

This package provides infrastructure for managing process models throughout their entire lifecycle, from concept design through operation to decommissioning. Key capabilities:

  • State Serialization: Export/import ProcessSystem state as JSON for versioning
  • Model Metadata: Track lifecycle phase, validation history, responsible engineers
  • Audit Trail: Record all model modifications for compliance and knowledge transfer
  • Checkpointing: Save and restore simulation state for reproducibility

Digital Twin Lifecycle Phases:

  1. Concept: Early screening studies, feasibility analysis
  2. Design: FEED, detailed engineering design
  3. Commissioning: Model tuning during plant startup
  4. Operation: Live digital twin, continuous calibration
  5. Late-life: Decommissioning planning, knowledge preservation

Usage Example:

// Create and configure process
ProcessSystem process = new ProcessSystem("Offshore Platform Train 1");
// ... add equipment ...

// Create state snapshot with metadata
ProcessSystemState state = ProcessSystemState.fromProcessSystem(process);
state.setVersion("2.1.0");
state.setDescription("Post-turnaround update with new compressor curves");

ModelMetadata metadata = state.getMetadata();
metadata.setAssetId("PLATFORM-A-TRAIN-1");
metadata.setLifecyclePhase(ModelMetadata.LifecyclePhase.OPERATION);
metadata.setResponsibleEngineer("jane.doe@company.com");
metadata.recordValidation("Matched separator P/T within 1%", "WELL-TEST-2024-05");

// Save for version control
state.saveToFile("models/platform_a_train1_v2.1.0.json");

// Later: load and restore
ProcessSystemState loaded =
    ProcessSystemState.loadFromFile("models/platform_a_train1_v2.1.0.json");
System.out.println("Model last validated: " + loaded.getMetadata().getLastValidated());
Version:
1.0
Author:
ESOL
See Also: