DNV Python library for Phast Web Services

Phast Web Services

Introduction

Welcome to Python PWS - the Python Library for Phast Web Services. Python PWS provides an easy and efficient way of consuming the Phast Cloud APIs from your Python solutions.

What is Phast?

Phast is the world's most comprehensive process hazard analysis software which models the progress of a potential incident from the initial release to far-field dispersion including modelling of pool spreading and evaporation and resulting flammable and toxic effects. In Phast Web Services we have taken the same state of the art consequence modelling calculations and made them available as web services so you can use them in your own applications.

Concepts

Phast Web Services have been designed to use "entities" that are easy to grasp conceptually. So you work with physical objects like a vessel or a pipe and associated data objects like leaks, pipe ruptures and weathers. These are used when calling a vessel leak or pipe breach calculation for example.

Getting started

To jump to the reference documentation please click here.

Developing with Python

Developing solutions using Python is beyond the scope of this help file. For more information on developing solutions using Python please refer to these useful links:

Installing Python PWS

Installation of Python itself is not covered by this documentation but there is significant help available online.

Python PWS can be installed from the Python Package Index (PyPI) which is a repository of software for the Python programming language. You can find the Python PWS package on PyPI here.

To install Python PWS simply type:

pip install pypws

Registering to get access to Phast Web Services

In order to use Phast Web Services you need to...

Obtaining an access token

Once registered with Veracity you can download your access token from...

Registering the access token with Python PWS

Un-installing

To uninstall Python PWS simply type:

pip uninstall pypws

and when prompted select y.

The basics

Performing calculations

Running calculations

Python PWS Full Reference

The following items are available:

Constants

The following is a list of available constants.

Name Value Description
ABS_TOL_RAD0.0000000001Absolute tolerance for radiation calculations.
ADJUST_GROUND_FLAME1Flame shape adjusted if grounded for jet fires.
ATM_EXP_METHOD4DNV recommended atmospheric expansion method from orifice to final state.
ATM_MOLWT28.9505Atmospheric molecular weight (kg/kmol).
ATM_PRESSURE101325.0Atmospheric pressure (Pa).
AWD_FLAG3Along wind diffusion method for non instantaneous dispersion.
BUND_AREA_MULTIPLIER_FOR_RUPTURE1.5Bund area multiplier for catastrophic ruptures.
BUND_CANNOT_FAIL0Bund cannot fail - liquid overspill not possible.
CALC_METHOD_SEP_FIREBALLS-1Calculate surface emissive power for fireballs.
CALC_METHOD_SEP_JET_FIRES0Calculate surface emissive power for jet fires.
CRIT_SEP_RATIO0.2Critical separation ratio for concentration grids.
CRIT_WEBER12.5Critical Webber number used in the droplet size calculations.
DROPLET_METHOD6Modified CCPS droplet method.
EXPL_LOCATION0Explosion located at the cloud front (LFL fraction).
FIREBALL_MODEL0Roberts/TNO hybrid fireball model.
FLAM_AVR_TIME_PHAST_DEFAULT18.75Default value for flammable averaging time in Phast.
FLAMM_MASS_CALC_METHOD2Use mass between LFL and UFL for flammable mass estimation in explosion calculations.
FRACTION_TOTAL_TO_KINETIC0.04Kinetic energy fraction of discharge expansion energy.
HORIZONTAL_OPTION0Standard method for jet fire horizontal options.
INEX_FLAG2New standard method for modelling of instantaneous expansion.
JET_FIRE_AVR_TIME20.0Jet fire averaging time (s).
JET_FIRE_CORRELATION0Recommended jet fire correlation.
JET_FIRE_EXP_DUR20.0Jet fire maximum exposure duration (s).
JET_RATE_MOD_FACTOR3.0Jet fire rate modification factor.
LFL_FRACTION_EXPLOSIONS0.5LFL fraction used to define the flammable cloud for explosions.
MASS_MOD_FACTOR3.0Mass modification factor used in calculating the mass of material involved in the fireball.
MAX_DISP_STEP_SIZE300.0Maximum integration step for dispersion calculations (s).
MAX_DROP_DIAMETER0.01Upper limit of the droplet diameter (m).
MAX_NUMBER_FLAME_COORDINATES10Maximum number of flame coordinates for jet fires.
MAX_RELEASE_DURATION3600.0Maximum release duration (s).
MAX_SEP_FIREBALL400000.0Maximum surface emissive power for fireballs (W/m2).
MAX_SEP_JET_FIRE350000.0Maximum surface emissive power for a jet fire (W/m2).
MAX_SEP_POOL_FIRE350000.0Maximum surface emissive power for pool fires (W/m2).
MAX_TIMESTEPS900Maximum number of time steps for time varying releases.
MAX_VELOCITY100000000.0Maximum release velocity (m/s).
MAX_VELOCITY_FLAG0Fixed velocity capping method.
MAXIMUM_COMPONENT_COUNT20Maximum number of components.
MAXIMUM_LEAK_DIAMETERS_COUNT5Maximum number of leak diameters for scenario generation.
MAXIMUM_PT_STEPS441Maximum number of steps in an iteration over PT space.
MAXIMUM_TEMPERATURE_LIMIT1200.0Maximum temperature allowed for dispersion calculations (K).
MAXIMUM_WEATHER_COUNT10Maximum number of weathers.
ME_EXPL_EFFICIENCY_UNCONFINED100.0Explosion efficiency for unconfined multi-energy explosions (%).
ME_EXPL_EFFICIENCY_UNIFORM_CONFINED12.5Explosion efficiency for uniform confined multi-energy explosions (%).
MILLER_CROSSWIND_METHOD0Method for modelling crosswind effects for Miller model: 0 = modified Johnson approach; 1 = Full deflection.
MILLER_FLAME_RAD_FRACTION_METHOD0Miller jet flame radiative fraction calculation method: 0 = Miller method; 2 = Sandia method.
MILLER_FLAME_TRAJECTORY0Miller jet flame trajectory: 0 = Line segments; 1 = Curved line.
MILLER_LIFT_OFF_OPTION1Method for modelling flame lift-off for Miller model: 0 = Miller method; 1 = DNV.
MILLER_NG_FLOWRATE_METHOD1Miller natural gas flow rate matching method: 0 = Miller (2017); 1 = DNV [similarity approach].
MILLER_RAD_INTENSITY_CAP_METHOD2Radiation intensity capping method: 0 = No capping; 1 = Max intensity capping; 2 = Stefan Boltzmann's law.
MIN_DROP_DIAMETER0.00000001Cut-off droplet diameter below which droplets are no longer modelled (m).
MIN_EXPL_MASS0.0Minimum explosive mass (kg).
MINIMUM_TEMPERATURE_LIMIT11.0Minimum temperature allowed for dispersion calculations (K).
MIX_LAYER_HEIGHT_FOR_A1300Mixing layer height for Pasquill stability class A (m).
MIX_LAYER_HEIGHT_FOR_AB1080Mixing layer height for Pasquill stability class A/B (m).
MIX_LAYER_HEIGHT_FOR_B920Mixing layer height for Pasquill stability class B (m).
MIX_LAYER_HEIGHT_FOR_BC880Mixing layer height for Pasquill stability class B/C (m).
MIX_LAYER_HEIGHT_FOR_C840Mixing layer height for Pasquill stability class C (m).
MIX_LAYER_HEIGHT_FOR_CD820Mixing layer height for Pasquill stability class C/D (m).
MIX_LAYER_HEIGHT_FOR_D800Mixing layer height for Pasquill stability class D (m).
MIX_LAYER_HEIGHT_FOR_E400Mixing layer height for Pasquill stability class E (m).
MIX_LAYER_HEIGHT_FOR_F100Mixing layer height for Pasquill stability class F (m).
MIX_LAYER_HEIGHT_FOR_G100Mixing layer height for Pasquill stability class G (m).
N_VTIMES_CONT5Number of time steps for continuous clouds used in explosion calculations.
N_VTIMES_MAX100Maximum number of time steps for explosion calculations.
N_VTIMES_TV15Number of time steps for time-varying clouds used in explosion calculations.
NUM_FIXED_STEPS20Number of fixed size output steps for dispersion calculations.
NUM_X_VIEW21Number of steps in the downwind direction per explosion cloud view.
OBSERVER_TYPE1Planar observer type for radiation modelling.
PIPE_NODES_COUNT2Number of nodes on the pipe (start, end + intermediate).
RAD_FRAC_GENERAL0.4Radiative fraction for general pool fires.
RAD_LEVEL_GRID1600.0The radiation level used for calculating radiation grids. The value is set equal to the lowest default radiation value present in the VesselLeak apps.
RAD_PROBIT_A-36.38Probit value A for radiation.
RAD_PROBIT_B2.56Probit value B for radiation.
RAD_PROBIT_N1.33Probit value N for radiation.
RADS_INTEGRATOR_TYPE2Integration method for multi-point flame sources: 0 = Discrete; 1 = QSIMP; 2 = Gauss-Lobatto.
RADS_NUM_INTEGRATOR_POINTS30Number of integration points to use for multi-point sources: 30 by default.
REF_HT_WIND_SPEED10.0Reference height for wind speed.
REPORTING_HEIGHT_FLAG1Centreline height is used for explosion calculations.
RESULT_GRID_STEP10.0Flammable result grid step in x-direction (m).
SHORT_DURATION_CUTOFF20.0Cutoff for short duration effects. Only mass released until this time is used in the fireball calculation (s).
SHORT_PIPE_ROUGHNESS0.000045Short pipe roughness (m).
STOICH_MASS_FRAC_METHOD0Use old method (valid for paraffins only) for calculating the stoichiometric mass fraction.
TNO_FLAME_TEMP2000.0Flame temperature for TNO fireball model (K).
TOXIC_MIN_LETHALITY0.001Toxics: minimum probability of death.
TOXIC_MIX_CALC_METHOD3Product of each as the multi component toxic calculation method.
TOXIC_PD_TOLERANCE0.01Toxics: tolerance on minimum probability of death.
TOXIC_PROBIT_METHOD1Prefer Probit as the toxic calculation method, i.e. if probit data is available that will be the preferred method to use.
TOXIC_TAIL_TIME1800.0Tail time for indoor toxic calculations (s).
UDS_MAX_TEMPERATURE1200.0The absolute maximum temperature allowed for a user-defined source.
UDS_MIN_TEMPERATURE11.0The absolute minimum temperature allowed for a user-defined source.
UNCONFINED_EXPLOSION_STRENGTH2.0Unconfined explosion strength (Multi energy method).
UNIFORM_CONFINED_EXPLOSION_METHOD_OPTION3Uniform confined Multi Energy explosion method.
USE_SHAPE_CORRELATION-1Use shape correlation for fireballs.
USE_SOLAR0Exclude solar radiation from radiation calculations.
USE_VOLUMES2Use volumes when specifying size of confined sources.
USER_DEFINED_CONFINED_EXPLOSION_METHOD_OPTION1Unconfined Multi-Energy explosion method.
USER_INPUT_POST_EXPANSION_VELOCITY0Velocity for jet fire calculations must be user supplied.
WIND_CUTOFF_HEIGHT1.0Cut-off height for wind speed calculations.
WIND_PROFILE_FLAG2Logarithmic wind profile.

Back to reference home

Enums

The following is a list of available enums.

Back to reference home

AtmosphericStabilityClass

Atmospheric stability classes.

Name Value Description
StabilityA1A.
StabilityAB2A/B.
StabilityB3B.
StabilityBC4B/C.
StabilityC5C.
StabilityCD6C/D.
StabilityD7D.
StabilityE8E.
StabilityF9F.
StabilityG10G.

Back to reference home

ContourType

Type of contour plot or grid.

Name Value Description
Footprint1Footprint (XY plane).
FootprintAtTime2Footprint (XY plane) at given time.
FootprintEllipse3Footprint ellipse (XY plane).
Sideview4Sideview (XZ plane).
Crosswind5Crosswind (YZ plane).
FlameFootprint6Flame shape footprint (XY plane).
FlameSideview7Flame shape side view (XZ plane).
FlameCrosswind8Flame shape crosswind (YZ plane).

Back to reference home

DayNight

Flag to indicate wheather we are in day or nightime.

Name Value Description
Unset0Day/night flag not set.
Day1Day.
Night2Night.

Back to reference home

DesignVariable

Choice of input to vary to achieve target design.

Name Value Description
PipeLength1The length of the flare stack.
PipeDiameter2The diameter of the flare stack.
OperatingPressure3The driving pressure in the tank feeding the flare stack.

Back to reference home

DynamicType

Type of release or cloud.

Name Value Description
Unset0Unset.
Instantaneous1Instantaneous.
Continuous2Continuous.
TimeVarying3Time-varying.

Back to reference home

FireType

Fire type.

Name Value Description
NoFire0No fire.
Fire_ball1Fireball.
Pool2Pool fire.
APIJet3API jet fire.
ConeJet4Cone jet fire.
MultiPointSourceJet10Multi-point [e.g. Miller] source jet fire model.

Back to reference home

FlammableToxic

Flag to indicate if the material is flammable, toxic, both or inert.

Name Value Description
Unset-99Option when this field is unset.
Inert-2Inert.
Toxic-1Toxic.
Both0Both.
Flammable1Flammable.

Back to reference home

FlashAtOrifice

Allow phase change upstream of orifice.

Name Value Description
NoFlashAtOrifice0No phase change to the orifice.
FlashAllowed1Flashing allowed to the orifice.
DisallowLiquidFlash2No flashing of liquid (metastable liquid).

Back to reference home

FluidSpec

Fluid state specification.

Name Value Description
PTLf0Specify all of P,T,LF.
TP1Specify temperature and pressure.
TBub2Bubble point at fixed temperature.
PBub3Bubble point at fixed pressure.
TDew4Dew point at fixed temperature.
PDew5Dew point at fixed pressure.
PLf6Fixed pressure and liquid fraction.
TLf7Fixed temperature and liquid fraction.

Back to reference home

LuminousSmokyFlame

Luminous smoky flame.

Name Value Description
NonFlammable-1Non flammable.
Luminous0Luminous flame.
Smoky1Smoky flame.
General2General type flame.

Back to reference home

MEConfinedMethod

Multi-energy confined method.

Name Value Description
UserDefined1User defined method.
UniformConfined3Uniform confined method.

Back to reference home

MessageResultCode

