Class SourceTermResult

java.lang.Object
neqsim.process.safety.release.SourceTermResult
All Implemented Interfaces:
Serializable

public class SourceTermResult extends Object implements Serializable
Container for time-series release source term data.

This class holds the results of a leak/rupture calculation including:

  • Mass flow rate vs time
  • Temperature vs time
  • Vapor/liquid split vs time
  • Jet properties (velocity, momentum)
  • Droplet size estimates for liquid releases

The data can be exported to common QRA tools:

  • PHAST format
  • FLACS format
  • KFX format
  • OpenFOAM format
Version:
1.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • scenarioName

      private final String scenarioName
    • holeDiameter

      private final double holeDiameter
    • orientation

      private final ReleaseOrientation orientation
    • time

      private double[] time
    • massFlowRate

      private double[] massFlowRate
    • temperature

      private double[] temperature
    • pressure

      private double[] pressure
    • vaporMassFraction

      private double[] vaporMassFraction
    • jetVelocity

      private double[] jetVelocity
    • jetMomentum

      private double[] jetMomentum
    • liquidDropletSMD

      private double[] liquidDropletSMD
    • totalMassReleased

      private double totalMassReleased
    • peakMassFlowRate

      private double peakMassFlowRate
    • timeToEmpty

      private double timeToEmpty
  • Constructor Details

    • SourceTermResult

      public SourceTermResult(String scenarioName, double holeDiameter, ReleaseOrientation orientation, int numPoints)
      Creates a source term result.
      Parameters:
      scenarioName - name of the release scenario
      holeDiameter - hole diameter [m]
      orientation - release orientation
      numPoints - number of time points
  • Method Details

    • getScenarioName

      public String getScenarioName()
    • getHoleDiameter

      public double getHoleDiameter()
    • getOrientation

      public ReleaseOrientation getOrientation()
    • getTime

      public double[] getTime()
    • getMassFlowRate

      public double[] getMassFlowRate()
    • getTemperature

      public double[] getTemperature()
    • getPressure

      public double[] getPressure()
    • getVaporMassFraction

      public double[] getVaporMassFraction()
    • getJetVelocity

      public double[] getJetVelocity()
    • getJetMomentum

      public double[] getJetMomentum()
    • getLiquidDropletSMD

      public double[] getLiquidDropletSMD()
    • getTotalMassReleased

      public double getTotalMassReleased()
    • getPeakMassFlowRate

      public double getPeakMassFlowRate()
    • getTimeToEmpty

      public double getTimeToEmpty()
    • getNumberOfPoints

      public int getNumberOfPoints()
    • setDataPoint

      void setDataPoint(int index, double t, double mdot, double T, double P, double vaporFrac, double velocity, double momentum, double smd)
    • setTotalMassReleased

      void setTotalMassReleased(double mass)
    • setPeakMassFlowRate

      void setPeakMassFlowRate(double peak)
    • setTimeToEmpty

      void setTimeToEmpty(double time)
    • exportToPHAST

      public void exportToPHAST(String filename)
      Exports the source term to PHAST-compatible CSV format.
      Parameters:
      filename - output filename
    • exportToFLACS

      public void exportToFLACS(String filename)
      Exports the source term to FLACS-compatible format.
      Parameters:
      filename - output filename
    • exportToKFX

      public void exportToKFX(String filename)
      Exports the source term to KFX-compatible format.
      Parameters:
      filename - output filename
    • exportToOpenFOAM

      public void exportToOpenFOAM(String directory)
      Exports the source term for OpenFOAM simulation.
      Parameters:
      directory - output directory
    • exportToCSV

      public void exportToCSV(String filename)
      Exports to generic CSV format with all data.
      Parameters:
      filename - output filename
    • exportToJSON

      public void exportToJSON(String filename)
      Exports to JSON format.
      Parameters:
      filename - output filename
    • writeToFile

      private void writeToFile(String filename, String content)
    • toString

      public String toString()
      Overrides:
      toString in class Object