@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
package/index.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:06
|
|
5
5
|
* Template: templates/typescriptpws/index.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/package.json
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:06
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -157,7 +157,7 @@ class MixtureConstantPropertiesCalculationRequest extends CalculationRequestBase
|
|
|
157
157
|
/**
|
|
158
158
|
* MixtureConstantProperties calculation request class.
|
|
159
159
|
*
|
|
160
|
-
* @param {Entities.Material} material -
|
|
160
|
+
* @param {Entities.Material} material - a material entity representing a mixture.
|
|
161
161
|
*/
|
|
162
162
|
constructor(
|
|
163
163
|
material: Entities.Material
|
|
@@ -206,7 +206,7 @@ export class MixtureConstantPropertiesCalculation extends CalculationBase {
|
|
|
206
206
|
/**
|
|
207
207
|
* Calculates constant fluid properties for a mixture.
|
|
208
208
|
*
|
|
209
|
-
* @param {Entities.Material} material -
|
|
209
|
+
* @param {Entities.Material} material - a material entity representing a mixture.
|
|
210
210
|
*/
|
|
211
211
|
constructor(
|
|
212
212
|
material: Entities.Material
|
|
@@ -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,9 +161,9 @@ class LongPipeBreachCalculationRequest extends CalculationRequestBase {
|
|
|
161
161
|
/**
|
|
162
162
|
* LongPipeBreach calculation request class.
|
|
163
163
|
*
|
|
164
|
-
* @param {Entities.Pipe} pipe -
|
|
165
|
-
* @param {Entities.PipeBreach} pipeBreach -
|
|
166
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
164
|
+
* @param {Entities.Pipe} pipe - a pipe entity.
|
|
165
|
+
* @param {Entities.PipeBreach} pipeBreach - a pipe breach entity.
|
|
166
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
167
167
|
*/
|
|
168
168
|
constructor(
|
|
169
169
|
pipe: Entities.Pipe,
|
|
@@ -229,9 +229,9 @@ export class LongPipeBreachCalculation extends CalculationBase {
|
|
|
229
229
|
state entity for which pressure gauge is not the right definition, i.e. the final state discharge, state specification for
|
|
230
230
|
flash calculation, etc.
|
|
231
231
|
*
|
|
232
|
-
* @param {Entities.Pipe} pipe -
|
|
233
|
-
* @param {Entities.PipeBreach} pipeBreach -
|
|
234
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
232
|
+
* @param {Entities.Pipe} pipe - a pipe entity.
|
|
233
|
+
* @param {Entities.PipeBreach} pipeBreach - a pipe breach entity.
|
|
234
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
235
235
|
*/
|
|
236
236
|
constructor(
|
|
237
237
|
pipe: Entities.Pipe,
|
|
@@ -323,9 +323,9 @@ export class LongPipeBreachCalculationResponse extends CalculationResponseBase {
|
|
|
323
323
|
/**
|
|
324
324
|
* LongPipeBreach calculation response class.
|
|
325
325
|
*
|
|
326
|
-
* @param {Entities.Material} exitMaterial -
|
|
326
|
+
* @param {Entities.Material} exitMaterial - a material entity, representing composition of the released material.
|
|
327
327
|
* @param {Entities.DischargeResult} dischargeResult - Scalar discharge results.
|
|
328
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
328
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
329
329
|
*/
|
|
330
330
|
constructor(
|
|
331
331
|
exitMaterial: Entities.Material,
|
|
@@ -448,8 +448,8 @@ class VesselCatastrophicRuptureCalculationRequest extends CalculationRequestBase
|
|
|
448
448
|
/**
|
|
449
449
|
* VesselCatastrophicRupture calculation request class.
|
|
450
450
|
*
|
|
451
|
-
* @param {Entities.Vessel} vessel -
|
|
452
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
451
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
452
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
453
453
|
*/
|
|
454
454
|
constructor(
|
|
455
455
|
vessel: Entities.Vessel,
|
|
@@ -506,8 +506,8 @@ export class VesselCatastrophicRuptureCalculation extends CalculationBase {
|
|
|
506
506
|
/**
|
|
507
507
|
* Calculates the instantaneous release from a pressure vessel or storage tank. It includes expansion modelling to atmospheric conditions. The discharge mass, temperature, and other outputs are reported back as discharge records. The height of the release is located at the midpoint of the vessel.
|
|
508
508
|
*
|
|
509
|
-
* @param {Entities.Vessel} vessel -
|
|
510
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
509
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
510
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
511
511
|
*/
|
|
512
512
|
constructor(
|
|
513
513
|
vessel: Entities.Vessel,
|
|
@@ -596,9 +596,9 @@ export class VesselCatastrophicRuptureCalculationResponse extends CalculationRes
|
|
|
596
596
|
/**
|
|
597
597
|
* VesselCatastrophicRupture calculation response class.
|
|
598
598
|
*
|
|
599
|
-
* @param {Entities.Material} exitMaterial -
|
|
599
|
+
* @param {Entities.Material} exitMaterial - a material entity representing the released material (indentical to storage composition).
|
|
600
600
|
* @param {Entities.DischargeResult} dischargeResult - Scalar discharge results.
|
|
601
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
601
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
602
602
|
*/
|
|
603
603
|
constructor(
|
|
604
604
|
exitMaterial: Entities.Material,
|
|
@@ -723,9 +723,9 @@ class VesselLeakCalculationRequest extends CalculationRequestBase {
|
|
|
723
723
|
/**
|
|
724
724
|
* VesselLeak calculation request class.
|
|
725
725
|
*
|
|
726
|
-
* @param {Entities.Vessel} vessel -
|
|
727
|
-
* @param {Entities.Leak} leak -
|
|
728
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
726
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
727
|
+
* @param {Entities.Leak} leak - a leak entity.
|
|
728
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
729
729
|
*/
|
|
730
730
|
constructor(
|
|
731
731
|
vessel: Entities.Vessel,
|
|
@@ -788,9 +788,9 @@ export class VesselLeakCalculation extends CalculationBase {
|
|
|
788
788
|
/**
|
|
789
789
|
* Calculates the steady state or time-varying leak from a pressure vessel or storage tank. It includes expansion modelling (from the vessel orifice to atmospheric conditions). The discharge rate, temperature, and other time-dependent outputs at a particular time are reported back as discharge records. For steady-state there are always two DischargeRecords generated; for time-varying the number can vary.
|
|
790
790
|
*
|
|
791
|
-
* @param {Entities.Vessel} vessel -
|
|
792
|
-
* @param {Entities.Leak} leak -
|
|
793
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
791
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
792
|
+
* @param {Entities.Leak} leak - a leak entity.
|
|
793
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
794
794
|
*/
|
|
795
795
|
constructor(
|
|
796
796
|
vessel: Entities.Vessel,
|
|
@@ -882,9 +882,9 @@ export class VesselLeakCalculationResponse extends CalculationResponseBase {
|
|
|
882
882
|
/**
|
|
883
883
|
* VesselLeak calculation response class.
|
|
884
884
|
*
|
|
885
|
-
* @param {Entities.Material} exitMaterial -
|
|
885
|
+
* @param {Entities.Material} exitMaterial - a material entity representing the released material (may differ from storage composition).
|
|
886
886
|
* @param {Entities.DischargeResult} dischargeResult - Scalar discharge results.
|
|
887
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
887
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
888
888
|
*/
|
|
889
889
|
constructor(
|
|
890
890
|
exitMaterial: Entities.Material,
|
|
@@ -1009,9 +1009,9 @@ class VesselLineRuptureCalculationRequest extends CalculationRequestBase {
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* VesselLineRupture calculation request class.
|
|
1011
1011
|
*
|
|
1012
|
-
* @param {Entities.Vessel} vessel -
|
|
1013
|
-
* @param {Entities.LineRupture} lineRupture -
|
|
1014
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
1012
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1013
|
+
* @param {Entities.LineRupture} lineRupture - a line rupture entity.
|
|
1014
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
1015
1015
|
*/
|
|
1016
1016
|
constructor(
|
|
1017
1017
|
vessel: Entities.Vessel,
|
|
@@ -1074,9 +1074,9 @@ export class VesselLineRuptureCalculation extends CalculationBase {
|
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Calculations of discharge from a short pipe attached to a vessel.
|
|
1076
1076
|
*
|
|
1077
|
-
* @param {Entities.Vessel} vessel -
|
|
1078
|
-
* @param {Entities.LineRupture} lineRupture -
|
|
1079
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
1077
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1078
|
+
* @param {Entities.LineRupture} lineRupture - a line rupture entity.
|
|
1079
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
1080
1080
|
*/
|
|
1081
1081
|
constructor(
|
|
1082
1082
|
vessel: Entities.Vessel,
|
|
@@ -1168,9 +1168,9 @@ export class VesselLineRuptureCalculationResponse extends CalculationResponseBas
|
|
|
1168
1168
|
/**
|
|
1169
1169
|
* VesselLineRupture calculation response class.
|
|
1170
1170
|
*
|
|
1171
|
-
* @param {Entities.Material} exitMaterial -
|
|
1171
|
+
* @param {Entities.Material} exitMaterial - a material entity representing the released material (which may differ from storage composition).
|
|
1172
1172
|
* @param {Entities.DischargeResult} dischargeResult - Scalar discharge results.
|
|
1173
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
1173
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
1174
1174
|
*/
|
|
1175
1175
|
constructor(
|
|
1176
1176
|
exitMaterial: Entities.Material,
|
|
@@ -1295,9 +1295,9 @@ class VesselReliefValveCalculationRequest extends CalculationRequestBase {
|
|
|
1295
1295
|
/**
|
|
1296
1296
|
* VesselReliefValve calculation request class.
|
|
1297
1297
|
*
|
|
1298
|
-
* @param {Entities.Vessel} vessel -
|
|
1299
|
-
* @param {Entities.ReliefValve} reliefValve -
|
|
1300
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
1298
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1299
|
+
* @param {Entities.ReliefValve} reliefValve - a relief valve entity.
|
|
1300
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
1301
1301
|
*/
|
|
1302
1302
|
constructor(
|
|
1303
1303
|
vessel: Entities.Vessel,
|
|
@@ -1360,9 +1360,9 @@ export class VesselReliefValveCalculation extends CalculationBase {
|
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Calculations of venting from a relief valve attached to a vessel.
|
|
1362
1362
|
*
|
|
1363
|
-
* @param {Entities.Vessel} vessel -
|
|
1364
|
-
* @param {Entities.ReliefValve} reliefValve -
|
|
1365
|
-
* @param {Entities.DischargeParameters} dischargeParameters -
|
|
1363
|
+
* @param {Entities.Vessel} vessel - a vessel entity.
|
|
1364
|
+
* @param {Entities.ReliefValve} reliefValve - a relief valve entity.
|
|
1365
|
+
* @param {Entities.DischargeParameters} dischargeParameters - a discharge parameters entity.
|
|
1366
1366
|
*/
|
|
1367
1367
|
constructor(
|
|
1368
1368
|
vessel: Entities.Vessel,
|
|
@@ -1454,9 +1454,9 @@ export class VesselReliefValveCalculationResponse extends CalculationResponseBas
|
|
|
1454
1454
|
/**
|
|
1455
1455
|
* VesselReliefValve calculation response class.
|
|
1456
1456
|
*
|
|
1457
|
-
* @param {Entities.Material} exitMaterial -
|
|
1457
|
+
* @param {Entities.Material} exitMaterial - a material entity representing the released material (which may differ from storage composition).
|
|
1458
1458
|
* @param {Entities.DischargeResult} dischargeResult - Scalar discharge results.
|
|
1459
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
1459
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
1460
1460
|
*/
|
|
1461
1461
|
constructor(
|
|
1462
1462
|
exitMaterial: Entities.Material,
|
|
@@ -1579,8 +1579,8 @@ class VesselStateCalculationRequest extends CalculationRequestBase {
|
|
|
1579
1579
|
/**
|
|
1580
1580
|
* VesselState calculation request class.
|
|
1581
1581
|
*
|
|
1582
|
-
* @param {Entities.Material} material -
|
|
1583
|
-
* @param {Entities.State} materialState -
|
|
1582
|
+
* @param {Entities.Material} material - a material entity.
|
|
1583
|
+
* @param {Entities.State} materialState - a state entity describing the fluid pressure, temperature, liquid fraction.
|
|
1584
1584
|
*/
|
|
1585
1585
|
constructor(
|
|
1586
1586
|
material: Entities.Material,
|
|
@@ -1638,8 +1638,8 @@ export class VesselStateCalculation extends CalculationBase {
|
|
|
1638
1638
|
the vessel conditions (e.g. Pure gas, Stratified Two-Phase vessel, Pressurised Liquid) that can be input to the
|
|
1639
1639
|
source term models: vessel leak and vessel catastrophic rupture.
|
|
1640
1640
|
*
|
|
1641
|
-
* @param {Entities.Material} material -
|
|
1642
|
-
* @param {Entities.State} materialState -
|
|
1641
|
+
* @param {Entities.Material} material - a material entity.
|
|
1642
|
+
* @param {Entities.State} materialState - a state entity describing the fluid pressure, temperature, liquid fraction.
|
|
1643
1643
|
*/
|
|
1644
1644
|
constructor(
|
|
1645
1645
|
material: Entities.Material,
|
|
@@ -1721,7 +1721,7 @@ export class VesselStateCalculationResponse extends CalculationResponseBase {
|
|
|
1721
1721
|
* VesselState calculation response class.
|
|
1722
1722
|
*
|
|
1723
1723
|
* @param {Enums.VesselConditions} vesselConditions - The conditions of the material in the vessel.
|
|
1724
|
-
* @param {Entities.State} outputState -
|
|
1724
|
+
* @param {Entities.State} outputState - a state entity describing the fluid pressure, temperature and liquid fraction after the flash calculation.
|
|
1725
1725
|
*/
|
|
1726
1726
|
constructor(
|
|
1727
1727
|
vesselConditions: Enums.VesselConditions,
|
|
@@ -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,13 +171,13 @@ class DispersionCalculationRequest extends CalculationRequestBase {
|
|
|
171
171
|
/**
|
|
172
172
|
* Dispersion calculation request class.
|
|
173
173
|
*
|
|
174
|
-
* @param {Entities.Material} material -
|
|
175
|
-
* @param {Entities.Substrate} substrate -
|
|
174
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
175
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
176
176
|
* @param {Entities.DischargeResult} dischargeResult - Discharge / source term definition.
|
|
177
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
178
|
-
* @param {number} dischargeRecordCount - Number of
|
|
179
|
-
* @param {Entities.Weather} weather -
|
|
180
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
177
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
178
|
+
* @param {number} dischargeRecordCount - Number of discharge records.
|
|
179
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
180
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
181
181
|
* @param {number} endPointConcentration - Concentration at which the dispersion calculations will terminate (v/v fraction).
|
|
182
182
|
*/
|
|
183
183
|
constructor(
|
|
@@ -273,13 +273,13 @@ export class DispersionCalculation extends CalculationBase {
|
|
|
273
273
|
of DispersionRecords. The modelling includes rainout and re-evaporation for 2-phase releases.
|
|
274
274
|
Time-varying scenarios with mixtures are not currently handled and will give an error. It is recommended therefore to use a continuous or instantaneous source for mixtures.
|
|
275
275
|
*
|
|
276
|
-
* @param {Entities.Material} material -
|
|
277
|
-
* @param {Entities.Substrate} substrate -
|
|
276
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
277
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
278
278
|
* @param {Entities.DischargeResult} dischargeResult - Discharge / source term definition.
|
|
279
|
-
* @param {Entities.DischargeRecord[]} dischargeRecords -
|
|
280
|
-
* @param {number} dischargeRecordCount - Number of
|
|
281
|
-
* @param {Entities.Weather} weather -
|
|
282
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
279
|
+
* @param {Entities.DischargeRecord[]} dischargeRecords - an array of discharge records.
|
|
280
|
+
* @param {number} dischargeRecordCount - Number of discharge records.
|
|
281
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
282
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
283
283
|
* @param {number} endPointConcentration - Concentration at which the dispersion calculations will terminate (v/v fraction).
|
|
284
284
|
*/
|
|
285
285
|
constructor(
|
|
@@ -393,8 +393,8 @@ export class DispersionCalculationResponse extends CalculationResponseBase {
|
|
|
393
393
|
* Dispersion calculation response class.
|
|
394
394
|
*
|
|
395
395
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
396
|
-
* @param {Entities.DispersionRecord[]} dispersionRecords -
|
|
397
|
-
* @param {Entities.PoolRecord[]} poolRecords -
|
|
396
|
+
* @param {Entities.DispersionRecord[]} dispersionRecords - an array of dispersion records.
|
|
397
|
+
* @param {Entities.PoolRecord[]} poolRecords - an array of pool records.
|
|
398
398
|
*/
|
|
399
399
|
constructor(
|
|
400
400
|
scalarUdmOutputs: Entities.ScalarUdmOutputs,
|