A message code used to communicate additional information between the APIs and the client applications.

Name Value Description
UserNotAuthorizedToUpgradeEntity20000Authenticated user is not authorized to upgrade the requested entity.

Back to reference home

MixtureModelling

Method for modelling a mixture.

Name Value Description
PC0Pseudo-component treatment of mixtures.
MC_SingleAerosol1Multi-component single aerosol.
MC_MultipleAerosol3Multi-component multiple aerosol hybrid method.

Back to reference home

Phase

Fluid phase (vapour, liquid or two-phase).

Name Value Description
Unset0Unset.
Vapour1Vapour.
TwoPhase2Two-phase.
Liquid3Liquid.

Back to reference home

PoolFireType

Pool fire type.

Name Value Description
Immediate0Immediate pool fire.
Early1Early pool fire.
Late2Late pool fire.

Back to reference home

PoolSurfaceType

Surface type for pools and bunds.

Name Value Description
WetSoil1Wet soil.
DrySoil2Dry soil.
Concrete3Concrete.
InsulatedConcrete4Insulated concrete.
DeepOpenWater5Deep open water.
ShallowOpenWater6Shallow open water.
DeepRiver7Deep river.
ShallowRiver8Shallow river.

Back to reference home

PropertyTemplate

Choice of property template.

Name Value Description
PhastMC100The PhastMC is the default Phast template.
Phast64101Old default Phast property template.
AcidAssociation102Acid association template for modelling reactive Hydrogen Fluoride.
SoaveRedlickKwong103Template using the Soave-Redlich-Kwong cubic equation of state.
PengRobinson104Template using the Peng-Robinson cubic equation of state.
PRIdealFugacity106The Peng-Robinson template but with ideal fugacities for improved robustness.
SRKIdealFugacity107The Soave-Redlich-Kwong template but with ideal fugacities for improved robustness.

Back to reference home

RadiationType

Radiation type.

Name Value Description
Unset0Radiation type not set.
Dose1Radiation dose.
Probit2Radiation probit.
Lethality3Radiation lethality.
ViewFactor4View factor.
Intensity5Radiation intensity.

Back to reference home

RainoutThermoFlag

Rainout and thermodynamic modelling.

Name Value Description
NoRainoutEquilibrium-1No rainout, equilibrium.
RainoutEquilibrium1Rainout, equilibrium.
RainoutNonEquilibrium2Rainout, non-equilibrium.

Back to reference home

ReleaseDirection

Release direction.

Name Value Description
Horizontal0Horizontal.
Vertical1Vertical.

Back to reference home

Resolution

Output resolution (and performance).

Name Value Description
High1High.
Medium2Medium.
Low3Low.
VeryHigh4Very high.
Extreme5Extremely high.

Back to reference home

ResultCode

Result codes returned from calls to the MDE.

Name Value Description
Fail_Validation-1Validation fail.
Success0Success.
Fail_Execution1Execution fail.
UnexpectedApplicationError21001Unexpected application error encountered.
MissingParametersError21002Missing parameters.
InvalidWorkingDirectoryError21003No or invalid working directory specified.
InvalidAppRootDirectoryError21004No or invalid application root directory specified.
InvalidMdeModelsDirectoryError21005No or invalid MDE models directory specified.
MdeModelDirectoryNotFoundError21006MDE directory was correctly specified but the directory does not exist.
InvalidPropertySystemDirectoryError21007No or invalid physical properties directory specified.
InputFileNotSpecifiedError21008Input file not specified error.
InputFileNotFoundError21009Input file not found error.
OutputFileNotSpecifiedError21010Output file not specified error.
ErrorReadingInputFileError21011Error reading input file error.
FailedToInitialiseMdeErrorReportingError21012Failed to initialise mde error reporting error.
FailedToInitialisePropertySystemError21013Failed to initialise property system error.
InvalidAccessTokenError21014Invalid access token error.
NoDischargeRecordsError21100No discharge records error.
NoDispersionRecordsError21102No dispersion records error.
NoFlameRecordsError21103No flame records error.
MDEInitializationError21104MDE initialization error.
MDEErrorReportingInitializationError21105MDE error reporting initialization error.
PhysicalPropertySystemInitializationError21106Physical property system initialization error.
DischargeCalculationInitializationError21107Discharge calculation initialization error.
DispersionCalculationInitializationError21108Dispersion calculation initialization error.
UnableToReadDataError21109Unable to read data error.
ClientIdNotSpecifiedError21110Client id not specified error.
JsonReaderError21111Json reader error.
IndexOutOfRangeError21112Index out of range error.
DataStorageError21113Data storage error.
HttpMultipleChoicesError30300Http multiple choices error.
HttpAmbiguousError30300Http ambiguous error.
HttpMovedPermanentlyError30301Http moved permanently error.
HttpMovedError30301Http moved error.
HttpFoundError30302Http found error.
HttpRedirectError30302Http redirect error.
HttpSeeOtherError30303Http see other error.
HttpRedirectMethodError30303Http redirect method error.
HttpNotModifiedError30304Http not modified error.
HttpUseProxyError30305Http use proxy error.
HttpUnusedError30306Http unused error.
HttpTemporaryRedirectError30307Http temporary redirect error.
HttpRedirectKeepVerbError30307Http redirect keep verb error.
HttpBadRequestError30400Http bad request error.
HttpUnauthorizedError30401Http unauthorized error.
HttpPaymentRequiredError30402Http payment required error.
HttpForbiddenError30403Http forbidden error.
HttpNotFoundError30404Http not found error.
HttpMethodNotAllowedError30405Http method not allowed error.
HttpNotAcceptableError30406Http not acceptable error.
HttpProxyAuthenticationRequiredError30407Http proxy authentication required error.
HttpRequestTimeoutError30408Http request timeout error.
HttpConflictError30409Http conflict error.
HttpGoneError30410Http gone error.
HttpLengthRequiredError30411Http length required error.
HttpPreconditionFailedError30412Http precondition failed error.
HttpRequestEntityTooLargeError30413Http request entity too large error.
HttpRequestUriTooLongError30414Http request uri too long error.
HttpUnsupportedMediaTypeError30415Http unsupported media type error.
HttpRequestedRangeNotSatisfiableError30416Http requested range not satisfiable error.
HttpExpectationFailedError30417Http expectation failed error.
HttpUpgradeRequiredError30426Http upgrade required error.
HttpInternalServerErrorError30500Http internal server error error.
HttpNotImplementedError30501Http not implemented error.
HttpBadGatewayError30502Http bad gateway error.
HttpServiceUnavailableError30503Http service unavailable error.
HttpGatewayTimeoutError30504Http gateway timeout error.
HttpHttpVersionNotSupportedError30505Http http version not supported error.
NoDischargeRecordsGeneratedWarning63001No discharge records generated warning.
NoDispersionRecordsGeneratedWarning63002No dispersion records generated warning.

Back to reference home

Scope

Determines whether an entity is globally or workspace scoped.

Name Value Description
Global1Entity has global scope.
Workspace2Entity has workspace scope.

Back to reference home

SolidModelling

Flag for whether we want to deploy or disable solid modelling. In addition to this flag, each component has its own allowSolids flag.

Name Value Description
DisableSolidModelling0Solid modelling will not be used, even if it is allowed by the component in question.
DeploySolidModelling1Solid modelling will be deployed if it is supported by the component in question.

Back to reference home

SpecialConcentration

Concentrations of interest.

Name Value Description
NotDefined0Not Defined.
LFLFraction1LFL Fraction.
LFL2LFL.
UFL3UFL.
Min4Minimum concentration.

Back to reference home

SurfaceType

Dispersing surface type (land or water).

Name Value Description
Land1Dispersion over land.
Water2Dispersion over water.

Back to reference home

TargetVariable

Type of result for design constraint.

Name Value Description
MassFlowRate1Specify a target mass flow rate.
ExpandedReleaseVelocity2Specify a target expanded release velocity.
PipeExitPressure3Specify a target pipe exit pressure.
RadiationLevelTransectEndpoint4Specify a target radiation level at the endpoint of the radiation transect.

Back to reference home

TimeVaryingOption

Dynamic modelling of leaks and lines.

Name Value Description
InitialRate1Use initial rate.
TimeVaryingRate2Use time-varying rates.

Back to reference home

ToxicResultType

Type of toxic result.

Name Value Description
Unset0Toxic result type not set.
ToxicLethality1Probability of death.
ToxicProbit2Toxic probit number.
ToxicDose3Toxic dose.

Back to reference home

VesselConditions

The vessel conditions expected by the user.

Name Value Description
Unset0Unset.
PureGas1Pressurised gas vessel.
HomogeneousVesselType2Input fluid state expected to be homogenesously mixed two phase.
StratifiedTwoPhaseVessel3Two phase vessel.
PressurizedLiquidVessel4Pressurised liquid vessel.
AtmosphericLiquidVessel5Input fluid state expected to be liquid stored at atmospheric pressure.

Back to reference home

VesselShape

Vessel shape.

Name Value Description
VerticalCylinder1Vertical cylinder.
HorizontalCylinder2Horizontal cylinder.
VesselSphere3Sphere.
VesselCuboid4Cuboid.

Back to reference home

Entities

The following is a list of available entities.

Back to reference home

AtmosphericStorageTank

Atmospheric storage tank.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
StateState (temperature).State
DiameterDiameter of the tank.doubleLength [m]
HeightHeight of the tank.doubleLength [m]
MaterialMaterial.Material
LiquidFillFractionByVolumeLiquid fill fraction by volume.double0.9Fraction [fraction]

Back to reference home

Bund

Bund.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
BundHeightBund height.double0.0Length [m]
BundDiameterBund diameter.double0.0Length [m]
SpecifyBundSpecify a bund.boolfalse

Back to reference home

CatastrophicRupture

Catastrophic rupture of a vessel scenario.

Properties

NameDescriptionTypeDefaultUnit classSI Unit

Back to reference home

ConcentrationRecord

Concentration record.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ConcentrationCloud concentration at an x, y, z position.doubleFraction [fraction]
Positionx, y, z position.LocalPosition

Back to reference home

ConstantMaterialResult

Constant material properties, i.e. critical pressure, temperature, mole weight.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
CriticalPressureThe critical pressure of the material.doublePressure [Pa]
CriticalTemperatureThe critical temperature of the material.doubleTemperature [K]
TotalMolecularWeightThe total molecular weight of the material.doubleMolecularWeight [kg/kmol]

Back to reference home

Constraint

A set of data describing a design constraint. This includes the result target of interest (e.g. mass flow) and the design variable (e.g. stack diameter).

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TargetVariableThe result type to be prescribed as a design target.TargetVariableMassFlowRate
TargetVariableValueUser-defined target value for the chosen result type.double
DesignVariableThe input type to vary to achieve the design target.DesignVariablePipeDiameter
PermittedDesignVariableIntervalAn interval of permitted values for the design variable.Interval

Back to reference home

DischargeParameters

Discharge parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
FlashAtOrificeFlashing at orifice.FlashAtOrificeDisallowLiquidFlash

Back to reference home

DischargeRecord

Discharge results at a given time.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TimeTime.doubleTime [s]
MassFlowMass flow rate (continuous and time-varying).doubleMassFlowRate [kg/s]
FinalStateFinal fluid state.State
FinalVelocityFinal velocity.doubleVelocity [m/s]
OrificeStateOrifice fluid state.State
OrificeVelocityOrifice velocity.doubleVelocity [m/s]
StorageStateStorage fluid state.State
DropletDiameterRepresentative droplet size.doubleLength [m]
ExpandedDiameterExpanded diameter.double0.0Length [m]

Back to reference home

DischargeResult

Scalar discharge results.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ExpansionEnergySpecific expansion energy (instantaneous releases only).doubleEnergy [J]
ReleaseMassReleased mass.doubleMass [kg]
HeightRelease height above ground.doubleLength [m]
AngleRelease angle (non-instantaneous releases only).doubleAngle [Radians]
ReleaseTypeInstantaneous, continuous or time-varying.DynamicTypeUnset
HoleDiameterDiameter of the hole.doubleLength [m]
PreDilutionAirRatePre-dilution air rate.double0MassFlowRate [kg/s]

Back to reference home

DispersionOutputConfig

Dispersion plotting and reporting control parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
DownwindDistanceDownwind distance.double100Length [m]
TimeTime since start of the release.double60Time [s]
ResolutionOutput resolution of results and gird.ResolutionMedium
ElevationHeight of interest above ground level.double1Length [m]
SpecialConcentrationPre-defined concentration.SpecialConcentrationMin
ConcentrationConcentration (vol fraction). Not used unless SpecialConcentration is undefined.double0Fraction [fraction]
CrosswindDistanceCrosswind distance.double0Length [m]
ContourTypeList of view types.ContourTypeFootprint
LFLFractionValueValue of the lower flammable limit fraction.double0.5Fraction [fraction]
ComponentToTrackIndexIndex of the component to track.int-1
ComponentToTrackNameName of the property to track.string

Back to reference home

DispersionParameters

Dispersion Parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
RelativeToleranceRelative tolerance.double0.001Fraction [fraction]
RainoutThermoFlagRainout and equilibrium method.RainoutThermoFlagRainoutNonEquilibrium
FixedStepSizeFixed step size.double0.01Time [s]
OutputStepMultiplierRatio to increase step size.double1.2
MaxDispersionDistanceAbsolute maximum distance for dispersion calculations.double50000Length [m]
MaxDispersionHeightAbsolute maximum height for dispersion calculations.double1000Length [m]
NumberOfReleaseObserversNumber of release observers for time-varying releases.int5
NumberOfPoolObserversNumber of pool observers for rainout cases.int10
AveragingTimeCore averaging time.double18.75Time [s]
LFLFractionToStopThe lowest LFL fraction of interest.double0.5Fraction [fraction]

Back to reference home

DispersionRecord

