@dnv-plant/typescriptpws 1.0.63 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +1 -1
- package/src/calculations/applicationTools.ts +4 -4
- package/src/calculations/discharge.ts +45 -45
- package/src/calculations/dispersion.ts +16 -16
- package/src/calculations/dispersionView.ts +113 -113
- package/src/calculations/fireball.ts +14 -14
- package/src/calculations/jetFire.ts +13 -13
- package/src/calculations/lateExplosion.ts +48 -48
- package/src/calculations/linkedRunners.ts +245 -245
- package/src/calculations/poolFire.ts +15 -15
- package/src/calculations/properties.ts +6 -6
- package/src/calculations/radiation.ts +124 -124
- package/src/calculations/standalones.ts +11 -11
- package/src/calculations/toxics.ts +17 -17
- package/src/calculations/utilities.ts +36 -36
- package/src/constants.ts +26 -5
- package/src/entities.ts +212 -82
- package/src/entity-schemas.ts +160 -64
- package/src/enums.ts +25 -14
- package/src/materials.ts +2 -2
- package/src/utilities.ts +4 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:06
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -171,14 +171,14 @@ class LethalityDistanceCalculationRequest extends CalculationRequestBase {
|
|
|
171
171
|
/**
|
|
172
172
|
* LethalityDistance calculation request class.
|
|
173
173
|
*
|
|
174
|
-
* @param {Entities.Material} material -
|
|
174
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
175
175
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
176
|
-
* @param {Entities.Weather} weather -
|
|
177
|
-
* @param {Entities.DispersionRecord[]} dispersionRecords -
|
|
178
|
-
* @param {number} dispersionRecordCount - Number of
|
|
179
|
-
* @param {Entities.Substrate} substrate -
|
|
180
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
181
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
176
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
177
|
+
* @param {Entities.DispersionRecord[]} dispersionRecords - an array of dispersion records.
|
|
178
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
179
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
180
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config entity.
|
|
181
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
182
182
|
*/
|
|
183
183
|
constructor(
|
|
184
184
|
material: Entities.Material,
|
|
@@ -269,14 +269,14 @@ export class LethalityDistanceCalculation extends CalculationBase {
|
|
|
269
269
|
/**
|
|
270
270
|
* Probability of death vs distance from a dispersing toxic cloud, down to the minimum probability of death. Integrates dose over time at each location and uses probit relations to convert to a probability of death. A successful dispersion calculation is required as inputfirst.
|
|
271
271
|
*
|
|
272
|
-
* @param {Entities.Material} material -
|
|
272
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
273
273
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
274
|
-
* @param {Entities.Weather} weather -
|
|
275
|
-
* @param {Entities.DispersionRecord[]} dispersionRecords -
|
|
276
|
-
* @param {number} dispersionRecordCount - Number of
|
|
277
|
-
* @param {Entities.Substrate} substrate -
|
|
278
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
279
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
274
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
275
|
+
* @param {Entities.DispersionRecord[]} dispersionRecords - an array of dispersion records.
|
|
276
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
277
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
278
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config entity.
|
|
279
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
280
280
|
*/
|
|
281
281
|
constructor(
|
|
282
282
|
material: Entities.Material,
|
|
@@ -377,7 +377,7 @@ export class LethalityDistanceCalculationResponse extends CalculationResponseBas
|
|
|
377
377
|
/**
|
|
378
378
|
* LethalityDistance calculation response class.
|
|
379
379
|
*
|
|
380
|
-
* @param {Entities.ToxicRecord[]} toxicRecords -
|
|
380
|
+
* @param {Entities.ToxicRecord[]} toxicRecords - an array of toxic records.
|
|
381
381
|
*/
|
|
382
382
|
constructor(
|
|
383
383
|
toxicRecords: Entities.ToxicRecord[],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:06
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -161,7 +161,7 @@ class ConvertCompositionMassToMoleCalculationRequest extends CalculationRequestB
|
|
|
161
161
|
/**
|
|
162
162
|
* ConvertCompositionMassToMole calculation request class.
|
|
163
163
|
*
|
|
164
|
-
* @param {Entities.Material} mixture -
|
|
164
|
+
* @param {Entities.Material} mixture - a material entity with two or more material components to have composition converted.
|
|
165
165
|
* @param {number[]} compositionMass - Array of mass fractions.
|
|
166
166
|
* @param {number} compositionMassCount - Number of components in mixture.
|
|
167
167
|
*/
|
|
@@ -224,7 +224,7 @@ export class ConvertCompositionMassToMoleCalculation extends CalculationBase {
|
|
|
224
224
|
/**
|
|
225
225
|
* Converts mixture composition from mass to mole basis.
|
|
226
226
|
*
|
|
227
|
-
* @param {Entities.Material} mixture -
|
|
227
|
+
* @param {Entities.Material} mixture - a material entity with two or more material components to have composition converted.
|
|
228
228
|
* @param {number[]} compositionMass - Array of mass fractions.
|
|
229
229
|
* @param {number} compositionMassCount - Number of components in mixture.
|
|
230
230
|
*/
|
|
@@ -411,7 +411,7 @@ class ConvertCompositionMoleToMassCalculationRequest extends CalculationRequestB
|
|
|
411
411
|
/**
|
|
412
412
|
* ConvertCompositionMoleToMass calculation request class.
|
|
413
413
|
*
|
|
414
|
-
* @param {Entities.Material} mixture -
|
|
414
|
+
* @param {Entities.Material} mixture - a material entity with two or more material components to have composition converted.
|
|
415
415
|
* @param {number[]} compositionMoles - Array of mole fractions.
|
|
416
416
|
* @param {number} compositionMolesCount - Number of components in mixture.
|
|
417
417
|
*/
|
|
@@ -474,7 +474,7 @@ export class ConvertCompositionMoleToMassCalculation extends CalculationBase {
|
|
|
474
474
|
/**
|
|
475
475
|
* Converts mixture composition from mole to mass basis.
|
|
476
476
|
*
|
|
477
|
-
* @param {Entities.Material} mixture -
|
|
477
|
+
* @param {Entities.Material} mixture - a material entity with two or more material components to have composition converted.
|
|
478
478
|
* @param {number[]} compositionMoles - Array of mole fractions.
|
|
479
479
|
* @param {number} compositionMolesCount - Number of components in mixture.
|
|
480
480
|
*/
|
|
@@ -657,7 +657,7 @@ class GetMassFromVesselCalculationRequest extends CalculationRequestBase {
|
|
|
657
657
|
/**
|
|
658
658
|
* GetMassFromVessel calculation request class.
|
|
659
659
|
*
|
|
660
|
-
* @param {Entities.Vessel} vessel -
|
|
660
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
661
661
|
*/
|
|
662
662
|
constructor(
|
|
663
663
|
vessel: Entities.Vessel
|
|
@@ -706,7 +706,7 @@ export class GetMassFromVesselCalculation extends CalculationBase {
|
|
|
706
706
|
/**
|
|
707
707
|
* Calculates the mass in a vessel.
|
|
708
708
|
*
|
|
709
|
-
* @param {Entities.Vessel} vessel -
|
|
709
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
710
710
|
*/
|
|
711
711
|
constructor(
|
|
712
712
|
vessel: Entities.Vessel
|
|
@@ -888,7 +888,7 @@ class LoadMassInventoryVesselForLeakScenarioCalculationRequest extends Calculati
|
|
|
888
888
|
/**
|
|
889
889
|
* LoadMassInventoryVesselForLeakScenario calculation request class.
|
|
890
890
|
*
|
|
891
|
-
* @param {Entities.Material} material -
|
|
891
|
+
* @param {Entities.Material} material - a material entity.
|
|
892
892
|
* @param {number} mass - Total vessel mass inventory.
|
|
893
893
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
894
894
|
* @param {number} temperature - Temperature of the fluid.
|
|
@@ -980,7 +980,7 @@ export class LoadMassInventoryVesselForLeakScenarioCalculation extends Calculati
|
|
|
980
980
|
/**
|
|
981
981
|
* Sets up a vessel and a leak scenario from a mass inventory, pressure, temperature and hole size specifications.
|
|
982
982
|
*
|
|
983
|
-
* @param {Entities.Material} material -
|
|
983
|
+
* @param {Entities.Material} material - a material entity.
|
|
984
984
|
* @param {number} mass - Total vessel mass inventory.
|
|
985
985
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
986
986
|
* @param {number} temperature - Temperature of the fluid.
|
|
@@ -1082,8 +1082,8 @@ export class LoadMassInventoryVesselForLeakScenarioCalculationResponse extends C
|
|
|
1082
1082
|
/**
|
|
1083
1083
|
* LoadMassInventoryVesselForLeakScenario calculation response class.
|
|
1084
1084
|
*
|
|
1085
|
-
* @param {Entities.Vessel} vessel -
|
|
1086
|
-
* @param {Entities.Leak} leak -
|
|
1085
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1086
|
+
* @param {Entities.Leak} leak - a leak entity.
|
|
1087
1087
|
*/
|
|
1088
1088
|
constructor(
|
|
1089
1089
|
vessel: Entities.Vessel,
|
|
@@ -1203,12 +1203,12 @@ class LoadMassInventoryVesselForLineRuptureScenarioCalculationRequest extends Ca
|
|
|
1203
1203
|
/**
|
|
1204
1204
|
* LoadMassInventoryVesselForLineRuptureScenario calculation request class.
|
|
1205
1205
|
*
|
|
1206
|
-
* @param {Entities.Material} material -
|
|
1206
|
+
* @param {Entities.Material} material - a material entity.
|
|
1207
1207
|
* @param {number} mass - Total vessel mass inventory.
|
|
1208
1208
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
1209
1209
|
* @param {number} temperature - Temperature of the fluid.
|
|
1210
1210
|
* @param {number} pipeDiameter - Internal diameter of the pipe.
|
|
1211
|
-
* @param {number} pipeLength -
|
|
1211
|
+
* @param {number} pipeLength - Length of the pipe.
|
|
1212
1212
|
* @param {number} releaseElevation - Elevation of the release above ground level.
|
|
1213
1213
|
* @param {number} releaseAngle - Angle of release above a horizontal plane.
|
|
1214
1214
|
*/
|
|
@@ -1302,12 +1302,12 @@ export class LoadMassInventoryVesselForLineRuptureScenarioCalculation extends Ca
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Sets up a vessel and a line rupture scenario from a mass inventory, pressure, temperature pipe diameter and length specifications.
|
|
1304
1304
|
*
|
|
1305
|
-
* @param {Entities.Material} material -
|
|
1305
|
+
* @param {Entities.Material} material - a material entity.
|
|
1306
1306
|
* @param {number} mass - Total vessel mass inventory.
|
|
1307
1307
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
1308
1308
|
* @param {number} temperature - Temperature of the fluid.
|
|
1309
1309
|
* @param {number} pipeDiameter - Internal diameter of the pipe.
|
|
1310
|
-
* @param {number} pipeLength -
|
|
1310
|
+
* @param {number} pipeLength - Length of the pipe.
|
|
1311
1311
|
* @param {number} releaseElevation - Elevation of the release above ground level.
|
|
1312
1312
|
* @param {number} releaseAngle - Angle of release above a horizontal plane.
|
|
1313
1313
|
*/
|
|
@@ -1408,8 +1408,8 @@ export class LoadMassInventoryVesselForLineRuptureScenarioCalculationResponse ex
|
|
|
1408
1408
|
/**
|
|
1409
1409
|
* LoadMassInventoryVesselForLineRuptureScenario calculation response class.
|
|
1410
1410
|
*
|
|
1411
|
-
* @param {Entities.Vessel} vessel -
|
|
1412
|
-
* @param {Entities.LineRupture} lineRupture -
|
|
1411
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1412
|
+
* @param {Entities.LineRupture} lineRupture - a line rupture entity.
|
|
1413
1413
|
*/
|
|
1414
1414
|
constructor(
|
|
1415
1415
|
vessel: Entities.Vessel,
|
|
@@ -1531,7 +1531,7 @@ class LoadMassInventoryVesselForReliefValveScenarioCalculationRequest extends Ca
|
|
|
1531
1531
|
/**
|
|
1532
1532
|
* LoadMassInventoryVesselForReliefValveScenario calculation request class.
|
|
1533
1533
|
*
|
|
1534
|
-
* @param {Entities.Material} material -
|
|
1534
|
+
* @param {Entities.Material} material - a material entity.
|
|
1535
1535
|
* @param {number} mass - Total vessel mass inventory.
|
|
1536
1536
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
1537
1537
|
* @param {number} temperature - Tmperature of the fluid.
|
|
@@ -1637,7 +1637,7 @@ export class LoadMassInventoryVesselForReliefValveScenarioCalculation extends Ca
|
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Sets up a vessel and a relief valve scenario from a mass inventory, pressure, temperature pipe diameter, length and constriction size specifications.
|
|
1639
1639
|
*
|
|
1640
|
-
* @param {Entities.Material} material -
|
|
1640
|
+
* @param {Entities.Material} material - a material entity.
|
|
1641
1641
|
* @param {number} mass - Total vessel mass inventory.
|
|
1642
1642
|
* @param {number} pressure - Absolute pressure of the fluid.
|
|
1643
1643
|
* @param {number} temperature - Tmperature of the fluid.
|
|
@@ -1747,8 +1747,8 @@ export class LoadMassInventoryVesselForReliefValveScenarioCalculationResponse ex
|
|
|
1747
1747
|
/**
|
|
1748
1748
|
* LoadMassInventoryVesselForReliefValveScenario calculation response class.
|
|
1749
1749
|
*
|
|
1750
|
-
* @param {Entities.Vessel} vessel -
|
|
1751
|
-
* @param {Entities.ReliefValve} reliefValve -
|
|
1750
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1751
|
+
* @param {Entities.ReliefValve} reliefValve - a relief valve entity.
|
|
1752
1752
|
*/
|
|
1753
1753
|
constructor(
|
|
1754
1754
|
vessel: Entities.Vessel,
|
|
@@ -1856,7 +1856,7 @@ class ReliefValveMinTemperatureCalculationRequest extends CalculationRequestBase
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* ReliefValveMinTemperature calculation request class.
|
|
1858
1858
|
*
|
|
1859
|
-
* @param {Entities.Material} material -
|
|
1859
|
+
* @param {Entities.Material} material - a material entity.
|
|
1860
1860
|
* @param {number} pressure - Input pressure (absolute) at which to evaluate bubble point temperature.
|
|
1861
1861
|
*/
|
|
1862
1862
|
constructor(
|
|
@@ -1912,7 +1912,7 @@ export class ReliefValveMinTemperatureCalculation extends CalculationBase {
|
|
|
1912
1912
|
/**
|
|
1913
1913
|
* The Relief Valve scenario does not allow fluid conditions to be liquid. As such, his method calculates the lower limit for the input temperature to ensure vapour or two-phase fluid state.
|
|
1914
1914
|
*
|
|
1915
|
-
* @param {Entities.Material} material -
|
|
1915
|
+
* @param {Entities.Material} material - a material entity.
|
|
1916
1916
|
* @param {number} pressure - Input pressure (absolute) at which to evaluate bubble point temperature.
|
|
1917
1917
|
*/
|
|
1918
1918
|
constructor(
|
|
@@ -2086,7 +2086,7 @@ class SetMixingLayerHeightCalculationRequest extends CalculationRequestBase {
|
|
|
2086
2086
|
/**
|
|
2087
2087
|
* SetMixingLayerHeight calculation request class.
|
|
2088
2088
|
*
|
|
2089
|
-
* @param {Entities.Weather} weather -
|
|
2089
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
2090
2090
|
*/
|
|
2091
2091
|
constructor(
|
|
2092
2092
|
weather: Entities.Weather
|
|
@@ -2135,7 +2135,7 @@ export class SetMixingLayerHeightCalculation extends CalculationBase {
|
|
|
2135
2135
|
/**
|
|
2136
2136
|
* Updates the mixing layer height in a weather according to the stability class,.
|
|
2137
2137
|
*
|
|
2138
|
-
* @param {Entities.Weather} weather -
|
|
2138
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
2139
2139
|
*/
|
|
2140
2140
|
constructor(
|
|
2141
2141
|
weather: Entities.Weather
|
|
@@ -2210,7 +2210,7 @@ export class SetMixingLayerHeightCalculationResponse extends CalculationResponse
|
|
|
2210
2210
|
/**
|
|
2211
2211
|
* SetMixingLayerHeight calculation response class.
|
|
2212
2212
|
*
|
|
2213
|
-
* @param {Entities.Weather} updatedWeather - Updated
|
|
2213
|
+
* @param {Entities.Weather} updatedWeather - Updated weather entity.
|
|
2214
2214
|
*/
|
|
2215
2215
|
constructor(
|
|
2216
2216
|
updatedWeather: Entities.Weather,
|
|
@@ -2312,7 +2312,7 @@ class SetPhaseToReleaseForLeakScenarioCalculationRequest extends CalculationRequ
|
|
|
2312
2312
|
*
|
|
2313
2313
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2314
2314
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2315
|
-
* @param {Entities.Vessel} vessel -
|
|
2315
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2316
2316
|
*/
|
|
2317
2317
|
constructor(
|
|
2318
2318
|
phaseToRelease: Enums.Phase,
|
|
@@ -2376,7 +2376,7 @@ export class SetPhaseToReleaseForLeakScenarioCalculation extends CalculationBase
|
|
|
2376
2376
|
*
|
|
2377
2377
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2378
2378
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2379
|
-
* @param {Entities.Vessel} vessel -
|
|
2379
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2380
2380
|
*/
|
|
2381
2381
|
constructor(
|
|
2382
2382
|
phaseToRelease: Enums.Phase,
|
|
@@ -2571,7 +2571,7 @@ class SetPhaseToReleaseForLineRuptureScenarioCalculationRequest extends Calculat
|
|
|
2571
2571
|
*
|
|
2572
2572
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2573
2573
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2574
|
-
* @param {Entities.Vessel} vessel -
|
|
2574
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2575
2575
|
*/
|
|
2576
2576
|
constructor(
|
|
2577
2577
|
phaseToRelease: Enums.Phase,
|
|
@@ -2635,7 +2635,7 @@ export class SetPhaseToReleaseForLineRuptureScenarioCalculation extends Calculat
|
|
|
2635
2635
|
*
|
|
2636
2636
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2637
2637
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2638
|
-
* @param {Entities.Vessel} vessel -
|
|
2638
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2639
2639
|
*/
|
|
2640
2640
|
constructor(
|
|
2641
2641
|
phaseToRelease: Enums.Phase,
|
|
@@ -2830,7 +2830,7 @@ class SetPhaseToReleaseForReliefValveScenarioCalculationRequest extends Calculat
|
|
|
2830
2830
|
*
|
|
2831
2831
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2832
2832
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2833
|
-
* @param {Entities.Vessel} vessel -
|
|
2833
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2834
2834
|
*/
|
|
2835
2835
|
constructor(
|
|
2836
2836
|
phaseToRelease: Enums.Phase,
|
|
@@ -2894,7 +2894,7 @@ export class SetPhaseToReleaseForReliefValveScenarioCalculation extends Calculat
|
|
|
2894
2894
|
*
|
|
2895
2895
|
* @param {Enums.Phase} phaseToRelease - Requested fluid phase to release.
|
|
2896
2896
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
2897
|
-
* @param {Entities.Vessel} vessel -
|
|
2897
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
2898
2898
|
*/
|
|
2899
2899
|
constructor(
|
|
2900
2900
|
phaseToRelease: Enums.Phase,
|
|
@@ -3089,7 +3089,7 @@ class SetReleaseElevationForScenarioCalculationRequest extends CalculationReques
|
|
|
3089
3089
|
*
|
|
3090
3090
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
3091
3091
|
* @param {number} releaseHeightFraction - Release height fraction of the total vessel height.
|
|
3092
|
-
* @param {Entities.Vessel} vessel -
|
|
3092
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
3093
3093
|
*/
|
|
3094
3094
|
constructor(
|
|
3095
3095
|
releaseElevation: number,
|
|
@@ -3152,7 +3152,7 @@ export class SetReleaseElevationForScenarioCalculation extends CalculationBase {
|
|
|
3152
3152
|
*
|
|
3153
3153
|
* @param {number} releaseElevation - Release point elevation above ground.
|
|
3154
3154
|
* @param {number} releaseHeightFraction - Release height fraction of the total vessel height.
|
|
3155
|
-
* @param {Entities.Vessel} vessel -
|
|
3155
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
3156
3156
|
*/
|
|
3157
3157
|
constructor(
|
|
3158
3158
|
releaseElevation: number,
|
|
@@ -3233,7 +3233,7 @@ export class SetReleaseElevationForScenarioCalculationResponse extends Calculati
|
|
|
3233
3233
|
/**
|
|
3234
3234
|
* SetReleaseElevationForScenario calculation response class.
|
|
3235
3235
|
*
|
|
3236
|
-
* @param {Entities.Vessel} updatedVessel - Updated
|
|
3236
|
+
* @param {Entities.Vessel} updatedVessel - Updated vessel entity with modified z coordinate.
|
|
3237
3237
|
*/
|
|
3238
3238
|
constructor(
|
|
3239
3239
|
updatedVessel: Entities.Vessel,
|
package/src/constants.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:03
|
|
5
5
|
* Template: templates/typescriptpws/constants.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -23,6 +23,30 @@ export const ATM_PRESSURE = 101325.0;
|
|
|
23
23
|
export const AWD_FLAG = 3;
|
|
24
24
|
// Along wind diffusion method for non instantaneous dispersion.
|
|
25
25
|
|
|
26
|
+
export const BESS_MAX_ANGLE = 90;
|
|
27
|
+
// Maximum release angle for a BESS event (deg.).
|
|
28
|
+
|
|
29
|
+
export const BESS_MAX_DURATION = 3600;
|
|
30
|
+
// Maximum duration of a BESS event (s).
|
|
31
|
+
|
|
32
|
+
export const BESS_MIN_ANGLE = 0;
|
|
33
|
+
// Minimum release angle for a BESS event (deg.).
|
|
34
|
+
|
|
35
|
+
export const BESS_MIN_AREA = 0;
|
|
36
|
+
// Minimum area for a BESS release source (m2).
|
|
37
|
+
|
|
38
|
+
export const BESS_MIN_DURATION = 0;
|
|
39
|
+
// Minimum duration of a BESS event (s).
|
|
40
|
+
|
|
41
|
+
export const BESS_MIN_ENERGY = 0;
|
|
42
|
+
// Minimum energy capacity for a BESS unit (kWh).
|
|
43
|
+
|
|
44
|
+
export const BESS_MIN_HEIGHT = 0;
|
|
45
|
+
// Minimum release height for a BESS event (m).
|
|
46
|
+
|
|
47
|
+
export const BESS_MIN_TEMP = 273.15;
|
|
48
|
+
// Minimum gas temperature for a BESS event (K).
|
|
49
|
+
|
|
26
50
|
export const BUND_AREA_MULTIPLIER_FOR_RUPTURE = 1.5;
|
|
27
51
|
// Bund area multiplier for catastrophic ruptures.
|
|
28
52
|
|
|
@@ -299,9 +323,6 @@ export const USER_INPUT_POST_EXPANSION_VELOCITY = 0;
|
|
|
299
323
|
export const WIND_CUTOFF_HEIGHT = 1.0;
|
|
300
324
|
// Cut-off height for wind speed calculations.
|
|
301
325
|
|
|
302
|
-
export const WIND_PROFILE_FLAG = 4;
|
|
303
|
-
// Logarithmic wind profile.
|
|
304
|
-
|
|
305
326
|
export const PWS_CLIENT_ID = "eeca6885-127e-4405-aa1f-3a8e69acc451";
|
|
306
327
|
// Application constants.
|
|
307
328
|
|