@dnv-plant/typescriptpws 1.0.63 → 1.0.64-alpha.1861876
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 +2 -2
- 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
|
|
|
@@ -179,18 +179,18 @@ class LateExplosionCalculationRequest extends CalculationRequestBase {
|
|
|
179
179
|
/**
|
|
180
180
|
* LateExplosion calculation request class.
|
|
181
181
|
*
|
|
182
|
-
* @param {Entities.Material} material -
|
|
182
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
183
183
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
184
|
-
* @param {Entities.Weather} weather -
|
|
185
|
-
* @param {Entities.DispersionRecord[]} dispersionRecords -
|
|
186
|
-
* @param {number} dispersionRecordCount - Number of
|
|
187
|
-
* @param {Entities.Substrate} substrate -
|
|
188
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
189
|
-
* @param {Entities.ExplosionOutputConfig} explosionOutputConfig -
|
|
190
|
-
* @param {Entities.ExplosionParameters} explosionParameters -
|
|
191
|
-
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes -
|
|
192
|
-
* @param {number} explosionConfinedVolumeCount - Number of
|
|
193
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
184
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
185
|
+
* @param {Entities.DispersionRecord[]} dispersionRecords - an array of dispersion records.
|
|
186
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
187
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
188
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config.
|
|
189
|
+
* @param {Entities.ExplosionOutputConfig} explosionOutputConfig - an explosion output config.
|
|
190
|
+
* @param {Entities.ExplosionParameters} explosionParameters - an explosion parameters entity.
|
|
191
|
+
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes - an array of explosion confined volumes.
|
|
192
|
+
* @param {number} explosionConfinedVolumeCount - Number of explosion confined volumes.
|
|
193
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
194
194
|
*/
|
|
195
195
|
constructor(
|
|
196
196
|
material: Entities.Material,
|
|
@@ -306,18 +306,18 @@ export class LateExplosionCalculation extends CalculationBase {
|
|
|
306
306
|
/**
|
|
307
307
|
* Calculates the explosion overpressures from a flammable cloud, including delayed ignition. The method can switch between a "Uniform confined" approach where the multi-energy explosion calculations will model a single confined source that contains the entire mass of the cloud, or a "User-defined" approach where the user can specify explosion volumes with different strengths. The results produced are for the worst-case explosion determined by exploding the cloud at 10 m intervals in the downwind direction.
|
|
308
308
|
*
|
|
309
|
-
* @param {Entities.Material} material -
|
|
309
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
310
310
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
311
|
-
* @param {Entities.Weather} weather -
|
|
312
|
-
* @param {Entities.DispersionRecord[]} dispersionRecords -
|
|
313
|
-
* @param {number} dispersionRecordCount - Number of
|
|
314
|
-
* @param {Entities.Substrate} substrate -
|
|
315
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
316
|
-
* @param {Entities.ExplosionOutputConfig} explosionOutputConfig -
|
|
317
|
-
* @param {Entities.ExplosionParameters} explosionParameters -
|
|
318
|
-
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes -
|
|
319
|
-
* @param {number} explosionConfinedVolumeCount - Number of
|
|
320
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
311
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
312
|
+
* @param {Entities.DispersionRecord[]} dispersionRecords - an array of dispersion records.
|
|
313
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
314
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
315
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config.
|
|
316
|
+
* @param {Entities.ExplosionOutputConfig} explosionOutputConfig - an explosion output config.
|
|
317
|
+
* @param {Entities.ExplosionParameters} explosionParameters - an explosion parameters entity.
|
|
318
|
+
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes - an array of explosion confined volumes.
|
|
319
|
+
* @param {number} explosionConfinedVolumeCount - Number of explosion confined volumes.
|
|
320
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
321
321
|
*/
|
|
322
322
|
constructor(
|
|
323
323
|
material: Entities.Material,
|
|
@@ -428,8 +428,8 @@ export class LateExplosionCalculationResponse extends CalculationResponseBase {
|
|
|
428
428
|
/**
|
|
429
429
|
* LateExplosion calculation response class.
|
|
430
430
|
*
|
|
431
|
-
* @param {Entities.ExplosionOverpressureResult} explosionUnifConfOverpressureResult - Uniform confined
|
|
432
|
-
* @param {Entities.ExplosionOverpressureResult} explosionUnconfOverpressureResult - Unconfined
|
|
431
|
+
* @param {Entities.ExplosionOverpressureResult} explosionUnifConfOverpressureResult - Uniform confined explosion overpressure result.
|
|
432
|
+
* @param {Entities.ExplosionOverpressureResult} explosionUnconfOverpressureResult - Unconfined explosion overpressure result.
|
|
433
433
|
*/
|
|
434
434
|
constructor(
|
|
435
435
|
explosionUnifConfOverpressureResult: Entities.ExplosionOverpressureResult,
|
|
@@ -559,19 +559,19 @@ class LateExplosionToOPLevelsCalculationRequest extends CalculationRequestBase {
|
|
|
559
559
|
/**
|
|
560
560
|
* LateExplosionToOPLevels calculation request class.
|
|
561
561
|
*
|
|
562
|
-
* @param {Entities.Material} material -
|
|
562
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
563
563
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
564
|
-
* @param {Entities.Weather} weather -
|
|
564
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
565
565
|
* @param {Entities.DispersionRecord[]} dispersionRecords - Cloud definition.
|
|
566
|
-
* @param {number} dispersionRecordCount - Number of
|
|
567
|
-
* @param {Entities.Substrate} substrate -
|
|
568
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
569
|
-
* @param {Entities.ExplosionOutputConfig[]} explosionOutputConfigs -
|
|
570
|
-
* @param {number} explosionOutputConfigCount - Number of
|
|
566
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
567
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
568
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config entity.
|
|
569
|
+
* @param {Entities.ExplosionOutputConfig[]} explosionOutputConfigs - an array of explosion output configs.
|
|
570
|
+
* @param {number} explosionOutputConfigCount - Number of explosion output configs.
|
|
571
571
|
* @param {Entities.ExplosionParameters} explosionParameters - Explosion parameters.
|
|
572
|
-
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes -
|
|
573
|
-
* @param {number} explosionConfinedVolumeCount - Number of
|
|
574
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
572
|
+
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes - an array of explosion confined volumes.
|
|
573
|
+
* @param {number} explosionConfinedVolumeCount - Number of explosion confined volumes.
|
|
574
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
575
575
|
*/
|
|
576
576
|
constructor(
|
|
577
577
|
material: Entities.Material,
|
|
@@ -693,19 +693,19 @@ export class LateExplosionToOPLevelsCalculation extends CalculationBase {
|
|
|
693
693
|
/**
|
|
694
694
|
* Calculates the explosion overpressures from a flammable cloud, including delayed ignition. The method can switch between a "Uniform confined" approach where the multi-energy explosion calculations will model a single confined source that contains the entire mass of the cloud, or a "User-defined" approach where the user can specify explosion volumes with different strengths. The results produced are for the worst-case explosion determined by exploding the cloud at 10 m intervals in the downwind direction. This calculation determines the worst-case explosion to various overpressure levels as specified by the array of explosion output configs.
|
|
695
695
|
*
|
|
696
|
-
* @param {Entities.Material} material -
|
|
696
|
+
* @param {Entities.Material} material - a material entity with post-discharge composition.
|
|
697
697
|
* @param {Entities.ScalarUdmOutputs} scalarUdmOutputs - Scalar dispersion results.
|
|
698
|
-
* @param {Entities.Weather} weather -
|
|
698
|
+
* @param {Entities.Weather} weather - a weather entity.
|
|
699
699
|
* @param {Entities.DispersionRecord[]} dispersionRecords - Cloud definition.
|
|
700
|
-
* @param {number} dispersionRecordCount - Number of
|
|
701
|
-
* @param {Entities.Substrate} substrate -
|
|
702
|
-
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig -
|
|
703
|
-
* @param {Entities.ExplosionOutputConfig[]} explosionOutputConfigs -
|
|
704
|
-
* @param {number} explosionOutputConfigCount - Number of
|
|
700
|
+
* @param {number} dispersionRecordCount - Number of dispersion records.
|
|
701
|
+
* @param {Entities.Substrate} substrate - a substrate entity.
|
|
702
|
+
* @param {Entities.DispersionOutputConfig} dispersionOutputConfig - a dispersion output config entity.
|
|
703
|
+
* @param {Entities.ExplosionOutputConfig[]} explosionOutputConfigs - an array of explosion output configs.
|
|
704
|
+
* @param {number} explosionOutputConfigCount - Number of explosion output configs.
|
|
705
705
|
* @param {Entities.ExplosionParameters} explosionParameters - Explosion parameters.
|
|
706
|
-
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes -
|
|
707
|
-
* @param {number} explosionConfinedVolumeCount - Number of
|
|
708
|
-
* @param {Entities.DispersionParameters} dispersionParameters -
|
|
706
|
+
* @param {Entities.ExplosionConfinedVolume[]} explosionConfinedVolumes - an array of explosion confined volumes.
|
|
707
|
+
* @param {number} explosionConfinedVolumeCount - Number of explosion confined volumes.
|
|
708
|
+
* @param {Entities.DispersionParameters} dispersionParameters - a dispersion parameters entity.
|
|
709
709
|
*/
|
|
710
710
|
constructor(
|
|
711
711
|
material: Entities.Material,
|
|
@@ -829,8 +829,8 @@ export class LateExplosionToOPLevelsCalculationResponse extends CalculationRespo
|
|
|
829
829
|
/**
|
|
830
830
|
* LateExplosionToOPLevels calculation response class.
|
|
831
831
|
*
|
|
832
|
-
* @param {Entities.ExplosionOverpressureResult[]} explosionUnifConfOverpressureResults -
|
|
833
|
-
* @param {Entities.ExplosionOverpressureResult[]} explosionUnconfOverpressureResults -
|
|
832
|
+
* @param {Entities.ExplosionOverpressureResult[]} explosionUnifConfOverpressureResults - an array of uniform confined explosion overpressure results.
|
|
833
|
+
* @param {Entities.ExplosionOverpressureResult[]} explosionUnconfOverpressureResults - an array of unconfined explosion overpressure results.
|
|
834
834
|
*/
|
|
835
835
|
constructor(
|
|
836
836
|
explosionUnifConfOverpressureResults: Entities.ExplosionOverpressureResult[],
|