Observer dispersion record at a given time.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ObserverIndexId of the observer associated with this record.int
CentrelineConcentrationCentreline concentraton (molar).doubleFraction [fraction]
DownwindDistanceDistance downwind.doubleLength [m]
TimeTime after the start of the release.doubleTime [s]
CentrelineConcentrationUncorrectedUncorrected centreline concentraton (molar).doubleFraction [fraction]
CrosswindRadiusCrosswind radius.doubleLength [m]
VerticalRadiusVertical radius.doubleLength [m]
CrosswindExponentCrosswind exponent.double
VerticalExponentVertical exponent.double
ThetaCentreline angle from horizontal.doubleAngle [Radians]
CentrelineHeightCentreline height.doubleLength [m]
LiquidFractionLiquid mass fraction.doubleFraction [fraction]
VapourTemperatureVapour temperature.doubleTemperature [K]
MassConcMass concentration.doubleDensity [kg/m3]
VelocityVelocity.doubleVelocity [m/s]
MassFlowMass flow rate (non-instantaneous).doubleMassFlowRate [kg/s]
InstConInstantanous or continuous (time-varying not permitted).DynamicTypeUnset
ProfileFlagProfile flag.int
ElevFlagElevation flag.int
RhoCloudCloud density.doubleDensity [kg/m3]
LiqTempLiquid temperature.doubleTemperature [K]
EffectiveWidthEffective width.doubleLength [m]
EffectiveHeightEffective height.doubleLength [m]
PassTranDistPassive transition distance.doubleLength [m]
DownwindRadiusDownwind radius.doubleLength [m]
DropletDiameterDroplet diameter.doubleLength [m]
DropletHeightDroplet height.doubleLength [m]
DropletDistanceDroplet downwind distance.doubleLength [m]
MassMass (instantaneous).doubleMass [kg]

Back to reference home

ExplosionConfinedVolume

Confined explosion volume data.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ConfinedStrengthExplosion strength of confined volume.double7
ConfinedVolumeExplosion volume of confined source.double1Volume [m3]

Back to reference home

ExplosionOutputConfig

Explosion output configuration.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
OverpressureLevelOverpressure of interest for explosions.double2068Pressure [Pa]
MEConfinedMethodExplosion ME confined method where Uniform Confined = 3, User Defined = 1.MEConfinedMethodUniformConfined

Back to reference home

ExplosionOverpressureResult

Worst case explosion summary results for a given overpressure.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
OverpressureOverpressure for this result.doublePressure [Pa]
ExplosionCentreCentre of the explosion (distance downwind).doubleLength [m]
MaximumDistanceMaximum distance to overpressure (downwind edge).doubleLength [m]
ExplodedMassFlammable mass used in the explosion.doubleMass [kg]
IgnitionTimeTime of ignition.doubleTime [s]
RadiusRadius of the explosion at the explosion centre.doubleLength [m]

Back to reference home

ExplosionParameters

Explosion parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ExplosionUniformStrengthExplosion strength for uniform unconfined (Multi-energy method).double10.0

Back to reference home

FlameRecord

Flame geometry description.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
xCoordinateDistance downwind.doubleLength [m]
zCoordinateHeight above ground.doubleLength [m]
rCoordinateFlame radius.doubleLength [m]
phiCoordinateInclination from vertical.doubleAngle [Radians]

Back to reference home

FlameResult

Fire results.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TimeTime of fire, or duration if initial rate.doubleTime [s]
SurfaceEmissivePowerSurface emissive power of flame.doubleRadiationIntensity [W/m2]
FireTypeFire type (Fireball, pool, cone jet, API jet, Multi point source jet).FireTypeNoFire
FlameLengthLength of the flame.doubleLength [m]
FlameDiameterDiameter of the flame.doubleLength [m]

Back to reference home

FlammableOutputConfig

Fire and radiation output configuration.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PositionPosition used for radiation calculations (including contours).LocalPositionLocalPosition()
RadiationTypeRadiation type.RadiationTypeIntensity
ContourTypePlane orientation for contouring.ContourTypeFootprintEllipse
RadiationLevelRadiation level (could be dose, probit, intensity, etc).double4000
RadiationResolutionSpatial resolution for radiation calculations.ResolutionMedium
TransectDefinition of line segment of interest for radiation transects.TransectTransect()
FixedOrientationIf disabled orientation optimized to give maximum radiation.int0
OrientationHorizontal angle with respect to the downwind direction.double0Angle [Radians]
FixedInclinationIf disabled inclination optimized to give maximum radiation.int0
InclinationAngle between the normal to the surface and the horizontal plane.double0

Back to reference home

FlammableParameters

Fire and radiation parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
MaxExposureDurationMaximum exposure duration to radiation effects.double20Time [s]
RadiationRelativeToleranceRelative tolerance for radiation calculations.double0.01Fraction [fraction]
PoolFireTypeType of pool fire modelling.PoolFireTypeLate
JetFireAutoSelectOption to automatically select jet fire modelling.boolfalse
TimeAveragingAverage between 0 s and the time of interest?.booltrue
TimeOfInterestTime of interest.double20

Back to reference home

FlareStack

Contains inputs required for running a flare stack calculation.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
FlareStackMaterialMaterial being flared.Material
FlareStackFluidStateFluid state in flare stack (driving the outflow).State
FlareStackHeightFlare stack tip height above ground level.doubleLength [m]
FlareStackTipDiameterDiameter of flare stack tip.doubleLength [m]
FlareStackConditionsPhase of the stored material.VesselConditionsPureGas

Back to reference home

FlashResult

Physical properties for a material generated at a particular pressure and temperature.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PressurePressure.doublePressure [Pa]
TemperatureTemperature.doubleTemperature [K]
LiquidMoleFractionLiquid fraction (mole).doubleFraction [fraction]
LiquidDensityDensity of liquid phase.doubleDensity [kg/m3]
VapourDensityDensity of vapour phase.doubleDensity [kg/m3]
LiquidEntropyEntropy of liquid phase.doubleEntropy [J/kg.K]
VapourEntropyEntropy of vapour phase.doubleEntropy [J/kg.K]
LiquidEnthalpyEnthalpy of liquid phase.doubleSpecificEnergy [J/kg]
VapourEnthalpyEnthalpy of vapour phase.doubleSpecificEnergy [J/kg]
FluidPhaseVapour, liquid or two-phase.PhaseUnset
BubblePointPressureMixture bubble point pressure at given temperature.doublePressure [Pa]
BubblePointTemperatureMixture bubble point temperature at given pressure.doubleTemperature [K]
DewPointPressureMixture dew point pressure at given temperature.doublePressure [Pa]
DewPointTemperatureMixture dew point temperature at given pressure.doubleTemperature [K]
TotalFluidDensityTotal fluid density (mass-based).doubleDensity [kg/m3]
LiquidMassFractionLiquid mass fraction.doubleFraction [fraction]

Back to reference home

Interval

A range of permitted values for the design variable when carrying out a design optimization workflow.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
LowerBoundaryThe lower boundary of the interval.double
UpperBoundaryThe upper boundary of the interval.double

Back to reference home

Leak

Leak scenario.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
HoleDiameterDiameter of the hole.doubleLength [m]
HoleHeightFractionLocation of the hole above the base of the vessel as a fraction of vessel height.double0.5Fraction [fraction]

Back to reference home

LineRupture

Line rupture scenario.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PipeDiameterInternal diameter of the short pipe.doubleLength [m]
PipeLengthLength of the short pipe.doubleLength [m]
PipeRoughnessRoughness of the short pipe.double0.000045Length [m]
PipeHeightFractionLocation of the pipe connection above the base of the vessel.double0.5Fraction [fraction]

Back to reference home

LocalPosition

Position with reference to some arbitrary local origin and axes.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
XX.double0Length [m]
YY.double0Length [m]
ZZ.double0Length [m]

Back to reference home

Material

Material.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
NameMaterial name.string
ComponentCountNumber of components in the material.int1
ComponentsConstituent components.MaterialComponent
PropertyTemplateProperty used template for material.PropertyTemplatePhastMC

Back to reference home

MaterialComponent

Constituent component of a material.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
NameName of the component.string
MoleFractionMole fraction of the component in the material.double1Fraction [fraction]

Back to reference home

MaterialComponentData

Material component data.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
NameName of the material component data.string
DipprVersionDIPPR version number.int
CasIdCAS id.int
DataItemList of data items defining the material component data.MaterialComponentDataItem

Back to reference home

MaterialComponentDataItem

Material component data item.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
DescriptionMaterial component data item description.string
EquationNumberEquation number.int
EquationStringEquation string.string
EquationCoefficientsEquation coefficients.double
CalculationLimitsCalculation limits.double
SupercriticalExtrapolationSuper critical extrapolation flag.double0
FractionTcFraction of critical temperature.double1

Back to reference home

MixtureConstantPropertiesResult

Mixture constant properties.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
LowerFlammabilityLimitDescription of new property.doubleFraction [fraction]
UpperFlammabilityLimitDescription of new property.doubleFraction [fraction]
CriticalPressureCritical pressure.doublePressure [Pa]
CriticalTemperatureCritical temperature.doubleTemperature [K]
FlammableToxicFlagFlammable or toxic flag.FlammableToxicInert
FlashPointFlash point.doubleTemperature [K]
HeatCombustionHeat of combustion.double
MaximumBurnRateMaximum burn rate.double
MaximumSEPMaximum surface emissive power.double
MolecularWeightMolecular weight.doubleMolecularWeight [kg/kmol]
BubblePointBubble point at atmospheric pressure.doubleTemperature [K]
PoolFireBurnRateLengthPool fire burn rate length.doubleLength [m]
LuminousSmokyFlameLuminous or smoky flame.LuminousSmokyFlameGeneral
DewPointDew point at atmospheric pressure.doubleTemperature [K]
EmissivePowerLengthScaleEmissive power length scale.doubleLength [m]
LaminarBurningVelocityLaminar burning velocity of mixture.doubleVelocity [m/s]

Back to reference home

Pipe

All pipe types.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
NodesPipeline nodes.LocalPosition
NodeCountNumber of nodes.int
DiameterPipe diameter.doubleLength [m]
RoughnessPipe roughness.double4.5e-5Length [m]
MaterialMaterial.Material
StateFluid state.State
PumpedInflowUpstream pumped inflow.double0MassFlowRate [kg/s]

Back to reference home

PipeBreach

Breach in a long pipe (runs GSPP / PBRK).

Properties

NameDescriptionTypeDefaultUnit classSI Unit
DistanceDownstreamDistance downstream.doubleLength [m]
RelativeApertureBreach relative aperture.double1Fraction [fraction]

Back to reference home

PoolFireFlameResult

Pool fire flame result.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PoolZoneSEPSurface emissive power from each of the two pool fire zones.doubleRadiationIntensity [W/m2]

Back to reference home

PoolRecord

Pool results at a given time.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TimeTime since rainout.doubleTime [s]
MassSpiltMass spilled.doubleMass [kg]
MassVaporisedMass vaporised.doubleMass [kg]
MassDissolvedMass dissolved.doubleMass [kg]
MassRemainingMass remaining.doubleMass [kg]
VapourisationRateVapourisation rate.doubleMassFlowRate [kg/s]
SolutionRateSolution rate.doubleMassFlowRate [kg/s]
EffectiveRadiusEffective radius.doubleLength [m]
DepthPool depth.doubleLength [m]
TemperaturePool temperature.doubleTemperature [K]
SpillRateSpill rate.doubleMassFlowRate [kg/s]
ActualRadiusActual pool radius.doubleLength [m]
PoolCentrePool centre.doubleLength [m]

Back to reference home

PoolVapourisationParameters

Pool vapourisation parameters.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ToxicsCutoffRateCutoff rate for toxic materials.double0.001MassFlowRate [kg/s]
FlammableCutoffRateCutoff rate for flammable materials.double0.1MassFlowRate [kg/s]
RelativeToleranceRelative tolerance.double0.001Fraction [fraction]

Back to reference home

PropertiesDipprPT1

Properties DIPPR part 1.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TotalStepsUsedDescription of new property.int
PressureArray of pressure values.doublePressure [Pa]
TemperatureArray of temperatures.doubleTemperature [K]
MassCompMass of the composition.double
MWCompDescription of new property.double
DangerousToxicLoadDangerous Toxic Load.double
PCritCritical pressure .doublePressure [Pa]
TCritDescription of new property.doubleTemperature [K]
TMeltMelting point.doubleTemperature [K]
TBoilBoiling point.doubleTemperature [K]
TFlashFlash point.doubleTemperature [K]
HCombHeat of combustion.double
LFLLower flammability limit - vol%.double
UFLupper flammability limit.double
CombAtCombustion coefficient At.double
CombCtCombustion coefficient Ct.double

Back to reference home

PropertiesDipprPT2

Properties DIPPR part 2.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
IgnitionCategoryIgnotion category.double
LamBurnVelocityLaminar burn velocity.doubleVelocity [m/s]
RhoLiqSatSaturated liquid density.double
PVapVapour pressure.double
CpIdealIdeal gas heat capacity.double
CpLiqLiquid heat capacity.double
CpRatioRatio of specific heat capacities.double
Virial2Second virial coefficient.double
MuVapVapour viscosity.double
MuLiqLiquid viscosity.double
KVapVapour thermal conductivity.double
KLiqLiquid thermal conductivity.double
HeatVapHeat of vaporisation.double
HVapIdealIdeal gas enthalpy.double
HLiqSatSaturated liquid enthalpy.double

Back to reference home

PropertiesDipprPT3

Properties DIPPR part 3.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
SVapSatSaturated vapour entropy.double
SLiqSatSaturated liquid entropy.double
RhoVapSatSaturated vapour density.double
HVapSatSaturated vapour enthalpy.double
RhoVapAtmVapour density at 1 atm.double
TVapSatSaturated vapour temperature.doubleTemperature [K]
SurfaceTensionSurface tension.double
RhoLiqLiquid density.double
HLiqLiquid enthalpy.double
SLiqLiquid entropy.double
RhoVapVapour density.double
HVapVapour enthalpy.double
SVapVapour entropy.double
ZVapVapour compressibility.double
SonicVelVapVapour sonic velocity.double

Back to reference home

PropertiesDnvPT1

Properties DNV part 1.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TotalStepsUsedTotal PT steps.int
PressurePressure.doublePressure [Pa]
TemperatureTemperature.doubleTemperature [K]
MassCompComposition.double
FlamTox Flammable/toxic flag.double
LumSmokyLuminous smoky flame flag.double
SepMaxMaximum surface emissive power.double
SepLengthEmissive power length scale.double
PoolFireBurnRatePool fire burn rate length.doubleLength [m]
BurnRateMaxMaximum burn rate.double
TNTEfficiencyTNT explosion efficiency.double
ERPG1ERPG1 concentration.double
ERPG2ERPG2 concentration.double
ERPG3ERPG3 concentration.double
IDLHIDLH concentration.double
STELSTEL concentration.double

