Package neqsim.process.mechanicaldesign.torg
This package provides a structured approach to managing Technical Requirements Documents (TORG) that specify design standards and methods to be used in process design. A TORG typically defines:
- Project identification and metadata
- Applicable design standards per equipment category (NORSOK, ASME, API, DNV, ISO, etc.)
- Company-specific design requirements and guidelines
- Environmental design conditions (temperature, seismic zone, etc.)
- Safety factors and margins
- Material specifications
Key Components
TechnicalRequirementsDocument
The main data class representing a TORG. Built using the builder pattern for flexible construction. Supports defining standards per category or per equipment type.
TorgDataSource
Interface for loading TORG documents from various sources (CSV, database, API).
CsvTorgDataSource
CSV-based implementation supporting both standards-focused and master file formats.
DatabaseTorgDataSource
Database-based implementation using the NeqSim process design database.
TorgManager
Manager class for loading and applying TORG to process systems.
Usage Example
// Create TORG manually
TechnicalRequirementsDocument torg = TechnicalRequirementsDocument.builder()
.projectId("PROJECT-001").projectName("Offshore Gas Platform").companyIdentifier("Equinor")
.addStandard("pressure vessel design code", StandardType.ASME_VIII_DIV1)
.addStandard("separator process design", StandardType.API_12J)
.addStandard("pipeline design codes", StandardType.NORSOK_L_001)
.environmentalConditions(-40.0, 45.0).build();
// Apply to process system
TorgManager manager = new TorgManager();
manager.apply(torg, processSystem);
// Or load from CSV file
manager.addDataSource(CsvTorgDataSource.fromResource("designdata/torg/projects.csv"));
manager.loadAndApply("PROJECT-001", processSystem);
CSV File Format
The CSV data source supports a standards-focused format where each row defines one standard assignment:
PROJECT_ID,PROJECT_NAME,COMPANY,DESIGN_CATEGORY,STANDARD_CODE,VERSION PROJ-001,Platform A,Equinor,pressure vessel design code,ASME-VIII-Div1,2021 PROJ-001,Platform A,Equinor,separator process design,API-12J,8th Ed
- Version:
- 1.0
- Author:
- esol
- See Also:
-
ClassDescriptionCSV-based data source for loading Technical Requirements Documents (TORG).Database-based data source for loading Technical Requirements Documents (TORG).Helper class for legacy data loading.Represents a Technical Requirements Document (TORG) that specifies design standards and methods to be used in process design for a project.Builder for TechnicalRequirementsDocument.Environmental design conditions.Material specifications.Safety factors for design calculations.Interface for loading Technical Requirements Documents (TORG) from various data sources.Manager class for applying Technical Requirements Documents (TORG) to process systems.