Package neqsim.process.safety.release
package neqsim.process.safety.release
Source term generation for consequence modeling.
This package provides tools for calculating release source terms for QRA consequence analysis:
LeakModel- Mass flow, jet velocity, and momentum calculationsSourceTermResult- Time-series release data with export capabilitiesReleaseOrientation- Jet orientation for dispersion modeling
The source terms can be exported in formats compatible with consequence modeling tools:
- PHAST (DNV)
- FLACS (Gexcon)
- KFX (DNV)
- OpenFOAM
Example usage:
SystemInterface gas = new SystemSrkEos(300.0, 50.0);
gas.addComponent("methane", 1.0);
gas.setMixingRule("classic");
gas.init(0);
gas.init(1);
LeakModel leak = LeakModel.builder().fluid(gas).holeDiameter(0.025) // 25mm hole
.vesselVolume(10.0) // 10 m³
.scenarioName("HP Separator Leak").build();
SourceTermResult result = leak.calculateSourceTerm(300.0, 1.0); // 5 minutes
System.out.println("Peak flow: " + result.getPeakMassFlowRate() + " kg/s");
System.out.println("Total released: " + result.getTotalMassReleased() + " kg");
- See Also:
-
ClassDescriptionCalculates source terms for leak and rupture release scenarios.Builder for LeakModel.Enumeration of release orientations for leak and rupture scenarios.Container for time-series release source term data.