Back to reference home

PropertiesDnvPT2

Properties DNV part 2.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ToxicNToxic property N.double
ToxicAToxic property A.double
ToxicBToxic property B.double
HIntRangeEnthalpy interpolation range.doubleTemperature [K]
LiqWaterSurfTenLiquid water surface tension.double
SolubilityWaterSolubility in water.double
HeatSolutionHeat of solution.double
WaterReactionFlagReaction with water flag.double
AlphaWaterWater heat transfer coefficient.double
ProbDelayedExpContProbability of delayed explosion (continuous).double
ProbDelayedExpInstProbability of delayed explosion (instantaneous & QI).double
ProbDelayedFlashFireContProbability of delayed flash fire (continuous).double
ProbDelayedFlashFireInstProbability of delayed flash fire (instantaneous & QI).double
ProbDelayedIgnitionProbability of delayed ignition (cont., inst. & QI).double
ProbEarlyIgnitionContProbability of early ignition (continuous).double

Back to reference home

PropertiesDnvPT3

Properties DNV part 3.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ProbEarlyIgnitionInstProbability of early ignition (instantaneous & QI).double
ProbEarlyPoolFireProbability of early pool fire.double
ProbFireballProbability of fireball.double
ProbFreeJetExpProbability of free jet explosion.double
ProbFreeJetFireProbability of free jet fire.double
ProbLatePoolFireProbability of late pool fire.double
DimerCoeffDimer coefficient.double
TrimerCoeffTrimer coefficient.double
HexamerCoeffHexamer coefficient.double
OctamerCoeffOctamer coefficient.double
HLiqWaterLiquid water enthalpy .double
PVapSatLnNatural log of the saturated vap. pressure.double
DPVapSatLnDTFirst derivative of the natural log of sat.vap.pres. w.r.t. temp.double
D2PVapSatLnDT2Second der. of the natural log. of sat.vap.pres. w.r.t. temp.double

Back to reference home

PTRange

Range of pressure and temperature.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PressureLowStart value of pressure range.doublePressure [Pa]
PressureHighEnd value of pressure range.doublePressure [Pa]
TempLowStart value of temperature range.doubleTemperature [K]
TempHighEnd value of temperature range.doubleTemperature [K]
StepsPerVariableDescription of new property.int20

Back to reference home

RadiationRecord

Radiation type and level at specific point (x,y,z).

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PositionCartesian coordinates of a specific point.LocalPosition
RadiationTypeType of radiation result.RadiationTypeUnset
RadiationResultRadiation level.double

Back to reference home

ReliefValve

Relief valve scenario.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ReliefValveConstrictionDiameterConstriction at the upstream end of the pipe.doubleLength [m]
PipeDiameterInternal diameter of the short pipe.doubleLength [m]
PipeLengthLength of the short pipe.doubleLength [m]
PipeRoughnessRoughness of the short pipe.double0.000045Length [m]
PipeHeightFractionLocation of the pipe connection above the base of the vessel.double0.5Fraction [fraction]

Back to reference home

ScalarUdmOutputs

Scalar UDM output values required for post processing dispersion results.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ObserverCountNumber of observers.int
RecordCountNumber of records.int
CloudTypeCloud type.DynamicTypeUnset
MinimumConcentrationMinimum concentration.doubleFraction [fraction]
WindPowerWind power.double
FrictionVelocityFriction velocity.doubleVelocity [m/s]
DispersionReleaseDurationWhen is the last release observer released?.doubleTime [s]

Back to reference home

ShortPipeRupture

Short pipe rupture scenario.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PipeLengthLength of short pipe.doubleLength [m]
PipeDiameterInner diameter of the short pipe.doubleLength [m]
PipeRoughnessRoughness of the short pipe.double0.000045Length [m]
PipeHeightFractionLocation of the pipe connection above the base of the vessel.double0.5Fraction [fraction]

Back to reference home

State

Description of the fluid state.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PressureAbsolute pressure of the fluid.doublePressure [Pa]
TemperatureTemperature of the fluid.doubleTemperature [K]
LiquidFractionMole fraction of liquid in the fluid.doubleFraction [fraction]
FlashFlagHow fluid equilibrium is specified.FluidSpecTP
MixtureModellingMixture modelling: Pseudo-component (=0), MC single aerosol (=1), MC multiple aerosol (=3).MixtureModellingPC

Back to reference home

Structure

A building or process plant structure.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
ExplosionConfinedVolumeExplosion confined volume.ExplosionConfinedVolume
LocationLocation of the structure.LocalPositionLocalPosition()

Back to reference home

Substrate

The ground over which a release is taking place.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
SurfaceRoughnessSurface roughness length.double0.183Length [m]
SurfaceTypeDispersing surface type.SurfaceTypeLand
PoolSurfaceTypePool or bund surface type.PoolSurfaceTypeConcrete
BundBund data.BundBund()

Back to reference home

ThermoPathRecord

Contains a point on the thermodynamic depressurization trajectory for each of isothermal, isentropic and isenthalpic assumptions.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PressureAbsolute pressure value at specific point on the thermodynamic path.doublePressure [Pa]
BubbleTemperatureBubble point temperature at given pressure.doubleTemperature [K]
DewTemperatureDew point temperature at given pressure.doubleTemperature [K]
IsentropicTemperatureTemperature at given pressure following isentropic depressurization.doubleTemperature [K]
IsenthalpicTemperatureTemperature at given pressure following isenthalpic depressurization.doubleTemperature [K]
IsothermalTemperatureTemperature at given pressure following isothermal depressurization.doubleTemperature [K]

Back to reference home

ToxicRecord

Toxic result: dose, probit or lethality.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
PositionCartesian coordinates of a specific point.LocalPosition
ToxicResultTypeType of toxic result.ToxicResultTypeUnset
ToxicResultDose, probit or lethality level.double

Back to reference home

Transect

Definition of transect (line segment).

Properties

NameDescriptionTypeDefaultUnit classSI Unit
TransectStartPointCartesian coordinates of start point of transect.LocalPositionLocalPosition()
TransectEndPointCartesian coordinates of end point of transect.LocalPositionLocalPosition()

Back to reference home

Vessel

All vessel types.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
StateFluid specification (at liquid surface).State
DiameterInternal diameter of the vessel.double2Length [m]
HeightInternal height of the vessel.double4Length [m]
LengthInternal length of the vessel.double4Length [m]
WidthInternal width of the vessel.double0.0Length [m]
ShapeShape.VesselShapeHorizontalCylinder
MaterialMaterial.Material
VesselConditionsVessel conditions.VesselConditionsUnset
LiquidFillFractionByVolumeThe liquid fill fraction in the vessel by volume.double0.0Fraction [fraction]

Back to reference home

VesselLeakMaxFlammableCloudResults

Results for a linked run of vessel leak followed by dispersion and views from the cloud.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
DischargeRateLeak discharge mass rate.doubleMassFlowRate [kg/s]
ExpandedTemperaturePost atmospheric expansion temperature.doubleTemperature [K]
PhasePost atmospheric expansion fluid phase.PhaseUnset
LFLExtentMaximum downwind distance to LFL.doubleLength [m]
LFLAreaHorizontal area within LFL envelope.doubleArea [m2]
LFLHeightHeight of maximum LFL extent.doubleLength [m]

Back to reference home

VesselRuleSet

Rule set for generating scenarios from a vessel.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
UseTimeVaryingUse time-varying leaks.boolfalse
IncludeCatastrophicRuptureInclude catastrophic rupture scenarios.boolfalse
HoleDiametersHole diameters for leaks.doubleLength [m]
NumberOfDiametersNumber of hole diameters (<= 5).int3

Back to reference home

VesselSphere

Vessel sphere.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
StateThe thermodynamic state of the fluid.State
MaterialMaterial.Material
MassInventoryMass inventory.doubleMass [kg]

Back to reference home

Weather

A sum of the meteorological conditions at the time.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
WindSpeedWind speed at reference height.double5Velocity [m/s]
StabilityClassStability class.AtmosphericStabilityClassStabilityD
TemperatureAmbient temperature.double283Temperature [K]
RelativeHumidityRelative humidity.double0.7Fraction [fraction]
MixingLayerHeightMixing layer height.double800Length [m]
SolarRadiationSolar radiation flux.double500RadiationIntensity [W/m2]

Back to reference home

WeatherStationData

Compiled data from weather live service.

Properties

NameDescriptionTypeDefaultUnit classSI Unit
LatitudeLatitude measured in degrees.double0.0Angle [Radians]
LongitudeLongitude coordinate in degrees.double0.0Angle [Radians]
DayNightOptionIndicates if it is day or night.DayNightUnset
CloudinessCloud coverage in percentage.double
WindSpeedWind speed at reference height.doubleVelocity [m/s]
TemperatureAmbient temperature.doubleTemperature [K]
RelativeHumidityRelative humidity.doubleFraction [fraction]
SolarRadiationSolar radiation flux.double500RadiationIntensity [W/m2]

Back to reference home

Calculations

The following is a list of available calculations.

Back to reference home

ConcentrationAtPointCalculation

Calculate the concentration at a specified point in time.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcentrationConcentration at a position of interest.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of ConcentrationAtPointCalculation.

The following shows the inputs required to instantiate an instance of the ConcentrationAtPointCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

concentration_at_point_calculation = ConcentrationAtPointCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

ConvertCompositionMassToMoleCalculation

Converts mixture composition from mass to mole basis.

Input data

NameDescriptionType
MixtureMixture to have composition converted.Material
CompositionMassInput composition of mixture in mass basis.double
CompositionMassCountNumber of components in mixture.int

Output data

NameDescriptionType
CompositionMoleOutput composition of mixture in mole basis.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of ConvertCompositionMassToMoleCalculation.

The following shows the inputs required to instantiate an instance of the ConvertCompositionMassToMoleCalculation class:

mixture = Mixture(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
composition_mass =
composition_mass_count = Length of the composition_masss list

convert_composition_mass_to_mole_calculation = ConvertCompositionMassToMoleCalculation(mixture: Material, composition_mass: list[float], composition_mass_count: int)

Back to reference home

ConvertCompositionMoleToMassCalculation

Converts mixture composition from mole to mass basis.

Input data

NameDescriptionType
MixtureMixture to have composition converted.Material
CompositionMolesInput composition of mixture in mole basis.double
CompositionMolesCountNumber of components in mixture.int

Output data

NameDescriptionType
CompositionMassOutput composition of mixture in mass basis.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of ConvertCompositionMoleToMassCalculation.

The following shows the inputs required to instantiate an instance of the ConvertCompositionMoleToMassCalculation class:

mixture = Mixture(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
composition_moles =
composition_moles_count = Length of the composition_moless list

convert_composition_mole_to_mass_calculation = ConvertCompositionMoleToMassCalculation(mixture: Material, composition_moles: list[float], composition_moles_count: int)

Back to reference home

DispersionCalculation

Outdoor dispersion calculations.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
SubstrateThe dispersing surface.Substrate
DischargeResultDischarge / source term definition.DischargeResult
DischargeRecordsDischarge / source term definition.DischargeRecord
DischargeRecordCountNumber of discharge records.int
WeatherWeather.Weather
DispersionParametersDispersion parameters.DispersionParameters
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double

Output data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WriteDispersionRecordCallbackArray of Dispersion records.DispersionRecord
WritePoolRecordCallbackArray of Pool records.PoolRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DispersionCalculation.

The following shows the inputs required to instantiate an instance of the DispersionCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
discharge_result = DischargeResult(expansion_energy: float, release_mass: float, height: float, angle: float, hole_diameter: float, release_type: DynamicType, pre_dilution_air_rate: float=0)
discharge_records = discharge_records: list[DischargeRecords]
discharge_record_count = Length of the discharge_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)
end_point_concentration = Value of type float

dispersion_calculation = DispersionCalculation(material: Material, substrate: Substrate, discharge_result: DischargeResult, discharge_records: list[DischargeRecord], discharge_record_count: int, weather: Weather, dispersion_parameters: DispersionParameters, end_point_concentration: float)

Back to reference home

DistancesAndEllipsesToRadiationLevelsCalculation

Distances and ellipses to prescribed radiation intensity levels.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigsSettings of radiation calculations.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int

Output data

NameDescriptionType
DistancesDistances to radiation levels.double
WriteContourPointCallbackContour points of radiation ellipses to radiation levels.LocalPosition
NContourPointsNumber of contour points per radiation level.int
AreasArea of the ellipse to radiation levels.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistancesAndEllipsesToRadiationLevelsCalculation.

The following shows the inputs required to instantiate an instance of the DistancesAndEllipsesToRadiationLevelsCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list

distances_and_ellipses_to_radiation_levels_calculation = DistancesAndEllipsesToRadiationLevelsCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int)

Back to reference home

DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation

Distances and ellipses to prescribed radiation intensity levels for pool fires.

Input data

NameDescriptionType
PoolFireFlameResultScalar pool fire flame results.PoolFireFlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigsSettings of radiation calculations.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int

Output data

NameDescriptionType
DistancesDistances to radiation levels.double
WriteContourPointCallbackContour points of radiation ellipses to radiation levels.LocalPosition
NContourPointsNumber of contour points per radiation level.int
AreasArea of the ellipse to radiation levels.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation.

The following shows the inputs required to instantiate an instance of the DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation class:

pool_fire_flame_result = PoolFireFlameResult(pool_zone_sep: list[float])
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list

distances_and_ellipses_to_radiation_levels_for_pool_fires_calculation = DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation(pool_fire_flame_result: PoolFireFlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int)

Back to reference home

DistancesAndFootprintsToConcentrationLevelsCalculation

Distances and maximum footprints to prescribed concentration of interest levels.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs (i.e. one per scenario/weather).ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigsDispersion view configurations.DispersionOutputConfig
DispersionOutputConfigCountNumber of dispersion view configurations.int
DispersionParametersDispersion parameters.DispersionParameters
MaterialMaterial with post-discharge composition.Material

Output data

NameDescriptionType
ConcsUsedConcentrations of interest.double
NContourPointsNumber of contour points per concentration level.int
AreasContourAreas of footprint contours.double
DistancesConcentrationMaximum distances downwind per concentration level.double
WriteContourPointCallbackContour points of maximum footprints to concentration level.LocalPosition
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistancesAndFootprintsToConcentrationLevelsCalculation.

The following shows the inputs required to instantiate an instance of the DistancesAndFootprintsToConcentrationLevelsCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_configs = dispersion_output_configs: list[DispersionOutputConfigs]
dispersion_output_config_count = Length of the dispersion_output_configs list
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)

distances_and_footprints_to_concentration_levels_calculation = DistancesAndFootprintsToConcentrationLevelsCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_configs: list[DispersionOutputConfig], dispersion_output_config_count: int, dispersion_parameters: DispersionParameters, material: Material)

Back to reference home

DistancesToConcLevelsCalculation

Calculates the maximum distance to a number of concentration levels.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigsConcentration levels.DispersionOutputConfig
DispersionOutputConfigCountNumber of concentration levels.int
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcUsedConcentrations of interest.double
DistancesDistances to concentration of interest.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistancesToConcLevelsCalculation.

The following shows the inputs required to instantiate an instance of the DistancesToConcLevelsCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_configs = dispersion_output_configs: list[DispersionOutputConfigs]
dispersion_output_config_count = Length of the dispersion_output_configs list
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

distances_to_conc_levels_calculation = DistancesToConcLevelsCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_configs: list[DispersionOutputConfig], dispersion_output_config_count: int, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

DistancesToRadiationLevelsCalculation

Distances to prescribed radiation intensity levels.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigsFlammable output configurations.FlammableOutputConfig
FlammableOutputConfigCountNumber of flammable output configurations.int

Output data

NameDescriptionType
DistancesDistances to radiation level.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistancesToRadiationLevelsCalculation.

The following shows the inputs required to instantiate an instance of the DistancesToRadiationLevelsCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list

distances_to_radiation_levels_calculation = DistancesToRadiationLevelsCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int)

Back to reference home

DistanceToRadiationCalculation

Distance to radiation calculation.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
DistanceDistance to radiation level.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of DistanceToRadiationCalculation.

The following shows the inputs required to instantiate an instance of the DistanceToRadiationCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

distance_to_radiation_calculation = DistanceToRadiationCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

FireballCalculation

Fireball calculation.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
StateThe thermodynamic conditions.State
DischargeRecordsDischarge / source term definition.DischargeRecord
DischargeRecordCountNumber of discharge records.int
DischargeResultDischarge / source term definition.DischargeResult
WeatherWeather.Weather

Output data

NameDescriptionType
FlameResultFlame scalar result.FlameResult
WriteFlameRecordCallbackArray of fireball flame records.FlameRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of FireballCalculation.

The following shows the inputs required to instantiate an instance of the FireballCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
state = State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling)
discharge_records = discharge_records: list[DischargeRecords]
discharge_record_count = Length of the discharge_records list
discharge_result = DischargeResult(expansion_energy: float, release_mass: float, height: float, angle: float, hole_diameter: float, release_type: DynamicType, pre_dilution_air_rate: float=0)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)

fireball_calculation = FireballCalculation(material: Material, state: State, discharge_records: list[DischargeRecord], discharge_record_count: int, discharge_result: DischargeResult, weather: Weather)

Back to reference home

FlareStackDesignerCalculation

Flare stack designer application.

Input data

NameDescriptionType
FlareStackFlare stack asset.FlareStack
FlareStackConstraintData that defines the design requirements.Constraint
WeatherWeather.Weather
DischargeParametersDischarge parameters.DischargeParameters
SubstrateSubstrate data.Substrate
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigDefines the flammable results of interest.FlammableOutputConfig

Output data

NameDescriptionType
DesignSolutionValue of design variable that satisfies the design target.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of FlareStackDesignerCalculation.

The following shows the inputs required to instantiate an instance of the FlareStackDesignerCalculation class:

flare_stack = FlareStack(material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), flare_stack_height: float, flare_stack_tip_diameter: float, flare_stack_conditions: VesselConditions)
flare_stack_constraint = FlareStackConstraint(target_variable_value: float, interval : Interval(lower_boundary: float, upper_boundary: float), target_variable: TargetVariable, design_variable: DesignVariable)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

flare_stack_designer_calculation = FlareStackDesignerCalculation(flare_stack: FlareStack, flare_stack_constraint: Constraint, weather: Weather, discharge_parameters: DischargeParameters, substrate: Substrate, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

FlashCalculation

Generates properties for a material at specific input fluid conditions.

Input data

NameDescriptionType
MaterialUser-defined input material, pure component or mixture (max 20 components).Material
MaterialStateDescribes the fluid pressure, temperature, liquid fraction.State

Output data

NameDescriptionType
FlashResultFluid properties at given conditions.FlashResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of FlashCalculation.

The following shows the inputs required to instantiate an instance of the FlashCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
material_state = MaterialState(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling)

flash_calculation = FlashCalculation(material: Material, material_state: State)

Back to reference home

GetMassFromVesselCalculation

Calculates the mass in a vessel.

Input data

NameDescriptionType
VesselVessel (pressurised).Vessel

Output data

NameDescriptionType
MassInventoryMass inventory in the vessel (kg).double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of GetMassFromVesselCalculation.

The following shows the inputs required to instantiate an instance of the GetMassFromVesselCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)

get_mass_from_vessel_calculation = GetMassFromVesselCalculation(vessel: Vessel)

Back to reference home

JetFireCalculation

Cone jet fire calculations.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
DischargeRecordsDischarge / source term definition.DischargeRecord
DischargeRecordCountNumber of discharge records.int
DischargeResultDischarge / source term definition.DischargeResult
WeatherWeather.Weather
SubstrateSubstrate.Substrate
FlammableParametersFlammable parameters.FlammableParameters

Output data

NameDescriptionType
FlameResultFlame scalar results.FlameResult
WriteFlameRecordCallbackArray of jet fire flame records.FlameRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of JetFireCalculation.

The following shows the inputs required to instantiate an instance of the JetFireCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
discharge_records = discharge_records: list[DischargeRecords]
discharge_record_count = Length of the discharge_records list
discharge_result = DischargeResult(expansion_energy: float, release_mass: float, height: float, angle: float, hole_diameter: float, release_type: DynamicType, pre_dilution_air_rate: float=0)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)

jet_fire_calculation = JetFireCalculation(material: Material, discharge_records: list[DischargeRecord], discharge_record_count: int, discharge_result: DischargeResult, weather: Weather, substrate: Substrate, flammable_parameters: FlammableParameters)

Back to reference home

LateExplosionCalculation

Explosion calculations using the multi-energy method.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
ScalarUdmOutputsDispersion scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsCloud definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateSubstrate.Substrate
DispersionOutputConfigSpecification of cloud view.DispersionOutputConfig
ExplosionOutputConfigExplosion output configuration.ExplosionOutputConfig
ExplosionParametersExplosion parameters.ExplosionParameters
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ExplosionUnifConfOverpressureResultUniform confined explosion overpressure result.ExplosionOverpressureResult
ExplosionUnconfOverpressureResultUnconfined explosion overpressure result.ExplosionOverpressureResult
ResultCodeEror code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LateExplosionCalculation.

The following shows the inputs required to instantiate an instance of the LateExplosionCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
explosion_output_config = ExplosionOutputConfig(overpressure_level: float=2068, me_confined_method: MEConfinedMethod)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

late_explosion_calculation = LateExplosionCalculation(material: Material, scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, explosion_output_config: ExplosionOutputConfig, explosion_parameters: ExplosionParameters, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int, dispersion_parameters: DispersionParameters)

Back to reference home

LateExplosionToOPLevelsCalculation

Explosion calculations using the multi-energy method to multiple over-pressure levels.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
ScalarUdmOutputsDispersion scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsCloud definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateSubstrate.Substrate
DispersionOutputConfigSpecification of cloud view.DispersionOutputConfig
ExplosionOutputConfigsExplosion output configurations.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of explosion output configurations.int
ExplosionParametersExplosion parameters.ExplosionParameters
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ExplosionUnifConfOverpressureResultsUniform confined explosion overpressure results.ExplosionOverpressureResult
ExplosionUnconfOverpressureResultsUnconfined explosion overpressure results.ExplosionOverpressureResult
ResultCodeEror code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LateExplosionToOPLevelsCalculation.

The following shows the inputs required to instantiate an instance of the LateExplosionToOPLevelsCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

late_explosion_to_oplevels_calculation = LateExplosionToOPLevelsCalculation(material: Material, scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_parameters: ExplosionParameters, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int, dispersion_parameters: DispersionParameters)

Back to reference home

LethalityDistanceCalculation

Calculates toxic lethality vs distance.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
WriteToxicRecordCallbackArray of toxic results.ToxicRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LethalityDistanceCalculation.

The following shows the inputs required to instantiate an instance of the LethalityDistanceCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

lethality_distance_calculation = LethalityDistanceCalculation(material: Material, scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, dispersion_parameters: DispersionParameters)

Back to reference home

LoadMassInventoryVesselForLeakScenarioCalculation

Sets up a vessel and a leak scenario from a mass inventory, pressure, temperature and hole size specifications.

Input data

NameDescriptionType
MaterialVessel material.Material
MassTotal vessel mass inventory.double
PressureVessel pressure in absolute scale.double
TemperatureVessel temperature.double
HoleSizeLeak hole size.double
ReleaseElevationRelease elevation.double
ReleaseAngleRelease angle.double

Output data

NameDescriptionType
VesselVessel definition.Vessel
LeakLeak scenario.Leak
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LoadMassInventoryVesselForLeakScenarioCalculation.

The following shows the inputs required to instantiate an instance of the LoadMassInventoryVesselForLeakScenarioCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
mass = Value of type float
pressure = Value of type float
temperature = Value of type float
hole_size = Value of type float
release_elevation = Value of type float
release_angle = Value of type float

load_mass_inventory_vessel_for_leak_scenario_calculation = LoadMassInventoryVesselForLeakScenarioCalculation(material: Material, mass: float, pressure: float, temperature: float, hole_size: float, release_elevation: float, release_angle: float)

Back to reference home

LoadMassInventoryVesselForLineRuptureScenarioCalculation

Sets up a vessel and a line rupture scenario from a mass inventory, pressure, temperature, pipe diameter and length specifications.

Input data

NameDescriptionType
MaterialVessel material.Material
MassTotal vessel mass inventory.double
PressureVessel pressure in absolute scale.double
TemperatureVessel temperature.double
PipeDiameterPipe diameter.double
PipeLengthPipe length.double
ReleaseElevationRelease elevation.double
ReleaseAngleRelease angle.double

Output data

NameDescriptionType
VesselVessel definition.Vessel
LineRuptureLine rupture.LineRupture
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LoadMassInventoryVesselForLineRuptureScenarioCalculation.

The following shows the inputs required to instantiate an instance of the LoadMassInventoryVesselForLineRuptureScenarioCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
mass = Value of type float
pressure = Value of type float
temperature = Value of type float
pipe_diameter = Value of type float
pipe_length = Value of type float
release_elevation = Value of type float
release_angle = Value of type float

load_mass_inventory_vessel_for_line_rupture_scenario_calculation = LoadMassInventoryVesselForLineRuptureScenarioCalculation(material: Material, mass: float, pressure: float, temperature: float, pipe_diameter: float, pipe_length: float, release_elevation: float, release_angle: float)

Back to reference home

LoadMassInventoryVesselForReliefValveScenarioCalculation

Sets up a vessel and a relief valve scenario from a mass inventory, pressure, temperature, pipe diameter, lenght and constriction size specifications.

Input data

NameDescriptionType
MaterialVessel material.Material
MassTotal vessel mass inventory.double
PressureVessel pressure in absolute scale.double
TemperatureVessel temperature.double
ConstrictionSizeConstriction size.double
PipeDiameterPipe diameter.double
PipeLengthPipe length.double
ReleaseElevationRelease elevation.double
ReleaseAngleRelease angle.double

Output data

NameDescriptionType
VesselVessel definition.Vessel
ReliefValveRelief valve.ReliefValve
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LoadMassInventoryVesselForReliefValveScenarioCalculation.

The following shows the inputs required to instantiate an instance of the LoadMassInventoryVesselForReliefValveScenarioCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
mass = Value of type float
pressure = Value of type float
temperature = Value of type float
constriction_size = Value of type float
pipe_diameter = Value of type float
pipe_length = Value of type float
release_elevation = Value of type float
release_angle = Value of type float

load_mass_inventory_vessel_for_relief_valve_scenario_calculation = LoadMassInventoryVesselForReliefValveScenarioCalculation(material: Material, mass: float, pressure: float, temperature: float, constriction_size: float, pipe_diameter: float, pipe_length: float, release_elevation: float, release_angle: float)

Back to reference home

LongPipeBreachCalculation

Release from a breach in a long pipeline.

Input data

NameDescriptionType
PipePipe equipment item.Pipe
PipeBreachLong pipeline scenario.PipeBreach
DischargeParametersDischarge parameters.DischargeParameters

Output data

NameDescriptionType
ExitMaterialComposition of the released material (indentical to storage composition - using PC mode).Material
DischargeResultScalar discharge results.DischargeResult
WriteDischargeRecordCallbackArray of discharge records.DischargeRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of LongPipeBreachCalculation.

The following shows the inputs required to instantiate an instance of the LongPipeBreachCalculation class:

pipe = Pipe(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), node_count: int, diameter: float, material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), roughness: float=4.5e-5, pumped_inflow: float=0)
pipe_breach = PipeBreach(distance_downstream: float, relative_aperture: float=1)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)

long_pipe_breach_calculation = LongPipeBreachCalculation(pipe: Pipe, pipe_breach: PipeBreach, discharge_parameters: DischargeParameters)

Back to reference home

MaxConcDistanceCalculation

Maximum concentration vs distance for a dispersing cloud.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcUsedConcentration of interest.double
WriteConcentrationRecordCallbackArray of maximum concentration at x, y, z coordinates.ConcentrationRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of MaxConcDistanceCalculation.

The following shows the inputs required to instantiate an instance of the MaxConcDistanceCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

max_conc_distance_calculation = MaxConcDistanceCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

MaxConcFootprintCalculation

Maximum concentration footprint to a specified concentration.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcUsedConcentration of interest.double
WriteContourPointCallbackArray of footprint results.LocalPosition
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of MaxConcFootprintCalculation.

The following shows the inputs required to instantiate an instance of the MaxConcFootprintCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

max_conc_footprint_calculation = MaxConcFootprintCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

MaxDistanceToConcCalculation

Calculate the maximum distance to a specified concentration.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcUsedConcentration of interest.double
DistanceMaximum distance to concentration of interest.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of MaxDistanceToConcCalculation.

The following shows the inputs required to instantiate an instance of the MaxDistanceToConcCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

max_distance_to_conc_calculation = MaxDistanceToConcCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

MixtureConstantPropertiesCalculation

Generates constant properties for a mixture.

Input data

NameDescriptionType
MaterialUser-defined input material (max 20 components).Material

Output data

NameDescriptionType
MixConstantPropResultConstant properties of the mixture.MixtureConstantPropertiesResult
ResultCodeResponse code.ResultCode

Instantiating an instance of MixtureConstantPropertiesCalculation.

The following shows the inputs required to instantiate an instance of the MixtureConstantPropertiesCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)

mixture_constant_properties_calculation = MixtureConstantPropertiesCalculation(material: Material)

Back to reference home

PoolFireCalculation

Pool fire calculations.

Input data

NameDescriptionType
MaterialMaterial with post-discharge composition.Material
PoolRecordsPool / source term definition.PoolRecord
PoolRecordCountNumber of pool records.int
WeatherWeather.Weather
SubstrateSubstrate.Substrate
FlammableParametersFlammable parameters.FlammableParameters

Output data

NameDescriptionType
PoolFireFlameResultFlame scalar result.PoolFireFlameResult
WriteFlameRecordCallbackArray of pool fire flame records.FlameRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of PoolFireCalculation.

The following shows the inputs required to instantiate an instance of the PoolFireCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
pool_records = pool_records: list[PoolRecords]
pool_record_count = Length of the pool_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)

pool_fire_calculation = PoolFireCalculation(material: Material, pool_records: list[PoolRecord], pool_record_count: int, weather: Weather, substrate: Substrate, flammable_parameters: FlammableParameters)

Back to reference home

RadiationAtAPointCalculation

Radiation at a point calculations for flammable models.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
RadiationRadiation at a point.double
ResultCodeResponse code.ResultCode

Instantiating an instance of RadiationAtAPointCalculation.

The following shows the inputs required to instantiate an instance of the RadiationAtAPointCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

radiation_at_apoint_calculation = RadiationAtAPointCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

RadiationAtAPointForPoolFiresCalculation

Radiation at a point calculations for pool fires.

Input data

NameDescriptionType
PoolFireFlameResultScalar flame results.PoolFireFlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
RadiationRadiation at a point.double
ResultCodeResponse code.ResultCode

Instantiating an instance of RadiationAtAPointForPoolFiresCalculation.

The following shows the inputs required to instantiate an instance of the RadiationAtAPointForPoolFiresCalculation class:

pool_fire_flame_result = PoolFireFlameResult(pool_zone_sep: list[float])
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

radiation_at_apoint_for_pool_fires_calculation = RadiationAtAPointForPoolFiresCalculation(pool_fire_flame_result: PoolFireFlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

RadiationAtPointsCalculation

Radiation at point calculations for flammable models.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigsSettings for radiation coordinates.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation coordinates.int

Output data

NameDescriptionType
RadiationArray of radiation at a point.double
ResultCodeResponse code.ResultCode

Instantiating an instance of RadiationAtPointsCalculation.

The following shows the inputs required to instantiate an instance of the RadiationAtPointsCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list

radiation_at_points_calculation = RadiationAtPointsCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int)

Back to reference home

RadiationAtPointsForPoolFiresCalculation

Radiation at point calculations for pool fires.

Input data

NameDescriptionType
PoolFireFlameResultScalar flame results.PoolFireFlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigsSettings for radiation coordinates.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation coordinates.int

Output data

NameDescriptionType
RadiationArray of radiation at a point.double
ResultCodeResponse code.ResultCode

Instantiating an instance of RadiationAtPointsForPoolFiresCalculation.

The following shows the inputs required to instantiate an instance of the RadiationAtPointsForPoolFiresCalculation class:

pool_fire_flame_result = PoolFireFlameResult(pool_zone_sep: list[float])
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list

radiation_at_points_for_pool_fires_calculation = RadiationAtPointsForPoolFiresCalculation(pool_fire_flame_result: PoolFireFlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int)

Back to reference home

RadiationContourCalculation

Radiation contour calculations.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
WriteContourPointCallbackArray of contour points.LocalPosition
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of RadiationContourCalculation.

The following shows the inputs required to instantiate an instance of the RadiationContourCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

radiation_contour_calculation = RadiationContourCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

RadiationTransectCalculation

Radiation transect calculations.

Input data

NameDescriptionType
FlameResultScalar flame results.FlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
WriteRadiationRecordCallbackArray of radiation results along transect.RadiationRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of RadiationTransectCalculation.

The following shows the inputs required to instantiate an instance of the RadiationTransectCalculation class:

flame_result = FlameResult(time: float, surface_emissive_power: float, flame_length: float, flame_diameter: float, fire_type: FireType)
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

radiation_transect_calculation = RadiationTransectCalculation(flame_result: FlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

RadiationTransectForPoolFiresCalculation

Radiation transect calculations for pool fires.

Input data

NameDescriptionType
PoolFireFlameResultPool fire flame results.PoolFireFlameResult
FlameRecordsFlame definition.FlameRecord
FlameRecordCountNumber of flame records.int
WeatherWeather.Weather
FlammableParametersFlammable parameters.FlammableParameters
FlammableOutputConfigSettings of flammable contours view.FlammableOutputConfig

Output data

NameDescriptionType
WriteRadiationRecordCallbackArray of radiation results along transect.RadiationRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of RadiationTransectForPoolFiresCalculation.

The following shows the inputs required to instantiate an instance of the RadiationTransectForPoolFiresCalculation class:

pool_fire_flame_result = PoolFireFlameResult(pool_zone_sep: list[float])
flame_records = flame_records: list[FlameRecords]
flame_record_count = Length of the flame_records list
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
flammable_output_config = FlammableOutputConfig(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), transect : Transect(local_position : LocalPosition(x: float=0, y: float=0, z: float=0), local_position : LocalPosition(x: float=0, y: float=0, z: float=0)), radiation_type: RadiationType, contour_type: ContourType, radiation_level: float=4000, radiation_resolution: Resolution, fixed_orientation: int=0, orientation: float=0, fixed_inclination: int=0, inclination: float=0)

radiation_transect_for_pool_fires_calculation = RadiationTransectForPoolFiresCalculation(pool_fire_flame_result: PoolFireFlameResult, flame_records: list[FlameRecord], flame_record_count: int, weather: Weather, flammable_parameters: FlammableParameters, flammable_output_config: FlammableOutputConfig)

Back to reference home

ReliefValveMinTemperatureCalculation

Calculates minimum allowed input temperature for the Phast Online Relief Valve app.

Input data

NameDescriptionType
MaterialMaterial.Material
PressureInput pressure (absolute) at which to evaluate bubble point temperature.double

Output data

NameDescriptionType
MinTemperatureCalculated lower temperature limit for relief valve scenario.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of ReliefValveMinTemperatureCalculation.

The following shows the inputs required to instantiate an instance of the ReliefValveMinTemperatureCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
pressure = Value of type float

relief_valve_min_temperature_calculation = ReliefValveMinTemperatureCalculation(material: Material, pressure: float)

Back to reference home

SetMixingLayerHeightCalculation

Sets the mixing layer height according to the stability class, based on default weather parameters from Phast.

Input data

NameDescriptionType
WeatherWeather data.Weather

Output data

NameDescriptionType
UpdatedWeatherUpdated weather data.Weather
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SetMixingLayerHeightCalculation.

The following shows the inputs required to instantiate an instance of the SetMixingLayerHeightCalculation class:

weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)

set_mixing_layer_height_calculation = SetMixingLayerHeightCalculation(weather: Weather)

Back to reference home

SetPhaseToReleaseForLeakScenarioCalculation

Calculates the hole height fraction and vessel z coordinate to release the requested phase (vapour or liquid).

Input data

NameDescriptionType
PhaseToReleaseRequested fluid phase to release.Phase
ReleaseElevationRelease point elevation above ground.double
VesselVessel definition input.Vessel

Output data

NameDescriptionType
ZCoordUpdatedUpdated z-coordinate of vessel to accommodate requested phase to release.double
HoleHeightFractionUpdatedUpdated hole height fraction to accommodate requested phase to release.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SetPhaseToReleaseForLeakScenarioCalculation.

The following shows the inputs required to instantiate an instance of the SetPhaseToReleaseForLeakScenarioCalculation class:

phase_to_release = One of the enum values for Phase
release_elevation = Value of type float
vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)

set_phase_to_release_for_leak_scenario_calculation = SetPhaseToReleaseForLeakScenarioCalculation(phase_to_release: Phase, release_elevation: float, vessel: Vessel)

Back to reference home

SetPhaseToReleaseForLineRuptureScenarioCalculation

Calculates the pipe height fraction and vessel z coordinate to release the requested phase (vapour or liquid).

Input data

NameDescriptionType
PhaseToReleaseRequested fluid phase to release.Phase
ReleaseElevationRelease point elevation above ground.double
VesselVessel definition input.Vessel

Output data

NameDescriptionType
ZCoordUpdatedUpdated z-coordinate of vessel to accommodate requested phase to release.double
PipeHeightFractionUpdatedUpdated pipe height fraction to accommodate requested phase to release.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SetPhaseToReleaseForLineRuptureScenarioCalculation.

The following shows the inputs required to instantiate an instance of the SetPhaseToReleaseForLineRuptureScenarioCalculation class:

phase_to_release = One of the enum values for Phase
release_elevation = Value of type float
vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)

set_phase_to_release_for_line_rupture_scenario_calculation = SetPhaseToReleaseForLineRuptureScenarioCalculation(phase_to_release: Phase, release_elevation: float, vessel: Vessel)

Back to reference home

SetPhaseToReleaseForReliefValveScenarioCalculation

Calculates the pipe height fraction and vessel z coordinate to release the requested phase.

Input data

NameDescriptionType
PhaseToReleaseRequested fluid phase to release.Phase
ReleaseElevationRelease point elevation above ground.double
VesselVessel definition input.Vessel

Output data

NameDescriptionType
ZCoordUpdatedUpdated z-coordinate of vessel to accommodate requested phase to release.double
PipeHeightFractionUpdatedUpdated pipe height fraction to accommodate requested phase to release.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SetPhaseToReleaseForReliefValveScenarioCalculation.

The following shows the inputs required to instantiate an instance of the SetPhaseToReleaseForReliefValveScenarioCalculation class:

phase_to_release = One of the enum values for Phase
release_elevation = Value of type float
vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)

set_phase_to_release_for_relief_valve_scenario_calculation = SetPhaseToReleaseForReliefValveScenarioCalculation(phase_to_release: Phase, release_elevation: float, vessel: Vessel)

Back to reference home

SetReleaseElevationForScenarioCalculation

Calculates the vessel z coordinate to release at the requested elevation. This method sets the vessel defined by its dimensions and shape to be elevated at a particular height such as to guarantee that the discharge result height is at the requested elevation.

Input data

NameDescriptionType
ReleaseElevationRelease point elevation above ground.double
ReleaseHeightFractionRelease height fraction off the total vessel height.double
VesselVessel definition input.Vessel

Output data

NameDescriptionType
UpdatedVesselUpdated vessel definition output with modified z coordinate.Vessel
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SetReleaseElevationForScenarioCalculation.

The following shows the inputs required to instantiate an instance of the SetReleaseElevationForScenarioCalculation class:

release_elevation = Value of type float
release_height_fraction = Value of type float
vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)

set_release_elevation_for_scenario_calculation = SetReleaseElevationForScenarioCalculation(release_elevation: float, release_height_fraction: float, vessel: Vessel)

Back to reference home

SideviewAtTimeCalculation

Cloud sideview at a given concentration level and time of interest.

Input data

NameDescriptionType
ScalarUdmOutputsUDM scalar outputs.ScalarUdmOutputs
WeatherWeather.Weather
DispersionRecordsDispersion definition.DispersionRecord
DispersionRecordCountNumber of dispersion records.int
SubstrateThe dispersing surface.Substrate
DispersionOutputConfigDispersion view configuration.DispersionOutputConfig
MaterialMaterial with post-discharge composition.Material
DispersionParametersDispersion parameters.DispersionParameters

Output data

NameDescriptionType
ConcUsedConcentration of interest.double
WriteContourPointCallbackArray of sideview results.LocalPosition
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of SideviewAtTimeCalculation.

The following shows the inputs required to instantiate an instance of the SideviewAtTimeCalculation class:

scalar_udm_outputs = ScalarUdmOutputs(observer_count: int, record_count: int, minimum_concentration: float, wind_power: float, friction_velocity: float, dispersion_release_duration: float, cloud_type: DynamicType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_records = dispersion_records: list[DispersionRecords]
dispersion_record_count = Length of the dispersion_records list
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)
material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)

sideview_at_time_calculation = SideviewAtTimeCalculation(scalar_udm_outputs: ScalarUdmOutputs, weather: Weather, dispersion_records: list[DispersionRecord], dispersion_record_count: int, substrate: Substrate, dispersion_output_config: DispersionOutputConfig, material: Material, dispersion_parameters: DispersionParameters)

Back to reference home

TankFireCalculation

Tank fire model.

Input data

NameDescriptionType
AtmosphericStorageTankAtmospheric storage tank.AtmosphericStorageTank
WeatherWeather.Weather
SubstrateSubstrate.Substrate
FlammableParametersFlammable parameters.FlammableParameters

Output data

NameDescriptionType
PoolFireFlameResultFlame scalar result.PoolFireFlameResult
WriteFlameRecordCallbackPool fire flame records.FlameRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of TankFireCalculation.

The following shows the inputs required to instantiate an instance of the TankFireCalculation class:

atmospheric_storage_tank = AtmosphericStorageTank(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), diameter: float, height: float, material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), liquid_fill_fraction_by_volume: float=0.9)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)

tank_fire_calculation = TankFireCalculation(atmospheric_storage_tank: AtmosphericStorageTank, weather: Weather, substrate: Substrate, flammable_parameters: FlammableParameters)

Back to reference home

UDSSetLiqFracFromTemperatureCalculation

Sets the liquid fraction for a given temperature.

Input data

NameDescriptionType
MaterialMaterial.Material
PhaseToBeReleasedPhase to be released (should be Two-Phase, if not this method simply returns).Phase
TemperatureInput temperature.double

Output data

NameDescriptionType
LiquidFractionCalculated liquid fraction.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of UDSSetLiqFracFromTemperatureCalculation.

The following shows the inputs required to instantiate an instance of the UDSSetLiqFracFromTemperatureCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
phase_to_be_released = One of the enum values for Phase
temperature = Value of type float

uds_set_liq_frac_from_temperature_calculation = UDSSetLiqFracFromTemperatureCalculation(material: Material, phase_to_be_released: Phase, temperature: float)

Back to reference home

UDSSetTemperatureFromLiqFracCalculation

Sets the temperature for a given liquid fraction.

Input data

NameDescriptionType
MaterialMaterial.Material
PhaseToBeReleasedPhase to be released (should be Two-Phase, if not this method simply returns).Phase
LiquidFractionInput liquid fraction.double

Output data

NameDescriptionType
TemperatureCalculated temperature.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of UDSSetTemperatureFromLiqFracCalculation.

The following shows the inputs required to instantiate an instance of the UDSSetTemperatureFromLiqFracCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
phase_to_be_released = One of the enum values for Phase
liquid_fraction = Value of type float

uds_set_temperature_from_liq_frac_calculation = UDSSetTemperatureFromLiqFracCalculation(material: Material, phase_to_be_released: Phase, liquid_fraction: float)

Back to reference home

UDSTemperatureLimitsCalculation

Calculates valid temperature range for a material for a given fluid phase.

Input data

NameDescriptionType
MaterialMaterial.Material
PhaseToBeReleasedPhase to be released (Vapour, Two-phase or Liquid).Phase

Output data

NameDescriptionType
MinTemperatureLower temperature limit to ensure consistency.double
MaxTemperatureUpper temperature limit to ensure consistency.double
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of UDSTemperatureLimitsCalculation.

The following shows the inputs required to instantiate an instance of the UDSTemperatureLimitsCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
phase_to_be_released = One of the enum values for Phase

uds_temperature_limits_calculation = UDSTemperatureLimitsCalculation(material: Material, phase_to_be_released: Phase)

Back to reference home

UserDefinedSourceLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels for flammable.

Input data

NameDescriptionType
MaterialMaterial.Material
DischargeResultScalar discharge data.DischargeResult
DischargeRecordsDischarge records.DischargeRecord
DischargeRecordCountNumber of discharge records.int
PhaseToBeReleasedPhase to be released (Vapour, Two-phase or Liquid).Phase
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionFlamOutputConfigsFlammable concentration levels (LFL fraction, LFL, UFL).DispersionOutputConfig
DispersionFlamOutputConfigCountNumber of flammable concentration levels (LFL fraction, LFL, UFL).int
DispersionToxicOutputConfigsToxic concentration levels (concentration of interest).DispersionOutputConfig
DispersionToxicOutputConfigCountNumber of toxic concentration levels (concentration of interest).int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaContourJetAreas of jet fire contours.double
DistancesToFlamConcentrationDistances to concentration levels (LFL fraction, LFL and UFL).double
FlamConcentrationsUsedConcentration levels (LFL fraction, LFL and UFL).double
WriteFlamConcContourPointCallbackMaximum concentration footprints at given concentration levels (LFL fraction, LFL and UFL).LocalPosition
NFlamConcContourPointsNumber of contour points per concentration level (LFL fraction, LFL and UFL).int
AreaFootprintFlamConcAreas of maximum concentration footprints (LFL fraction, LFL and UFL).double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaContourPoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion results to overpressure levels.ExplosionOverpressureResult
DistancesToToxicConcentrationDistance to concentration of interest (using toxic averaging time).double
ToxicConcentrationUsedConcentration of interest.double
WriteToxicConcContourPointCallbackMaximum concentration footprint to concentration of interest (using toxic averaging time).LocalPosition
NToxicConcContourPointsNumber of contour points for maximum concentration footprint to concentration of interest.int
AreaFootprintToxicConcArea of maximum concentration footprints to concentration of interest (using toxic averaging time).double
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of UserDefinedSourceLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the UserDefinedSourceLinkedRunCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
discharge_result = DischargeResult(expansion_energy: float, release_mass: float, height: float, angle: float, hole_diameter: float, release_type: DynamicType, pre_dilution_air_rate: float=0)
discharge_records = discharge_records: list[DischargeRecords]
discharge_record_count = Length of the discharge_records list
phase_to_be_released = One of the enum values for Phase
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_flam_output_configs = dispersion_flam_output_configs: list[DispersionFlamOutputConfigs]
dispersion_flam_output_config_count = Length of the dispersion_flam_output_configs list
dispersion_toxic_output_configs = dispersion_toxic_output_configs: list[DispersionToxicOutputConfigs]
dispersion_toxic_output_config_count = Length of the dispersion_toxic_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

user_defined_source_linked_run_calculation = UserDefinedSourceLinkedRunCalculation(material: Material, discharge_result: DischargeResult, discharge_records: list[DischargeRecord], discharge_record_count: int, phase_to_be_released: Phase, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_flam_output_configs: list[DispersionOutputConfig], dispersion_flam_output_config_count: int, dispersion_toxic_output_configs: list[DispersionOutputConfig], dispersion_toxic_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselCatastrophicRuptureCalculation

Catastrophic rupture from a vessel.

Input data

NameDescriptionType
VesselVessel (pressurised or atmospheric).Vessel
DischargeParametersDischarge parameters.DischargeParameters

Output data

NameDescriptionType
ExitMaterialComposition of the released material (indentical to storage composition).Material
DischargeResultScalar discharge results.DischargeResult
WriteDischargeRecordCallbackArray of discharge record.DischargeRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselCatastrophicRuptureCalculation.

The following shows the inputs required to instantiate an instance of the VesselCatastrophicRuptureCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)

vessel_catastrophic_rupture_calculation = VesselCatastrophicRuptureCalculation(vessel: Vessel, discharge_parameters: DischargeParameters)

Back to reference home

VesselLeakCalculation

Leak calculations from a vessel.

Input data

NameDescriptionType
VesselVessel (pressurised or atmospheric).Vessel
LeakLeak failure case.Leak
DischargeParametersDischarge parameters.DischargeParameters

Output data

NameDescriptionType
ExitMaterialComposition of the released material (may differ from storage composition).Material
DischargeResultScalar discharge results.DischargeResult
WriteDischargeRecordCallbackArray of discharge records.DischargeRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakCalculation.

The following shows the inputs required to instantiate an instance of the VesselLeakCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)

vessel_leak_calculation = VesselLeakCalculation(vessel: Vessel, leak: Leak, discharge_parameters: DischargeParameters)

Back to reference home

VesselLeakFlammableLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels.

Input data

NameDescriptionType
VesselVessel definition.Vessel
LeakLeak scenario.Leak
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionOutputConfigsConcentration levels.DispersionOutputConfig
DispersionOutputConfigCountNumber of concentration levels.int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackEllipses to jet fire radiation levels.LocalPosition
NJetContourPointsNumber of contour points for jet fire ellipses per radiation level.int
AreaEllipseJetAreas of jet fire ellipses.double
DistancesToConcentrationDistances to concentration levels.double
ConcentrationsUsedConcentration levels.double
WriteConcContourPointCallbackMaximum concentration footprints at given concentration levels.LocalPosition
NConcContourPointsNumber of contour points per concentration level.int
AreaFootprintConcAreas of maximum concentration footprints.double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackEllipses to pool fire radiation levels.LocalPosition
NPoolContourPointsNumber of contour points for pool fire ellipses per radiation level.int
AreaEllipsePoolAreas of pool fire ellipses.double
ExplosionOverpressureResultsExplosion overpressure results.ExplosionOverpressureResult
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakFlammableLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the VesselLeakFlammableLinkedRunCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_output_configs = dispersion_output_configs: list[DispersionOutputConfigs]
dispersion_output_config_count = Length of the dispersion_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_leak_flammable_linked_run_calculation = VesselLeakFlammableLinkedRunCalculation(vessel: Vessel, leak: Leak, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: DispersionParameters, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_output_configs: list[DispersionOutputConfig], dispersion_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselLeakFlammableLinkedRunH2Calculation

VesselLeakFlammableLinkedRun for hydrogen.

Input data

NameDescriptionType
VesselVessel definition.Vessel
LeakLeak scenario.Leak
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionOutputConfigsConcentration levels.DispersionOutputConfig
DispersionOutputConfigCountNumber of concentration levels.int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaEllipseJetAreas of jet fire contours.double
DistancesToConcentrationDistances to concentration levels.double
ConcentrationsUsedConcentration levels.double
WriteConcContourPointCallbackMaximum concentration footprints at given concentration levels.LocalPosition
NConcContourPointsNumber of contour points per concentration level.int
AreaFootprintConcAreas of maximum concentration footprints.double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaEllipsePoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion results to overpressure levels.ExplosionOverpressureResult
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakFlammableLinkedRunH2Calculation.

The following shows the inputs required to instantiate an instance of the VesselLeakFlammableLinkedRunH2Calculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_output_configs = dispersion_output_configs: list[DispersionOutputConfigs]
dispersion_output_config_count = Length of the dispersion_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_leak_flammable_linked_run_h2_calculation = VesselLeakFlammableLinkedRunH2Calculation(vessel: Vessel, leak: Leak, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_output_configs: list[DispersionOutputConfig], dispersion_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselLeakFlamToxSimpleLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels for flammable.

Input data

NameDescriptionType
VesselVessel definition.Vessel
LeakLeak scenario.Leak
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionFlamOutputConfigsFlammable concentration levels (LFL fraction, LFL, UFL).DispersionOutputConfig
DispersionFlamOutputConfigCountNumber of flammable concentration levels (LFL fraction, LFL, UFL).int
MoleFractionToxicMole fraction of toxic component.double
DispersionToxicOutputConfigsToxic concentration levels (concentration of interest).DispersionOutputConfig
DispersionToxicOutputConfigCountNumber of toxic concentration levels (concentration of interest).int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaEllipseJetAreas of jet fire contours.double
DistancesToFlamConcentrationDistances to concentration levels (LFL fraction, LFL and UFL).double
FlamConcentrationsUsedConcentration levels (LFL fraction, LFL and UFL).double
WriteFlamConcContourPointCallbackMaximum concentration footprints at given concentration levels (LFL fraction, LFL and UFL).LocalPosition
NFlamConcContourPointsNumber of contour points per concentration level (LFL fraction, LFL and UFL).int
AreaFootprintFlamConcAreas of maximum concentration footprints (LFL fraction, LFL and UFL).double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaEllipsePoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion results to overpressure levels.ExplosionOverpressureResult
DistancesToToxicConcentrationDistance to concentration of interest (using toxic averaging time).double
ToxicConcentrationUsedConcentration of interest.double
WriteToxicConcContourPointCallbackMaximum concentration footprint to concentration of interest (using toxic averaging time).LocalPosition
NToxicConcContourPointsNumber of contour points for maximum concentration footprint to concentration of interest.int
AreaFootprintToxicConcArea of maximum concentration footprints to concentration of interest (using toxic averaging time).double
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakFlamToxSimpleLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the VesselLeakFlamToxSimpleLinkedRunCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_flam_output_configs = dispersion_flam_output_configs: list[DispersionFlamOutputConfigs]
dispersion_flam_output_config_count = Length of the dispersion_flam_output_configs list
mole_fraction_toxic = Value of type float
dispersion_toxic_output_configs = dispersion_toxic_output_configs: list[DispersionToxicOutputConfigs]
dispersion_toxic_output_config_count = Length of the dispersion_toxic_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_leak_flam_tox_simple_linked_run_calculation = VesselLeakFlamToxSimpleLinkedRunCalculation(vessel: Vessel, leak: Leak, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_flam_output_configs: list[DispersionOutputConfig], dispersion_flam_output_config_count: int, mole_fraction_toxic: float, dispersion_toxic_output_configs: list[DispersionOutputConfig], dispersion_toxic_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselLeakLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels for flammable.

Input data

NameDescriptionType
VesselVessel definition.Vessel
LeakLeak scenario.Leak
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionFlamOutputConfigsFlammable concentration levels (LFL fraction, LFL, UFL).DispersionOutputConfig
DispersionFlamOutputConfigCountNumber of flammable concentration levels (LFL fraction, LFL, UFL).int
DispersionToxicOutputConfigsToxic concentration levels (concentration of interest).DispersionOutputConfig
DispersionToxicOutputConfigCountNumber of toxic concentration levels (concentration of interest).int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaEllipseJetAreas of jet fire contours.double
DistancesToFlamConcentrationDistances to concentration levels (LFL fraction, LFL and UFL).double
FlamConcentrationsUsedConcentration levels (LFL fraction, LFL and UFL).double
WriteFlamConcContourPointCallbackMaximum concentration footprints at given concentration levels (LFL fraction, LFL and UFL).LocalPosition
NFlamConcContourPointsNumber of contour points per concentration level (LFL fraction, LFL and UFL).int
AreaFootprintFlamConcAreas of maximum concentration footprints (LFL fraction, LFL and UFL).double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaEllipsePoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion results to overpressure levels.ExplosionOverpressureResult
DistancesToToxicConcentrationDistance to concentration of interest (using toxic averaging time).double
ToxicConcentrationUsedConcentration of interest.double
WriteToxicConcContourPointCallbackMaximum concentration footprint to concentration of interest (using toxic averaging time).LocalPosition
NToxicConcContourPointsNumber of contour points for maximum concentration footprint to concentration of interest.int
AreaFootprintToxicConcArea of maximum concentration footprints to concentration of interest (using toxic averaging time).double
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the VesselLeakLinkedRunCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_flam_output_configs = dispersion_flam_output_configs: list[DispersionFlamOutputConfigs]
dispersion_flam_output_config_count = Length of the dispersion_flam_output_configs list
dispersion_toxic_output_configs = dispersion_toxic_output_configs: list[DispersionToxicOutputConfigs]
dispersion_toxic_output_config_count = Length of the dispersion_toxic_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_leak_linked_run_calculation = VesselLeakLinkedRunCalculation(vessel: Vessel, leak: Leak, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_flam_output_configs: list[DispersionOutputConfig], dispersion_flam_output_config_count: int, dispersion_toxic_output_configs: list[DispersionOutputConfig], dispersion_toxic_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselLeakMaxFlammableCloudCalculation

Linked vessel leak followed, dispersion, and calculation of flammable extents.

Input data

NameDescriptionType
VesselVessel (pressurised or atmospheric).Vessel
LeakLeak failure case.Leak
WeatherWeather.Weather
SubstrateThe dispersing surface.Substrate
DischargeParametersDischarge parameters.DischargeParameters
DispersionParametersDispersion parameters.DispersionParameters
DispersionOutputConfigOptions for controlling dispersion results (here used to set height of interest only).DispersionOutputConfig

Output data

NameDescriptionType
VesselLeakMaxFlammableCloudResultsCollated discharge and flammable cloud characterisation results.VesselLeakMaxFlammableCloudResults
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLeakMaxFlammableCloudCalculation.

The following shows the inputs required to instantiate an instance of the VesselLeakMaxFlammableCloudCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
leak = Leak(hole_diameter: float, hole_height_fraction: float=0.5)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
dispersion_parameters = DispersionParameters(relative_tolerance: float=0.001, rainout_thermo_flag: RainoutThermoFlag, fixed_step_size: float=0.01, output_step_multiplier: float=1.2, max_dispersion_distance: float=50000, max_dispersion_height: float=1000, number_of_release_observers: int=5, number_of_pool_observers: int=10, averaging_time: float=18.75, lfl_fraction_to_stop: float=0.5)
dispersion_output_config = DispersionOutputConfig(downwind_distance: float=100, time: float=60, resolution: Resolution, elevation: float=1, special_concentration: SpecialConcentration, concentration: float=0, crosswind_distance: float=0, contour_type: ContourType, lfl_fraction_value: float=0.5, component_to_track_index: int=-1, component_to_track_name: str)

vessel_leak_max_flammable_cloud_calculation = VesselLeakMaxFlammableCloudCalculation(vessel: Vessel, leak: Leak, weather: Weather, substrate: Substrate, discharge_parameters: DischargeParameters, dispersion_parameters: DispersionParameters, dispersion_output_config: DispersionOutputConfig)

Back to reference home

VesselLineRuptureCalculation

Calculations of discharge from a short pipe attached to a vessel.

Input data

NameDescriptionType
VesselVessel (pressurised or atmospheric).Vessel
LineRuptureLine rupture scenario.LineRupture
DischargeParametersDischarge parameters.DischargeParameters

Output data

NameDescriptionType
ExitMaterialComposition of the released material (may differ from storage composition).Material
DischargeResultScalar discharge results.DischargeResult
WriteDischargeRecordCallbackArray of discharge records.DischargeRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLineRuptureCalculation.

The following shows the inputs required to instantiate an instance of the VesselLineRuptureCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
line_rupture = LineRupture(pipe_diameter: float, pipe_length: float, pipe_roughness: float=0.000045, pipe_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)

vessel_line_rupture_calculation = VesselLineRuptureCalculation(vessel: Vessel, line_rupture: LineRupture, discharge_parameters: DischargeParameters)

Back to reference home

VesselLineRuptureLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels for flammable.

Input data

NameDescriptionType
VesselVessel definition.Vessel
LineRuptureLine rupture.LineRupture
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionFlamOutputConfigsFlammable concentration levels (LFL fraction, LFL, UFL).DispersionOutputConfig
DispersionFlamOutputConfigCountNumber of flammable concentration levels (LFL fraction, LFL, UFL).int
DispersionToxicOutputConfigsToxic concentration levels (concentration of interest).DispersionOutputConfig
DispersionToxicOutputConfigCountNumber of toxic concentration levels (concentration of interest).int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaContourJetAreas of jet fire contours.double
DistancesToFlamConcentrationDistances to concentration levels (LFL fraction, LFL and UFL).double
FlamConcentrationsUsedConcentration levels (LFL fraction, LFL and UFL).double
WriteFlamConcContourPointCallbackMaximum concentration footprints at given concentration levels (LFL fraction, LFL and UFL).LocalPosition
NFlamConcContourPointsNumber of contour points per concentration level (LFL fraction, LFL and UFL).int
AreaFootprintFlamConcAreas of maximum concentration footprints (LFL fraction, LFL and UFL).double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaContourPoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion overpressure results.ExplosionOverpressureResult
DistancesToToxicConcentrationDistance to concentration of interest (using toxic averaging time).double
ToxicConcentrationUsedConcentration of interest.double
WriteToxicConcContourPointCallbackMaximum concentration footprint to concentration of interest (using toxic averaging time).LocalPosition
NToxicConcContourPointsNumber of contour points for maximum concentration footprint to concentration of interest.int
AreaFootprintToxicConcArea of maximum concentration footprints to concentration of interest (using toxic averaging time).double
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselLineRuptureLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the VesselLineRuptureLinkedRunCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
line_rupture = LineRupture(pipe_diameter: float, pipe_length: float, pipe_roughness: float=0.000045, pipe_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_flam_output_configs = dispersion_flam_output_configs: list[DispersionFlamOutputConfigs]
dispersion_flam_output_config_count = Length of the dispersion_flam_output_configs list
dispersion_toxic_output_configs = dispersion_toxic_output_configs: list[DispersionToxicOutputConfigs]
dispersion_toxic_output_config_count = Length of the dispersion_toxic_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_line_rupture_linked_run_calculation = VesselLineRuptureLinkedRunCalculation(vessel: Vessel, line_rupture: LineRupture, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_flam_output_configs: list[DispersionOutputConfig], dispersion_flam_output_config_count: int, dispersion_toxic_output_configs: list[DispersionOutputConfig], dispersion_toxic_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselReliefValveCalculation

Calculations of venting from a relief valve attached to a vessel.

Input data

NameDescriptionType
VesselVessel (pressurised or atmospheric).Vessel
ReliefValveRelief valve scenario.ReliefValve
DischargeParametersDischarge parameters.DischargeParameters

Output data

NameDescriptionType
ExitMaterialComposition of the released material (may differ from storage composition).Material
DischargeResultScalar discharge results.DischargeResult
WriteDischargeRecordCallbackArray of discharge records.DischargeRecord
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselReliefValveCalculation.

The following shows the inputs required to instantiate an instance of the VesselReliefValveCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
relief_valve = ReliefValve(relief_valve_constriction_diameter: float, pipe_diameter: float, pipe_length: float, pipe_roughness: float=0.000045, pipe_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)

vessel_relief_valve_calculation = VesselReliefValveCalculation(vessel: Vessel, relief_valve: ReliefValve, discharge_parameters: DischargeParameters)

Back to reference home

VesselReliefValveLinkedRunCalculation

Calculates maximum distance to a number of concentration, radiation and overpressure levels for flammable.

Input data

NameDescriptionType
VesselVessel definition.Vessel
ReliefValveRelief valve.ReliefValve
DischargeParametersDischarge parameters.DischargeParameters
SubstrateThe dispersing surface.Substrate
WeatherWeather definition.Weather
DispersionParametersDispersion parameters.DispersionParameters
DispersionParameterCountNumber of dispersion parameters.int
EndPointConcentrationConcentration at which the dispersion calculations will terminate (v/v fraction).double
FlammableParametersFire model parameters.FlammableParameters
ExplosionParametersExplosion parameters.ExplosionParameters
DispersionFlamOutputConfigsFlammable concentration levels (LFL fraction, LFL, UFL).DispersionOutputConfig
DispersionFlamOutputConfigCountNumber of flammable concentration levels (LFL fraction, LFL, UFL).int
DispersionToxicOutputConfigsToxic concentration levels (concentration of interest).DispersionOutputConfig
DispersionToxicOutputConfigCountNumber of toxic concentration levels (concentration of interest).int
FlammableOutputConfigsRadiation levels.FlammableOutputConfig
FlammableOutputConfigCountNumber of radiation levels.int
ExplosionOutputConfigsOverpressure levels.ExplosionOutputConfig
ExplosionOutputConfigCountNumber of overpressure levels.int
ExplosionConfinedVolumesExplosion confined volumes.ExplosionConfinedVolume
ExplosionConfinedVolumeCountNumber of confined explosion sources.int

Output data

NameDescriptionType
DischargeRecordDischarge data for table.DischargeRecord
DistancesToJetFireRadiationDistances to jet fire radiation levels.double
WriteJetContourPointCallbackCallback function for jet fire radiation contour points.LocalPosition
NJetContourPointsNumber of points for jet fire contours per radiation level.int
AreaContourJetAreas of jet fire contours.double
DistancesToFlamConcentrationDistances to concentration levels (LFL fraction, LFL and UFL).double
FlamConcentrationsUsedConcentration levels (LFL fraction, LFL and UFL).double
WriteFlamConcContourPointCallbackMaximum concentration footprints at given concentration levels (LFL fraction, LFL and UFL).LocalPosition
NFlamConcContourPointsNumber of contour points per concentration level (LFL fraction, LFL and UFL).int
AreaFootprintFlamConcAreas of maximum concentration footprints (LFL fraction, LFL and UFL).double
DistancesToPoolFireRadiationDistances to pool fire radiation levels.double
WritePoolContourPointCallbackCallback function for pool fire radiation contour points.LocalPosition
NPoolContourPointsNumber of points for pool fire contours per radiation level.int
AreaContourPoolAreas of pool fire contours.double
ExplosionOverpressureResultsExplosion overpressure results.ExplosionOverpressureResult
DistancesToToxicConcentrationDistance to concentration of interest (using toxic averaging time).double
ToxicConcentrationUsedConcentration of interest.double
WriteToxicConcContourPointCallbackMaximum concentration footprint to concentration of interest (using toxic averaging time).LocalPosition
NToxicConcContourPointsNumber of contour points for maximum concentration footprint to concentration of interest.int
AreaFootprintToxicConcArea of maximum concentration footprints to concentration of interest (using toxic averaging time).double
JetFireFlameResultFlame results for jet fire.FlameResult
PoolFireFlameResultFlame results for pool fire.PoolFireFlameResult
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselReliefValveLinkedRunCalculation.

The following shows the inputs required to instantiate an instance of the VesselReliefValveLinkedRunCalculation class:

vessel = Vessel(state : State(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling), material : Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate), diameter: float=2, height: float=4, length: float=4, width: float=0.0, shape: VesselShape, vessel_conditions: VesselConditions, liquid_fill_fraction_by_volume: float=0.0)
relief_valve = ReliefValve(relief_valve_constriction_diameter: float, pipe_diameter: float, pipe_length: float, pipe_roughness: float=0.000045, pipe_height_fraction: float=0.5)
discharge_parameters = DischargeParameters(flash_at_orifice: FlashAtOrifice)
substrate = Substrate(bund : Bund(bund_height: float=0.0, bund_diameter: float=0.0, ), surface_roughness: float=0.183, surface_type: SurfaceType, pool_surface_type: PoolSurfaceType)
weather = Weather(wind_speed: float=5, stability_class: AtmosphericStabilityClass, temperature: float=283, relative_humidity: float=0.7, mixing_layer_height: float=800, solar_radiation: float=500)
dispersion_parameters = dispersion_parameters: list[DispersionParameters]
dispersion_parameter_count = Length of the dispersion_parameters list
end_point_concentration = Value of type float
flammable_parameters = FlammableParameters(max_exposure_duration: float=20, radiation_relative_tolerance: float=0.01, pool_fire_type: PoolFireType, , , time_of_interest: float=20)
explosion_parameters = ExplosionParameters(explosion_uniform_strength: float=10.0)
dispersion_flam_output_configs = dispersion_flam_output_configs: list[DispersionFlamOutputConfigs]
dispersion_flam_output_config_count = Length of the dispersion_flam_output_configs list
dispersion_toxic_output_configs = dispersion_toxic_output_configs: list[DispersionToxicOutputConfigs]
dispersion_toxic_output_config_count = Length of the dispersion_toxic_output_configs list
flammable_output_configs = flammable_output_configs: list[FlammableOutputConfigs]
flammable_output_config_count = Length of the flammable_output_configs list
explosion_output_configs = explosion_output_configs: list[ExplosionOutputConfigs]
explosion_output_config_count = Length of the explosion_output_configs list
explosion_confined_volumes = explosion_confined_volumes: list[ExplosionConfinedVolumes]
explosion_confined_volume_count = Length of the explosion_confined_volumes list

vessel_relief_valve_linked_run_calculation = VesselReliefValveLinkedRunCalculation(vessel: Vessel, relief_valve: ReliefValve, discharge_parameters: DischargeParameters, substrate: Substrate, weather: Weather, dispersion_parameters: list[DispersionParameters], dispersion_parameter_count: int, end_point_concentration: float, flammable_parameters: FlammableParameters, explosion_parameters: ExplosionParameters, dispersion_flam_output_configs: list[DispersionOutputConfig], dispersion_flam_output_config_count: int, dispersion_toxic_output_configs: list[DispersionOutputConfig], dispersion_toxic_output_config_count: int, flammable_output_configs: list[FlammableOutputConfig], flammable_output_config_count: int, explosion_output_configs: list[ExplosionOutputConfig], explosion_output_config_count: int, explosion_confined_volumes: list[ExplosionConfinedVolume], explosion_confined_volume_count: int)

Back to reference home

VesselStateCalculation

Calculates the fluid storage state for a material and thermodynamic conditions.

Input data

NameDescriptionType
MaterialUser-defined input material, pure component or mixture (max 20 components).Material
MaterialStateDescribes the fluid pressure, temperature, liquid fraction.State

Output data

NameDescriptionType
VesselConditionsDescribes the vessel storage conditions (Pure gas, Stratified Two-Phase or Pressurised liquid).VesselConditions
OutputStateDescribes the fluid pressure, temperature and liquid fraction after the flash calculation.State
ResultCodeError code (0 = OK, < 0 data input error, > 0 execution error).ResultCode

Instantiating an instance of VesselStateCalculation.

The following shows the inputs required to instantiate an instance of the VesselStateCalculation class:

material = Material(name: str, material_component : MaterialComponent(name: str, mole_fraction: float=1), component_count: int=1, property_template: PropertyTemplate)
material_state = MaterialState(pressure: float, temperature: float, liquid_fraction: float, flash_flag: FluidSpec, mixture_modelling: MixtureModelling)

vessel_state_calculation = VesselStateCalculation(material: Material, material_state: State)

Back to reference home