@dnv-plant/typescriptpws 1.0.18 → 1.0.19-alpha.1807355
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.ts +2 -2
- package/src/constants.ts +2 -2
- package/src/entities.ts +252 -52
- package/src/entity-schemas.ts +2 -2
- package/src/enums.ts +2 -2
- package/src/materials.ts +2 -2
- package/src/utilities.ts +2 -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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:55
|
|
5
5
|
* Template: templates/typescriptpws/index.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnv-plant/typescriptpws",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19-alpha.1807355",
|
|
4
4
|
"description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/jsonwebtoken": "^9.0.8"
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}
|
package/src/calculations.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:54
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:51
|
|
5
5
|
* Template: templates/typescriptpws/constants.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/entities.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:53
|
|
5
5
|
* Template: templates/typescriptpws/entities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -56,11 +56,14 @@ export class LocalPosition extends EntityBase {
|
|
|
56
56
|
* @param {number} z - z coordinate. (default value is 0)
|
|
57
57
|
*/
|
|
58
58
|
constructor(
|
|
59
|
+
id?: string,
|
|
60
|
+
typeId?: string,
|
|
61
|
+
displayName?: string,
|
|
59
62
|
x: number = 0,
|
|
60
63
|
y: number = 0,
|
|
61
64
|
z: number = 0
|
|
62
65
|
) {
|
|
63
|
-
super();
|
|
66
|
+
super(id, typeId, displayName);
|
|
64
67
|
this.x = x;
|
|
65
68
|
this.y = y;
|
|
66
69
|
this.z = z;
|
|
@@ -82,6 +85,7 @@ export class LocalPosition extends EntityBase {
|
|
|
82
85
|
|
|
83
86
|
toString() {
|
|
84
87
|
const parts = [
|
|
88
|
+
super.toString(),
|
|
85
89
|
"* LocalPosition",
|
|
86
90
|
`x: ${this.x}`,
|
|
87
91
|
`y: ${this.y}`,
|
|
@@ -100,9 +104,12 @@ export class Asset extends EntityBase {
|
|
|
100
104
|
* @param {LocalPosition} location - Location of the asset.
|
|
101
105
|
*/
|
|
102
106
|
constructor(
|
|
107
|
+
id?: string,
|
|
108
|
+
typeId?: string,
|
|
109
|
+
displayName?: string,
|
|
103
110
|
location: LocalPosition = new LocalPosition()
|
|
104
111
|
) {
|
|
105
|
-
super();
|
|
112
|
+
super(id, typeId, displayName);
|
|
106
113
|
this.location = location;
|
|
107
114
|
}
|
|
108
115
|
|
|
@@ -117,6 +124,7 @@ export class Asset extends EntityBase {
|
|
|
117
124
|
|
|
118
125
|
toString() {
|
|
119
126
|
const parts = [
|
|
127
|
+
super.toString(),
|
|
120
128
|
"* Asset",
|
|
121
129
|
`location: ${this.location?.toString()}`,
|
|
122
130
|
];
|
|
@@ -135,10 +143,13 @@ export class MaterialComponent extends EntityBase {
|
|
|
135
143
|
* @param {number} moleFraction - Mole fraction of the component in the material. (default value is 1)
|
|
136
144
|
*/
|
|
137
145
|
constructor(
|
|
146
|
+
id?: string,
|
|
147
|
+
typeId?: string,
|
|
148
|
+
displayName?: string,
|
|
138
149
|
name: string = "",
|
|
139
150
|
moleFraction: number = 1
|
|
140
151
|
) {
|
|
141
|
-
super();
|
|
152
|
+
super(id, typeId, displayName);
|
|
142
153
|
this.name = name;
|
|
143
154
|
this.moleFraction = moleFraction;
|
|
144
155
|
}
|
|
@@ -156,6 +167,7 @@ export class MaterialComponent extends EntityBase {
|
|
|
156
167
|
|
|
157
168
|
toString() {
|
|
158
169
|
const parts = [
|
|
170
|
+
super.toString(),
|
|
159
171
|
"* MaterialComponent",
|
|
160
172
|
`name: ${this.name}`,
|
|
161
173
|
`moleFraction: ${this.moleFraction}`,
|
|
@@ -179,12 +191,15 @@ export class Material extends EntityBase {
|
|
|
179
191
|
* @param {Enums.PropertyTemplate} propertyTemplate - The template to be used for the selection of calculation methods for material properties. (default value is Enums.PropertyTemplate.PHAST_MC)
|
|
180
192
|
*/
|
|
181
193
|
constructor(
|
|
194
|
+
id?: string,
|
|
195
|
+
typeId?: string,
|
|
196
|
+
displayName?: string,
|
|
182
197
|
name: string = "",
|
|
183
198
|
components: MaterialComponent[] = [new MaterialComponent()],
|
|
184
199
|
componentCount: number = 1,
|
|
185
200
|
propertyTemplate: Enums.PropertyTemplate = Enums.PropertyTemplate.PHAST_MC
|
|
186
201
|
) {
|
|
187
|
-
super();
|
|
202
|
+
super(id, typeId, displayName);
|
|
188
203
|
this.name = name;
|
|
189
204
|
this.components = components;
|
|
190
205
|
this.componentCount = componentCount;
|
|
@@ -225,6 +240,7 @@ export class Material extends EntityBase {
|
|
|
225
240
|
|
|
226
241
|
toString() {
|
|
227
242
|
const parts = [
|
|
243
|
+
super.toString(),
|
|
228
244
|
"* Material",
|
|
229
245
|
`name: ${this.name}`,
|
|
230
246
|
this.components?.map((item) => item?.toString()).join("\n"),
|
|
@@ -252,13 +268,16 @@ export class State extends EntityBase {
|
|
|
252
268
|
* @param {Enums.MixtureModelling} mixtureModelling - Method for modelling a mixture. (default value is Enums.MixtureModelling.PC)
|
|
253
269
|
*/
|
|
254
270
|
constructor(
|
|
271
|
+
id?: string,
|
|
272
|
+
typeId?: string,
|
|
273
|
+
displayName?: string,
|
|
255
274
|
pressure?: number,
|
|
256
275
|
temperature?: number,
|
|
257
276
|
liquidFraction?: number,
|
|
258
277
|
flashFlag: Enums.FluidSpec = Enums.FluidSpec.TP,
|
|
259
278
|
mixtureModelling: Enums.MixtureModelling = Enums.MixtureModelling.PC
|
|
260
279
|
) {
|
|
261
|
-
super();
|
|
280
|
+
super(id, typeId, displayName);
|
|
262
281
|
this.pressure = pressure;
|
|
263
282
|
this.temperature = temperature;
|
|
264
283
|
this.liquidFraction = liquidFraction;
|
|
@@ -297,6 +316,7 @@ export class State extends EntityBase {
|
|
|
297
316
|
|
|
298
317
|
toString() {
|
|
299
318
|
const parts = [
|
|
319
|
+
super.toString(),
|
|
300
320
|
"* State",
|
|
301
321
|
`pressure: ${this.pressure}`,
|
|
302
322
|
`temperature: ${this.temperature}`,
|
|
@@ -326,6 +346,9 @@ export class AtmosphericStorageTank extends Asset {
|
|
|
326
346
|
* @param {number} liquidFillFractionByVolume - The proportion of the tank occupied by liquid. (default value is 0.9)
|
|
327
347
|
*/
|
|
328
348
|
constructor(
|
|
349
|
+
id?: string,
|
|
350
|
+
typeId?: string,
|
|
351
|
+
displayName?: string,
|
|
329
352
|
location: LocalPosition = new LocalPosition(),
|
|
330
353
|
state: State = new State(),
|
|
331
354
|
diameter?: number,
|
|
@@ -333,7 +356,7 @@ export class AtmosphericStorageTank extends Asset {
|
|
|
333
356
|
material: Material = new Material(),
|
|
334
357
|
liquidFillFractionByVolume: number = 0.9
|
|
335
358
|
) {
|
|
336
|
-
super(location);
|
|
359
|
+
super(id, typeId, displayName, location);
|
|
337
360
|
this.state = state;
|
|
338
361
|
this.diameter = diameter;
|
|
339
362
|
this.height = height;
|
|
@@ -365,6 +388,7 @@ export class AtmosphericStorageTank extends Asset {
|
|
|
365
388
|
|
|
366
389
|
toString() {
|
|
367
390
|
const parts = [
|
|
391
|
+
super.toString(),
|
|
368
392
|
"* AtmosphericStorageTank",
|
|
369
393
|
`location: ${this.location?.toString()}`,
|
|
370
394
|
`state: ${this.state?.toString()}`,
|
|
@@ -390,11 +414,14 @@ export class Bund extends EntityBase {
|
|
|
390
414
|
* @param {boolean} specifyBund - Whether to model the effect of a bund on the spreading of a liquid pool. (default value is false)
|
|
391
415
|
*/
|
|
392
416
|
constructor(
|
|
417
|
+
id?: string,
|
|
418
|
+
typeId?: string,
|
|
419
|
+
displayName?: string,
|
|
393
420
|
bundHeight: number = 0.0,
|
|
394
421
|
bundDiameter: number = 0.0,
|
|
395
422
|
specifyBund: boolean = false
|
|
396
423
|
) {
|
|
397
|
-
super();
|
|
424
|
+
super(id, typeId, displayName);
|
|
398
425
|
this.bundHeight = bundHeight;
|
|
399
426
|
this.bundDiameter = bundDiameter;
|
|
400
427
|
this.specifyBund = specifyBund;
|
|
@@ -416,6 +443,7 @@ export class Bund extends EntityBase {
|
|
|
416
443
|
|
|
417
444
|
toString() {
|
|
418
445
|
const parts = [
|
|
446
|
+
super.toString(),
|
|
419
447
|
"* Bund",
|
|
420
448
|
`bundHeight: ${this.bundHeight}`,
|
|
421
449
|
`bundDiameter: ${this.bundDiameter}`,
|
|
@@ -431,8 +459,11 @@ export class Scenario extends EntityBase {
|
|
|
431
459
|
*
|
|
432
460
|
*/
|
|
433
461
|
constructor(
|
|
462
|
+
id?: string,
|
|
463
|
+
typeId?: string,
|
|
464
|
+
displayName?: string,
|
|
434
465
|
) {
|
|
435
|
-
super();
|
|
466
|
+
super(id, typeId, displayName);
|
|
436
467
|
}
|
|
437
468
|
|
|
438
469
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -442,6 +473,7 @@ export class Scenario extends EntityBase {
|
|
|
442
473
|
|
|
443
474
|
toString() {
|
|
444
475
|
const parts = [
|
|
476
|
+
super.toString(),
|
|
445
477
|
"* Scenario",
|
|
446
478
|
];
|
|
447
479
|
return parts.join("\n");
|
|
@@ -454,8 +486,11 @@ export class Instantaneous extends Scenario {
|
|
|
454
486
|
*
|
|
455
487
|
*/
|
|
456
488
|
constructor(
|
|
489
|
+
id?: string,
|
|
490
|
+
typeId?: string,
|
|
491
|
+
displayName?: string,
|
|
457
492
|
) {
|
|
458
|
-
super();
|
|
493
|
+
super(id, typeId, displayName);
|
|
459
494
|
}
|
|
460
495
|
|
|
461
496
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -465,6 +500,7 @@ export class Instantaneous extends Scenario {
|
|
|
465
500
|
|
|
466
501
|
toString() {
|
|
467
502
|
const parts = [
|
|
503
|
+
super.toString(),
|
|
468
504
|
"* Instantaneous",
|
|
469
505
|
];
|
|
470
506
|
return parts.join("\n");
|
|
@@ -477,8 +513,11 @@ export class CatastrophicRupture extends Instantaneous {
|
|
|
477
513
|
*
|
|
478
514
|
*/
|
|
479
515
|
constructor(
|
|
516
|
+
id?: string,
|
|
517
|
+
typeId?: string,
|
|
518
|
+
displayName?: string,
|
|
480
519
|
) {
|
|
481
|
-
super();
|
|
520
|
+
super(id, typeId, displayName);
|
|
482
521
|
}
|
|
483
522
|
|
|
484
523
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -488,6 +527,7 @@ export class CatastrophicRupture extends Instantaneous {
|
|
|
488
527
|
|
|
489
528
|
toString() {
|
|
490
529
|
const parts = [
|
|
530
|
+
super.toString(),
|
|
491
531
|
"* CatastrophicRupture",
|
|
492
532
|
];
|
|
493
533
|
return parts.join("\n");
|
|
@@ -505,10 +545,13 @@ export class ConcentrationRecord extends EntityBase {
|
|
|
505
545
|
* @param {LocalPosition} position - x, y, z position.
|
|
506
546
|
*/
|
|
507
547
|
constructor(
|
|
548
|
+
id?: string,
|
|
549
|
+
typeId?: string,
|
|
550
|
+
displayName?: string,
|
|
508
551
|
concentration?: number,
|
|
509
552
|
position: LocalPosition = new LocalPosition()
|
|
510
553
|
) {
|
|
511
|
-
super();
|
|
554
|
+
super(id, typeId, displayName);
|
|
512
555
|
this.concentration = concentration;
|
|
513
556
|
this.position = position;
|
|
514
557
|
}
|
|
@@ -527,6 +570,7 @@ export class ConcentrationRecord extends EntityBase {
|
|
|
527
570
|
|
|
528
571
|
toString() {
|
|
529
572
|
const parts = [
|
|
573
|
+
super.toString(),
|
|
530
574
|
"* ConcentrationRecord",
|
|
531
575
|
`concentration: ${this.concentration}`,
|
|
532
576
|
`position: ${this.position?.toString()}`,
|
|
@@ -548,11 +592,14 @@ export class ConstantMaterialResult extends EntityBase {
|
|
|
548
592
|
* @param {number} totalMolecularWeight - The total molecular weight of the material.
|
|
549
593
|
*/
|
|
550
594
|
constructor(
|
|
595
|
+
id?: string,
|
|
596
|
+
typeId?: string,
|
|
597
|
+
displayName?: string,
|
|
551
598
|
criticalPressure?: number,
|
|
552
599
|
criticalTemperature?: number,
|
|
553
600
|
totalMolecularWeight?: number
|
|
554
601
|
) {
|
|
555
|
-
super();
|
|
602
|
+
super(id, typeId, displayName);
|
|
556
603
|
this.criticalPressure = criticalPressure;
|
|
557
604
|
this.criticalTemperature = criticalTemperature;
|
|
558
605
|
this.totalMolecularWeight = totalMolecularWeight;
|
|
@@ -574,6 +621,7 @@ export class ConstantMaterialResult extends EntityBase {
|
|
|
574
621
|
|
|
575
622
|
toString() {
|
|
576
623
|
const parts = [
|
|
624
|
+
super.toString(),
|
|
577
625
|
"* ConstantMaterialResult",
|
|
578
626
|
`criticalPressure: ${this.criticalPressure}`,
|
|
579
627
|
`criticalTemperature: ${this.criticalTemperature}`,
|
|
@@ -592,9 +640,12 @@ export class DischargeParameters extends EntityBase {
|
|
|
592
640
|
* @param {Enums.FlashAtOrifice} flashAtOrifice - Whether discharge calculations should allow the phase to change between storage and orifice conditions. (default value is Enums.FlashAtOrifice.DISALLOW_LIQUID_FLASH)
|
|
593
641
|
*/
|
|
594
642
|
constructor(
|
|
643
|
+
id?: string,
|
|
644
|
+
typeId?: string,
|
|
645
|
+
displayName?: string,
|
|
595
646
|
flashAtOrifice: Enums.FlashAtOrifice = Enums.FlashAtOrifice.DISALLOW_LIQUID_FLASH
|
|
596
647
|
) {
|
|
597
|
-
super();
|
|
648
|
+
super(id, typeId, displayName);
|
|
598
649
|
this.flashAtOrifice = flashAtOrifice;
|
|
599
650
|
}
|
|
600
651
|
|
|
@@ -617,6 +668,7 @@ export class DischargeParameters extends EntityBase {
|
|
|
617
668
|
|
|
618
669
|
toString() {
|
|
619
670
|
const parts = [
|
|
671
|
+
super.toString(),
|
|
620
672
|
"* DischargeParameters",
|
|
621
673
|
`flashAtOrifice: ${this.flashAtOrifice}`,
|
|
622
674
|
];
|
|
@@ -649,6 +701,9 @@ export class DischargeRecord extends EntityBase {
|
|
|
649
701
|
* @param {number} expandedDiameter - The diameter of the assumed circular cross-sectional flow at the point where the fluid has depressurised to ambient pressure. (default value is 0.0)
|
|
650
702
|
*/
|
|
651
703
|
constructor(
|
|
704
|
+
id?: string,
|
|
705
|
+
typeId?: string,
|
|
706
|
+
displayName?: string,
|
|
652
707
|
time?: number,
|
|
653
708
|
massFlow?: number,
|
|
654
709
|
finalState: State = new State(),
|
|
@@ -659,7 +714,7 @@ export class DischargeRecord extends EntityBase {
|
|
|
659
714
|
dropletDiameter?: number,
|
|
660
715
|
expandedDiameter: number = 0.0
|
|
661
716
|
) {
|
|
662
|
-
super();
|
|
717
|
+
super(id, typeId, displayName);
|
|
663
718
|
this.time = time;
|
|
664
719
|
this.massFlow = massFlow;
|
|
665
720
|
this.finalState = finalState;
|
|
@@ -708,6 +763,7 @@ export class DischargeRecord extends EntityBase {
|
|
|
708
763
|
|
|
709
764
|
toString() {
|
|
710
765
|
const parts = [
|
|
766
|
+
super.toString(),
|
|
711
767
|
"* DischargeRecord",
|
|
712
768
|
`time: ${this.time}`,
|
|
713
769
|
`massFlow: ${this.massFlow}`,
|
|
@@ -744,6 +800,9 @@ export class DischargeResult extends EntityBase {
|
|
|
744
800
|
* @param {number} preDilutionAirRate - The rate at which air at ambient conditions mixes with the released material before the cloud starts to move away from the point of release. (default value is 0)
|
|
745
801
|
*/
|
|
746
802
|
constructor(
|
|
803
|
+
id?: string,
|
|
804
|
+
typeId?: string,
|
|
805
|
+
displayName?: string,
|
|
747
806
|
expansionEnergy?: number,
|
|
748
807
|
releaseMass?: number,
|
|
749
808
|
height?: number,
|
|
@@ -752,7 +811,7 @@ export class DischargeResult extends EntityBase {
|
|
|
752
811
|
releaseType: Enums.DynamicType = Enums.DynamicType.UNSET,
|
|
753
812
|
preDilutionAirRate: number = 0
|
|
754
813
|
) {
|
|
755
|
-
super();
|
|
814
|
+
super(id, typeId, displayName);
|
|
756
815
|
this.expansionEnergy = expansionEnergy;
|
|
757
816
|
this.releaseMass = releaseMass;
|
|
758
817
|
this.height = height;
|
|
@@ -799,6 +858,7 @@ export class DischargeResult extends EntityBase {
|
|
|
799
858
|
|
|
800
859
|
toString() {
|
|
801
860
|
const parts = [
|
|
861
|
+
super.toString(),
|
|
802
862
|
"* DischargeResult",
|
|
803
863
|
`expansionEnergy: ${this.expansionEnergy}`,
|
|
804
864
|
`releaseMass: ${this.releaseMass}`,
|
|
@@ -841,6 +901,9 @@ export class DispersionOutputConfig extends EntityBase {
|
|
|
841
901
|
* @param {string} componentToTrackName - Name of the component to track.
|
|
842
902
|
*/
|
|
843
903
|
constructor(
|
|
904
|
+
id?: string,
|
|
905
|
+
typeId?: string,
|
|
906
|
+
displayName?: string,
|
|
844
907
|
downwindDistance: number = 100,
|
|
845
908
|
time: number = 60,
|
|
846
909
|
resolution: Enums.Resolution = Enums.Resolution.MEDIUM,
|
|
@@ -853,7 +916,7 @@ export class DispersionOutputConfig extends EntityBase {
|
|
|
853
916
|
componentToTrackIndex: number = -1,
|
|
854
917
|
componentToTrackName: string = ""
|
|
855
918
|
) {
|
|
856
|
-
super();
|
|
919
|
+
super(id, typeId, displayName);
|
|
857
920
|
this.downwindDistance = downwindDistance;
|
|
858
921
|
this.time = time;
|
|
859
922
|
this.resolution = resolution;
|
|
@@ -916,6 +979,7 @@ export class DispersionOutputConfig extends EntityBase {
|
|
|
916
979
|
|
|
917
980
|
toString() {
|
|
918
981
|
const parts = [
|
|
982
|
+
super.toString(),
|
|
919
983
|
"* DispersionOutputConfig",
|
|
920
984
|
`downwindDistance: ${this.downwindDistance}`,
|
|
921
985
|
`time: ${this.time}`,
|
|
@@ -960,6 +1024,9 @@ export class DispersionParameters extends EntityBase {
|
|
|
960
1024
|
* @param {number} lflFractionToStop - The LFL multipler, which determines the minimum concentration of interest for a flammable release. If the concentration of interest determined from the DispersionOutputConfig is lowest than this value, an error will occur. (default value is 0.5)
|
|
961
1025
|
*/
|
|
962
1026
|
constructor(
|
|
1027
|
+
id?: string,
|
|
1028
|
+
typeId?: string,
|
|
1029
|
+
displayName?: string,
|
|
963
1030
|
relativeTolerance: number = 0.001,
|
|
964
1031
|
rainoutThermoFlag: Enums.RainoutThermoFlag = Enums.RainoutThermoFlag.RAINOUT_NON_EQUILIBRIUM,
|
|
965
1032
|
fixedStepSize: number = 0.01,
|
|
@@ -971,7 +1038,7 @@ export class DispersionParameters extends EntityBase {
|
|
|
971
1038
|
averagingTime: number = 18.75,
|
|
972
1039
|
lflFractionToStop: number = 0.5
|
|
973
1040
|
) {
|
|
974
|
-
super();
|
|
1041
|
+
super(id, typeId, displayName);
|
|
975
1042
|
this.relativeTolerance = relativeTolerance;
|
|
976
1043
|
this.rainoutThermoFlag = rainoutThermoFlag;
|
|
977
1044
|
this.fixedStepSize = fixedStepSize;
|
|
@@ -1030,6 +1097,7 @@ export class DispersionParameters extends EntityBase {
|
|
|
1030
1097
|
|
|
1031
1098
|
toString() {
|
|
1032
1099
|
const parts = [
|
|
1100
|
+
super.toString(),
|
|
1033
1101
|
"* DispersionParameters",
|
|
1034
1102
|
`relativeTolerance: ${this.relativeTolerance}`,
|
|
1035
1103
|
`rainoutThermoFlag: ${this.rainoutThermoFlag}`,
|
|
@@ -1111,6 +1179,9 @@ export class DispersionRecord extends EntityBase {
|
|
|
1111
1179
|
* @param {Enums.DynamicType} instCon - Instantanous or continuous (time-varying not permitted). (default value is Enums.DynamicType.UNSET)
|
|
1112
1180
|
*/
|
|
1113
1181
|
constructor(
|
|
1182
|
+
id?: string,
|
|
1183
|
+
typeId?: string,
|
|
1184
|
+
displayName?: string,
|
|
1114
1185
|
observerIndex?: number,
|
|
1115
1186
|
centrelineConcentration?: number,
|
|
1116
1187
|
downwindDistance?: number,
|
|
@@ -1141,7 +1212,7 @@ export class DispersionRecord extends EntityBase {
|
|
|
1141
1212
|
mass?: number,
|
|
1142
1213
|
instCon: Enums.DynamicType = Enums.DynamicType.UNSET
|
|
1143
1214
|
) {
|
|
1144
|
-
super();
|
|
1215
|
+
super(id, typeId, displayName);
|
|
1145
1216
|
this.observerIndex = observerIndex;
|
|
1146
1217
|
this.centrelineConcentration = centrelineConcentration;
|
|
1147
1218
|
this.downwindDistance = downwindDistance;
|
|
@@ -1276,6 +1347,7 @@ export class DispersionRecord extends EntityBase {
|
|
|
1276
1347
|
|
|
1277
1348
|
toString() {
|
|
1278
1349
|
const parts = [
|
|
1350
|
+
super.toString(),
|
|
1279
1351
|
"* DispersionRecord",
|
|
1280
1352
|
`observerIndex: ${this.observerIndex}`,
|
|
1281
1353
|
`centrelineConcentration: ${this.centrelineConcentration}`,
|
|
@@ -1322,10 +1394,13 @@ export class ExplosionConfinedVolume extends EntityBase {
|
|
|
1322
1394
|
* @param {number} confinedVolume - The volume of the cloud that is contained in the area of confinement. (default value is 1)
|
|
1323
1395
|
*/
|
|
1324
1396
|
constructor(
|
|
1397
|
+
id?: string,
|
|
1398
|
+
typeId?: string,
|
|
1399
|
+
displayName?: string,
|
|
1325
1400
|
confinedStrength: number = 7,
|
|
1326
1401
|
confinedVolume: number = 1
|
|
1327
1402
|
) {
|
|
1328
|
-
super();
|
|
1403
|
+
super(id, typeId, displayName);
|
|
1329
1404
|
this.confinedStrength = confinedStrength;
|
|
1330
1405
|
this.confinedVolume = confinedVolume;
|
|
1331
1406
|
}
|
|
@@ -1343,6 +1418,7 @@ export class ExplosionConfinedVolume extends EntityBase {
|
|
|
1343
1418
|
|
|
1344
1419
|
toString() {
|
|
1345
1420
|
const parts = [
|
|
1421
|
+
super.toString(),
|
|
1346
1422
|
"* ExplosionConfinedVolume",
|
|
1347
1423
|
`confinedStrength: ${this.confinedStrength}`,
|
|
1348
1424
|
`confinedVolume: ${this.confinedVolume}`,
|
|
@@ -1362,10 +1438,13 @@ export class ExplosionOutputConfig extends EntityBase {
|
|
|
1362
1438
|
* @param {Enums.MEConfinedMethod} meConfinedMethod - The multi energy confined method for modelling the effects of explosions. (default value is Enums.MEConfinedMethod.UNIFORM_CONFINED)
|
|
1363
1439
|
*/
|
|
1364
1440
|
constructor(
|
|
1441
|
+
id?: string,
|
|
1442
|
+
typeId?: string,
|
|
1443
|
+
displayName?: string,
|
|
1365
1444
|
overpressureLevel: number = 2068,
|
|
1366
1445
|
meConfinedMethod: Enums.MEConfinedMethod = Enums.MEConfinedMethod.UNIFORM_CONFINED
|
|
1367
1446
|
) {
|
|
1368
|
-
super();
|
|
1447
|
+
super(id, typeId, displayName);
|
|
1369
1448
|
this.overpressureLevel = overpressureLevel;
|
|
1370
1449
|
this.meConfinedMethod = meConfinedMethod;
|
|
1371
1450
|
}
|
|
@@ -1392,6 +1471,7 @@ export class ExplosionOutputConfig extends EntityBase {
|
|
|
1392
1471
|
|
|
1393
1472
|
toString() {
|
|
1394
1473
|
const parts = [
|
|
1474
|
+
super.toString(),
|
|
1395
1475
|
"* ExplosionOutputConfig",
|
|
1396
1476
|
`overpressureLevel: ${this.overpressureLevel}`,
|
|
1397
1477
|
`meConfinedMethod: ${this.meConfinedMethod}`,
|
|
@@ -1419,6 +1499,9 @@ export class ExplosionOverpressureResult extends EntityBase {
|
|
|
1419
1499
|
* @param {number} radius - The radius of the effect zone for the overpressure level of interest.
|
|
1420
1500
|
*/
|
|
1421
1501
|
constructor(
|
|
1502
|
+
id?: string,
|
|
1503
|
+
typeId?: string,
|
|
1504
|
+
displayName?: string,
|
|
1422
1505
|
overpressure?: number,
|
|
1423
1506
|
explosionCentre?: number,
|
|
1424
1507
|
maximumDistance?: number,
|
|
@@ -1426,7 +1509,7 @@ export class ExplosionOverpressureResult extends EntityBase {
|
|
|
1426
1509
|
ignitionTime?: number,
|
|
1427
1510
|
radius?: number
|
|
1428
1511
|
) {
|
|
1429
|
-
super();
|
|
1512
|
+
super(id, typeId, displayName);
|
|
1430
1513
|
this.overpressure = overpressure;
|
|
1431
1514
|
this.explosionCentre = explosionCentre;
|
|
1432
1515
|
this.maximumDistance = maximumDistance;
|
|
@@ -1460,6 +1543,7 @@ export class ExplosionOverpressureResult extends EntityBase {
|
|
|
1460
1543
|
|
|
1461
1544
|
toString() {
|
|
1462
1545
|
const parts = [
|
|
1546
|
+
super.toString(),
|
|
1463
1547
|
"* ExplosionOverpressureResult",
|
|
1464
1548
|
`overpressure: ${this.overpressure}`,
|
|
1465
1549
|
`explosionCentre: ${this.explosionCentre}`,
|
|
@@ -1481,9 +1565,12 @@ export class ExplosionParameters extends EntityBase {
|
|
|
1481
1565
|
* @param {number} explosionUniformStrength - The confined strength in the multi-energy uniform confined method. (default value is 10.0)
|
|
1482
1566
|
*/
|
|
1483
1567
|
constructor(
|
|
1568
|
+
id?: string,
|
|
1569
|
+
typeId?: string,
|
|
1570
|
+
displayName?: string,
|
|
1484
1571
|
explosionUniformStrength: number = 10.0
|
|
1485
1572
|
) {
|
|
1486
|
-
super();
|
|
1573
|
+
super(id, typeId, displayName);
|
|
1487
1574
|
this.explosionUniformStrength = explosionUniformStrength;
|
|
1488
1575
|
}
|
|
1489
1576
|
|
|
@@ -1497,6 +1584,7 @@ export class ExplosionParameters extends EntityBase {
|
|
|
1497
1584
|
|
|
1498
1585
|
toString() {
|
|
1499
1586
|
const parts = [
|
|
1587
|
+
super.toString(),
|
|
1500
1588
|
"* ExplosionParameters",
|
|
1501
1589
|
`explosionUniformStrength: ${this.explosionUniformStrength}`,
|
|
1502
1590
|
];
|
|
@@ -1519,12 +1607,15 @@ export class FlameRecord extends EntityBase {
|
|
|
1519
1607
|
* @param {number} phiCoordinate - Inclination of the frustum base or tip from the vertical.
|
|
1520
1608
|
*/
|
|
1521
1609
|
constructor(
|
|
1610
|
+
id?: string,
|
|
1611
|
+
typeId?: string,
|
|
1612
|
+
displayName?: string,
|
|
1522
1613
|
xCoordinate?: number,
|
|
1523
1614
|
zCoordinate?: number,
|
|
1524
1615
|
rCoordinate?: number,
|
|
1525
1616
|
phiCoordinate?: number
|
|
1526
1617
|
) {
|
|
1527
|
-
super();
|
|
1618
|
+
super(id, typeId, displayName);
|
|
1528
1619
|
this.xCoordinate = xCoordinate;
|
|
1529
1620
|
this.zCoordinate = zCoordinate;
|
|
1530
1621
|
this.rCoordinate = rCoordinate;
|
|
@@ -1550,6 +1641,7 @@ export class FlameRecord extends EntityBase {
|
|
|
1550
1641
|
|
|
1551
1642
|
toString() {
|
|
1552
1643
|
const parts = [
|
|
1644
|
+
super.toString(),
|
|
1553
1645
|
"* FlameRecord",
|
|
1554
1646
|
`xCoordinate: ${this.xCoordinate}`,
|
|
1555
1647
|
`zCoordinate: ${this.zCoordinate}`,
|
|
@@ -1577,13 +1669,16 @@ export class FlameResult extends EntityBase {
|
|
|
1577
1669
|
* @param {Enums.FireType} fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
|
|
1578
1670
|
*/
|
|
1579
1671
|
constructor(
|
|
1672
|
+
id?: string,
|
|
1673
|
+
typeId?: string,
|
|
1674
|
+
displayName?: string,
|
|
1580
1675
|
time?: number,
|
|
1581
1676
|
surfaceEmissivePower?: number,
|
|
1582
1677
|
flameLength?: number,
|
|
1583
1678
|
flameDiameter?: number,
|
|
1584
1679
|
fireType: Enums.FireType = Enums.FireType.NO_FIRE
|
|
1585
1680
|
) {
|
|
1586
|
-
super();
|
|
1681
|
+
super(id, typeId, displayName);
|
|
1587
1682
|
this.time = time;
|
|
1588
1683
|
this.surfaceEmissivePower = surfaceEmissivePower;
|
|
1589
1684
|
this.flameLength = flameLength;
|
|
@@ -1622,6 +1717,7 @@ export class FlameResult extends EntityBase {
|
|
|
1622
1717
|
|
|
1623
1718
|
toString() {
|
|
1624
1719
|
const parts = [
|
|
1720
|
+
super.toString(),
|
|
1625
1721
|
"* FlameResult",
|
|
1626
1722
|
`time: ${this.time}`,
|
|
1627
1723
|
`surfaceEmissivePower: ${this.surfaceEmissivePower}`,
|
|
@@ -1644,10 +1740,13 @@ export class Transect extends EntityBase {
|
|
|
1644
1740
|
* @param {LocalPosition} transectEndPoint - Cartesian coordinates of the end point of the transect.
|
|
1645
1741
|
*/
|
|
1646
1742
|
constructor(
|
|
1743
|
+
id?: string,
|
|
1744
|
+
typeId?: string,
|
|
1745
|
+
displayName?: string,
|
|
1647
1746
|
transectStartPoint: LocalPosition = new LocalPosition(),
|
|
1648
1747
|
transectEndPoint: LocalPosition = new LocalPosition()
|
|
1649
1748
|
) {
|
|
1650
|
-
super();
|
|
1749
|
+
super(id, typeId, displayName);
|
|
1651
1750
|
this.transectStartPoint = transectStartPoint;
|
|
1652
1751
|
this.transectEndPoint = transectEndPoint;
|
|
1653
1752
|
}
|
|
@@ -1667,6 +1766,7 @@ export class Transect extends EntityBase {
|
|
|
1667
1766
|
|
|
1668
1767
|
toString() {
|
|
1669
1768
|
const parts = [
|
|
1769
|
+
super.toString(),
|
|
1670
1770
|
"* Transect",
|
|
1671
1771
|
`transectStartPoint: ${this.transectStartPoint?.toString()}`,
|
|
1672
1772
|
`transectEndPoint: ${this.transectEndPoint?.toString()}`,
|
|
@@ -1702,6 +1802,9 @@ export class FlammableOutputConfig extends EntityBase {
|
|
|
1702
1802
|
* @param {number} inclination - Angle between the observer normal and the horizontal plane. (default value is 0)
|
|
1703
1803
|
*/
|
|
1704
1804
|
constructor(
|
|
1805
|
+
id?: string,
|
|
1806
|
+
typeId?: string,
|
|
1807
|
+
displayName?: string,
|
|
1705
1808
|
position: LocalPosition = new LocalPosition(),
|
|
1706
1809
|
transect: Transect = new Transect(),
|
|
1707
1810
|
radiationType: Enums.RadiationType = Enums.RadiationType.INTENSITY,
|
|
@@ -1713,7 +1816,7 @@ export class FlammableOutputConfig extends EntityBase {
|
|
|
1713
1816
|
fixedInclination: number = 0,
|
|
1714
1817
|
inclination: number = 0
|
|
1715
1818
|
) {
|
|
1716
|
-
super();
|
|
1819
|
+
super(id, typeId, displayName);
|
|
1717
1820
|
this.position = position;
|
|
1718
1821
|
this.transect = transect;
|
|
1719
1822
|
this.radiationType = radiationType;
|
|
@@ -1774,6 +1877,7 @@ export class FlammableOutputConfig extends EntityBase {
|
|
|
1774
1877
|
|
|
1775
1878
|
toString() {
|
|
1776
1879
|
const parts = [
|
|
1880
|
+
super.toString(),
|
|
1777
1881
|
"* FlammableOutputConfig",
|
|
1778
1882
|
`position: ${this.position?.toString()}`,
|
|
1779
1883
|
`transect: ${this.transect?.toString()}`,
|
|
@@ -1809,6 +1913,9 @@ export class FlammableParameters extends EntityBase {
|
|
|
1809
1913
|
* @param {number} timeOfInterest - The time of interest in the jet fire calculations. The jet fire will be based on the discharge results either at the TimeOfInterest or averaged between 0 seconds and the TimeOfInterest, depending on the TimeAveraging option. (default value is 20)
|
|
1810
1914
|
*/
|
|
1811
1915
|
constructor(
|
|
1916
|
+
id?: string,
|
|
1917
|
+
typeId?: string,
|
|
1918
|
+
displayName?: string,
|
|
1812
1919
|
maxExposureDuration: number = 20,
|
|
1813
1920
|
radiationRelativeTolerance: number = 0.01,
|
|
1814
1921
|
poolFireType: Enums.PoolFireType = Enums.PoolFireType.LATE,
|
|
@@ -1816,7 +1923,7 @@ export class FlammableParameters extends EntityBase {
|
|
|
1816
1923
|
timeAveraging: boolean = true,
|
|
1817
1924
|
timeOfInterest: number = 20
|
|
1818
1925
|
) {
|
|
1819
|
-
super();
|
|
1926
|
+
super(id, typeId, displayName);
|
|
1820
1927
|
this.maxExposureDuration = maxExposureDuration;
|
|
1821
1928
|
this.radiationRelativeTolerance = radiationRelativeTolerance;
|
|
1822
1929
|
this.poolFireType = poolFireType;
|
|
@@ -1859,6 +1966,7 @@ export class FlammableParameters extends EntityBase {
|
|
|
1859
1966
|
|
|
1860
1967
|
toString() {
|
|
1861
1968
|
const parts = [
|
|
1969
|
+
super.toString(),
|
|
1862
1970
|
"* FlammableParameters",
|
|
1863
1971
|
`maxExposureDuration: ${this.maxExposureDuration}`,
|
|
1864
1972
|
`radiationRelativeTolerance: ${this.radiationRelativeTolerance}`,
|
|
@@ -1910,6 +2018,9 @@ export class FlashResult extends EntityBase {
|
|
|
1910
2018
|
* @param {Enums.Phase} fluidPhase - Vapour, liquid or two-phase. (default value is Enums.Phase.UNSET)
|
|
1911
2019
|
*/
|
|
1912
2020
|
constructor(
|
|
2021
|
+
id?: string,
|
|
2022
|
+
typeId?: string,
|
|
2023
|
+
displayName?: string,
|
|
1913
2024
|
pressure?: number,
|
|
1914
2025
|
temperature?: number,
|
|
1915
2026
|
liquidMoleFraction?: number,
|
|
@@ -1927,7 +2038,7 @@ export class FlashResult extends EntityBase {
|
|
|
1927
2038
|
liquidMassFraction?: number,
|
|
1928
2039
|
fluidPhase: Enums.Phase = Enums.Phase.UNSET
|
|
1929
2040
|
) {
|
|
1930
|
-
super();
|
|
2041
|
+
super(id, typeId, displayName);
|
|
1931
2042
|
this.pressure = pressure;
|
|
1932
2043
|
this.temperature = temperature;
|
|
1933
2044
|
this.liquidMoleFraction = liquidMoleFraction;
|
|
@@ -2010,6 +2121,7 @@ export class FlashResult extends EntityBase {
|
|
|
2010
2121
|
|
|
2011
2122
|
toString() {
|
|
2012
2123
|
const parts = [
|
|
2124
|
+
super.toString(),
|
|
2013
2125
|
"* FlashResult",
|
|
2014
2126
|
`pressure: ${this.pressure}`,
|
|
2015
2127
|
`temperature: ${this.temperature}`,
|
|
@@ -2043,10 +2155,13 @@ export class ReleaseOverTime extends Scenario {
|
|
|
2043
2155
|
* @param {Enums.TimeVaryingOption} timeVaryingOption - Whether the release is a time-varying release or a steady state release using the initial rate. (default value is Enums.TimeVaryingOption.INITIAL_RATE)
|
|
2044
2156
|
*/
|
|
2045
2157
|
constructor(
|
|
2158
|
+
id?: string,
|
|
2159
|
+
typeId?: string,
|
|
2160
|
+
displayName?: string,
|
|
2046
2161
|
releaseAngle: number = 0.0,
|
|
2047
2162
|
timeVaryingOption: Enums.TimeVaryingOption = Enums.TimeVaryingOption.INITIAL_RATE
|
|
2048
2163
|
) {
|
|
2049
|
-
super();
|
|
2164
|
+
super(id, typeId, displayName);
|
|
2050
2165
|
this.releaseAngle = releaseAngle;
|
|
2051
2166
|
this.timeVaryingOption = timeVaryingOption;
|
|
2052
2167
|
}
|
|
@@ -2073,6 +2188,7 @@ export class ReleaseOverTime extends Scenario {
|
|
|
2073
2188
|
|
|
2074
2189
|
toString() {
|
|
2075
2190
|
const parts = [
|
|
2191
|
+
super.toString(),
|
|
2076
2192
|
"* ReleaseOverTime",
|
|
2077
2193
|
`releaseAngle: ${this.releaseAngle}`,
|
|
2078
2194
|
`timeVaryingOption: ${this.timeVaryingOption}`,
|
|
@@ -2096,13 +2212,16 @@ export class Leak extends ReleaseOverTime {
|
|
|
2096
2212
|
* @param {number} releaseElevation - The elevation of the release. (default value is 1)
|
|
2097
2213
|
*/
|
|
2098
2214
|
constructor(
|
|
2215
|
+
id?: string,
|
|
2216
|
+
typeId?: string,
|
|
2217
|
+
displayName?: string,
|
|
2099
2218
|
holeDiameter?: number,
|
|
2100
2219
|
releaseAngle: number = 0.0,
|
|
2101
2220
|
timeVaryingOption: Enums.TimeVaryingOption = Enums.TimeVaryingOption.INITIAL_RATE,
|
|
2102
2221
|
holeHeightFraction: number = 0.5,
|
|
2103
2222
|
releaseElevation: number = 1
|
|
2104
2223
|
) {
|
|
2105
|
-
super(releaseAngle, timeVaryingOption);
|
|
2224
|
+
super(id, typeId, displayName, releaseAngle, timeVaryingOption);
|
|
2106
2225
|
this.holeDiameter = holeDiameter;
|
|
2107
2226
|
this.holeHeightFraction = holeHeightFraction;
|
|
2108
2227
|
this.releaseElevation = releaseElevation;
|
|
@@ -2124,6 +2243,7 @@ export class Leak extends ReleaseOverTime {
|
|
|
2124
2243
|
|
|
2125
2244
|
toString() {
|
|
2126
2245
|
const parts = [
|
|
2246
|
+
super.toString(),
|
|
2127
2247
|
"* Leak",
|
|
2128
2248
|
`holeDiameter: ${this.holeDiameter}`,
|
|
2129
2249
|
`releaseAngle: ${this.releaseAngle}`,
|
|
@@ -2152,6 +2272,9 @@ export class LineRupture extends ReleaseOverTime {
|
|
|
2152
2272
|
* @param {number} pipeHeightFraction - Height of the pipe connection measured from the base of the vessel. (default value is 0.5)
|
|
2153
2273
|
*/
|
|
2154
2274
|
constructor(
|
|
2275
|
+
id?: string,
|
|
2276
|
+
typeId?: string,
|
|
2277
|
+
displayName?: string,
|
|
2155
2278
|
pipeDiameter?: number,
|
|
2156
2279
|
pipeLength?: number,
|
|
2157
2280
|
releaseAngle: number = 0.0,
|
|
@@ -2159,7 +2282,7 @@ export class LineRupture extends ReleaseOverTime {
|
|
|
2159
2282
|
pipeRoughness: number = 0.000045,
|
|
2160
2283
|
pipeHeightFraction: number = 0.5
|
|
2161
2284
|
) {
|
|
2162
|
-
super(releaseAngle, timeVaryingOption);
|
|
2285
|
+
super(id, typeId, displayName, releaseAngle, timeVaryingOption);
|
|
2163
2286
|
this.pipeDiameter = pipeDiameter;
|
|
2164
2287
|
this.pipeLength = pipeLength;
|
|
2165
2288
|
this.pipeRoughness = pipeRoughness;
|
|
@@ -2185,6 +2308,7 @@ export class LineRupture extends ReleaseOverTime {
|
|
|
2185
2308
|
|
|
2186
2309
|
toString() {
|
|
2187
2310
|
const parts = [
|
|
2311
|
+
super.toString(),
|
|
2188
2312
|
"* LineRupture",
|
|
2189
2313
|
`pipeDiameter: ${this.pipeDiameter}`,
|
|
2190
2314
|
`pipeLength: ${this.pipeLength}`,
|
|
@@ -2218,6 +2342,9 @@ export class MaterialComponentDataItem extends EntityBase {
|
|
|
2218
2342
|
* @param {number} fractionTc - Fraction of critical temperature. (default value is 1)
|
|
2219
2343
|
*/
|
|
2220
2344
|
constructor(
|
|
2345
|
+
id?: string,
|
|
2346
|
+
typeId?: string,
|
|
2347
|
+
displayName?: string,
|
|
2221
2348
|
description: string = "",
|
|
2222
2349
|
equationNumber?: number,
|
|
2223
2350
|
equationString: string = "",
|
|
@@ -2226,7 +2353,7 @@ export class MaterialComponentDataItem extends EntityBase {
|
|
|
2226
2353
|
supercriticalExtrapolation: number = 0,
|
|
2227
2354
|
fractionTc: number = 1
|
|
2228
2355
|
) {
|
|
2229
|
-
super();
|
|
2356
|
+
super(id, typeId, displayName);
|
|
2230
2357
|
this.description = description;
|
|
2231
2358
|
this.equationNumber = equationNumber;
|
|
2232
2359
|
this.equationString = equationString;
|
|
@@ -2264,6 +2391,7 @@ export class MaterialComponentDataItem extends EntityBase {
|
|
|
2264
2391
|
|
|
2265
2392
|
toString() {
|
|
2266
2393
|
const parts = [
|
|
2394
|
+
super.toString(),
|
|
2267
2395
|
"* MaterialComponentDataItem",
|
|
2268
2396
|
`description: ${this.description}`,
|
|
2269
2397
|
`equationNumber: ${this.equationNumber}`,
|
|
@@ -2294,13 +2422,16 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2294
2422
|
* @param {boolean} nonStandard - Description of new property.
|
|
2295
2423
|
*/
|
|
2296
2424
|
constructor(
|
|
2425
|
+
id?: string,
|
|
2426
|
+
typeId?: string,
|
|
2427
|
+
displayName?: string,
|
|
2297
2428
|
name: string = "",
|
|
2298
2429
|
dipprVersion?: number,
|
|
2299
2430
|
casId?: number,
|
|
2300
2431
|
dataItem: MaterialComponentDataItem[] = [new MaterialComponentDataItem()],
|
|
2301
2432
|
nonStandard?: boolean
|
|
2302
2433
|
) {
|
|
2303
|
-
super();
|
|
2434
|
+
super(id, typeId, displayName);
|
|
2304
2435
|
this.name = name;
|
|
2305
2436
|
this.dipprVersion = dipprVersion;
|
|
2306
2437
|
this.casId = casId;
|
|
@@ -2336,6 +2467,7 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2336
2467
|
|
|
2337
2468
|
toString() {
|
|
2338
2469
|
const parts = [
|
|
2470
|
+
super.toString(),
|
|
2339
2471
|
"* MaterialComponentData",
|
|
2340
2472
|
`name: ${this.name}`,
|
|
2341
2473
|
`dipprVersion: ${this.dipprVersion}`,
|
|
@@ -2386,6 +2518,9 @@ export class MixtureConstantPropertiesResult extends EntityBase {
|
|
|
2386
2518
|
* @param {Enums.LuminousSmokyFlame} luminousSmokyFlame - A flag to indicate whether a flame is luminous or smoky. (default value is Enums.LuminousSmokyFlame.GENERAL)
|
|
2387
2519
|
*/
|
|
2388
2520
|
constructor(
|
|
2521
|
+
id?: string,
|
|
2522
|
+
typeId?: string,
|
|
2523
|
+
displayName?: string,
|
|
2389
2524
|
lowerFlammabilityLimit?: number,
|
|
2390
2525
|
upperFlammabilityLimit?: number,
|
|
2391
2526
|
criticalPressure?: number,
|
|
@@ -2403,7 +2538,7 @@ export class MixtureConstantPropertiesResult extends EntityBase {
|
|
|
2403
2538
|
flammableToxicFlag: Enums.FlammableToxic = Enums.FlammableToxic.INERT,
|
|
2404
2539
|
luminousSmokyFlame: Enums.LuminousSmokyFlame = Enums.LuminousSmokyFlame.GENERAL
|
|
2405
2540
|
) {
|
|
2406
|
-
super();
|
|
2541
|
+
super(id, typeId, displayName);
|
|
2407
2542
|
this.lowerFlammabilityLimit = lowerFlammabilityLimit;
|
|
2408
2543
|
this.upperFlammabilityLimit = upperFlammabilityLimit;
|
|
2409
2544
|
this.criticalPressure = criticalPressure;
|
|
@@ -2486,6 +2621,7 @@ export class MixtureConstantPropertiesResult extends EntityBase {
|
|
|
2486
2621
|
|
|
2487
2622
|
toString() {
|
|
2488
2623
|
const parts = [
|
|
2624
|
+
super.toString(),
|
|
2489
2625
|
"* MixtureConstantPropertiesResult",
|
|
2490
2626
|
`lowerFlammabilityLimit: ${this.lowerFlammabilityLimit}`,
|
|
2491
2627
|
`upperFlammabilityLimit: ${this.upperFlammabilityLimit}`,
|
|
@@ -2530,6 +2666,9 @@ export class Pipe extends Asset {
|
|
|
2530
2666
|
* @param {number} pumpedInflow - Flowrate along the pipeline under normal operating conditions. (default value is 0)
|
|
2531
2667
|
*/
|
|
2532
2668
|
constructor(
|
|
2669
|
+
id?: string,
|
|
2670
|
+
typeId?: string,
|
|
2671
|
+
displayName?: string,
|
|
2533
2672
|
location: LocalPosition = new LocalPosition(),
|
|
2534
2673
|
nodes: LocalPosition[] = [new LocalPosition()],
|
|
2535
2674
|
nodeCount?: number,
|
|
@@ -2539,7 +2678,7 @@ export class Pipe extends Asset {
|
|
|
2539
2678
|
roughness: number = 4.5e-5,
|
|
2540
2679
|
pumpedInflow: number = 0
|
|
2541
2680
|
) {
|
|
2542
|
-
super(location);
|
|
2681
|
+
super(id, typeId, displayName, location);
|
|
2543
2682
|
this.nodes = nodes;
|
|
2544
2683
|
this.nodeCount = nodeCount;
|
|
2545
2684
|
this.diameter = diameter;
|
|
@@ -2585,6 +2724,7 @@ export class Pipe extends Asset {
|
|
|
2585
2724
|
|
|
2586
2725
|
toString() {
|
|
2587
2726
|
const parts = [
|
|
2727
|
+
super.toString(),
|
|
2588
2728
|
"* Pipe",
|
|
2589
2729
|
`location: ${this.location?.toString()}`,
|
|
2590
2730
|
this.nodes?.map((item) => item?.toString()).join("\n"),
|
|
@@ -2612,12 +2752,15 @@ export class PipeBreach extends ReleaseOverTime {
|
|
|
2612
2752
|
* @param {number} relativeAperture - The size of the outflow area as a fraction of the total potential outflow area for the breach location. (default value is 1)
|
|
2613
2753
|
*/
|
|
2614
2754
|
constructor(
|
|
2755
|
+
id?: string,
|
|
2756
|
+
typeId?: string,
|
|
2757
|
+
displayName?: string,
|
|
2615
2758
|
distanceDownstream?: number,
|
|
2616
2759
|
releaseAngle: number = 0.0,
|
|
2617
2760
|
timeVaryingOption: Enums.TimeVaryingOption = Enums.TimeVaryingOption.INITIAL_RATE,
|
|
2618
2761
|
relativeAperture: number = 1
|
|
2619
2762
|
) {
|
|
2620
|
-
super(releaseAngle, timeVaryingOption);
|
|
2763
|
+
super(id, typeId, displayName, releaseAngle, timeVaryingOption);
|
|
2621
2764
|
this.distanceDownstream = distanceDownstream;
|
|
2622
2765
|
this.relativeAperture = relativeAperture;
|
|
2623
2766
|
}
|
|
@@ -2635,6 +2778,7 @@ export class PipeBreach extends ReleaseOverTime {
|
|
|
2635
2778
|
|
|
2636
2779
|
toString() {
|
|
2637
2780
|
const parts = [
|
|
2781
|
+
super.toString(),
|
|
2638
2782
|
"* PipeBreach",
|
|
2639
2783
|
`distanceDownstream: ${this.distanceDownstream}`,
|
|
2640
2784
|
`releaseAngle: ${this.releaseAngle}`,
|
|
@@ -2659,6 +2803,9 @@ export class PoolFireFlameResult extends FlameResult {
|
|
|
2659
2803
|
* @param {Enums.FireType} fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
|
|
2660
2804
|
*/
|
|
2661
2805
|
constructor(
|
|
2806
|
+
id?: string,
|
|
2807
|
+
typeId?: string,
|
|
2808
|
+
displayName?: string,
|
|
2662
2809
|
time?: number,
|
|
2663
2810
|
surfaceEmissivePower?: number,
|
|
2664
2811
|
flameLength?: number,
|
|
@@ -2666,7 +2813,7 @@ export class PoolFireFlameResult extends FlameResult {
|
|
|
2666
2813
|
poolZoneSEP?: number[],
|
|
2667
2814
|
fireType: Enums.FireType = Enums.FireType.NO_FIRE
|
|
2668
2815
|
) {
|
|
2669
|
-
super(time, surfaceEmissivePower, flameLength, flameDiameter, fireType);
|
|
2816
|
+
super(id, typeId, displayName, time, surfaceEmissivePower, flameLength, flameDiameter, fireType);
|
|
2670
2817
|
this.poolZoneSEP = poolZoneSEP;
|
|
2671
2818
|
}
|
|
2672
2819
|
|
|
@@ -2680,6 +2827,7 @@ export class PoolFireFlameResult extends FlameResult {
|
|
|
2680
2827
|
|
|
2681
2828
|
toString() {
|
|
2682
2829
|
const parts = [
|
|
2830
|
+
super.toString(),
|
|
2683
2831
|
"* PoolFireFlameResult",
|
|
2684
2832
|
`time: ${this.time}`,
|
|
2685
2833
|
`surfaceEmissivePower: ${this.surfaceEmissivePower}`,
|
|
@@ -2725,6 +2873,9 @@ export class PoolRecord extends EntityBase {
|
|
|
2725
2873
|
* @param {number} poolCentre - The downwind distance at which rainout occurs and a pool is formed.
|
|
2726
2874
|
*/
|
|
2727
2875
|
constructor(
|
|
2876
|
+
id?: string,
|
|
2877
|
+
typeId?: string,
|
|
2878
|
+
displayName?: string,
|
|
2728
2879
|
time?: number,
|
|
2729
2880
|
massSpilt?: number,
|
|
2730
2881
|
massVaporised?: number,
|
|
@@ -2739,7 +2890,7 @@ export class PoolRecord extends EntityBase {
|
|
|
2739
2890
|
actualRadius?: number,
|
|
2740
2891
|
poolCentre?: number
|
|
2741
2892
|
) {
|
|
2742
|
-
super();
|
|
2893
|
+
super(id, typeId, displayName);
|
|
2743
2894
|
this.time = time;
|
|
2744
2895
|
this.massSpilt = massSpilt;
|
|
2745
2896
|
this.massVaporised = massVaporised;
|
|
@@ -2801,6 +2952,7 @@ export class PoolRecord extends EntityBase {
|
|
|
2801
2952
|
|
|
2802
2953
|
toString() {
|
|
2803
2954
|
const parts = [
|
|
2955
|
+
super.toString(),
|
|
2804
2956
|
"* PoolRecord",
|
|
2805
2957
|
`time: ${this.time}`,
|
|
2806
2958
|
`massSpilt: ${this.massSpilt}`,
|
|
@@ -2833,11 +2985,14 @@ export class PoolVapourisationParameters extends EntityBase {
|
|
|
2833
2985
|
* @param {number} relativeTolerance - Controls the step size used by the pool modelling in the integrations of the differential equations for the pool behaviour so as to maximize computational efficiency while minimising the errors involved. (default value is 0.001)
|
|
2834
2986
|
*/
|
|
2835
2987
|
constructor(
|
|
2988
|
+
id?: string,
|
|
2989
|
+
typeId?: string,
|
|
2990
|
+
displayName?: string,
|
|
2836
2991
|
toxicsCutoffRate: number = 0.001,
|
|
2837
2992
|
flammableCutoffRate: number = 0.1,
|
|
2838
2993
|
relativeTolerance: number = 0.001
|
|
2839
2994
|
) {
|
|
2840
|
-
super();
|
|
2995
|
+
super(id, typeId, displayName);
|
|
2841
2996
|
this.toxicsCutoffRate = toxicsCutoffRate;
|
|
2842
2997
|
this.flammableCutoffRate = flammableCutoffRate;
|
|
2843
2998
|
this.relativeTolerance = relativeTolerance;
|
|
@@ -2859,6 +3014,7 @@ export class PoolVapourisationParameters extends EntityBase {
|
|
|
2859
3014
|
|
|
2860
3015
|
toString() {
|
|
2861
3016
|
const parts = [
|
|
3017
|
+
super.toString(),
|
|
2862
3018
|
"* PoolVapourisationParameters",
|
|
2863
3019
|
`toxicsCutoffRate: ${this.toxicsCutoffRate}`,
|
|
2864
3020
|
`flammableCutoffRate: ${this.flammableCutoffRate}`,
|
|
@@ -2881,11 +3037,14 @@ export class RadiationRecord extends EntityBase {
|
|
|
2881
3037
|
* @param {Enums.RadiationType} radiationType - The type of radiation result of interest. (default value is Enums.RadiationType.UNSET)
|
|
2882
3038
|
*/
|
|
2883
3039
|
constructor(
|
|
3040
|
+
id?: string,
|
|
3041
|
+
typeId?: string,
|
|
3042
|
+
displayName?: string,
|
|
2884
3043
|
position: LocalPosition = new LocalPosition(),
|
|
2885
3044
|
radiationResult?: number,
|
|
2886
3045
|
radiationType: Enums.RadiationType = Enums.RadiationType.UNSET
|
|
2887
3046
|
) {
|
|
2888
|
-
super();
|
|
3047
|
+
super(id, typeId, displayName);
|
|
2889
3048
|
this.position = position;
|
|
2890
3049
|
this.radiationResult = radiationResult;
|
|
2891
3050
|
this.radiationType = radiationType;
|
|
@@ -2917,6 +3076,7 @@ export class RadiationRecord extends EntityBase {
|
|
|
2917
3076
|
|
|
2918
3077
|
toString() {
|
|
2919
3078
|
const parts = [
|
|
3079
|
+
super.toString(),
|
|
2920
3080
|
"* RadiationRecord",
|
|
2921
3081
|
`position: ${this.position?.toString()}`,
|
|
2922
3082
|
`radiationResult: ${this.radiationResult}`,
|
|
@@ -2945,6 +3105,9 @@ export class ReliefValve extends ReleaseOverTime {
|
|
|
2945
3105
|
* @param {number} pipeHeightFraction - Location of the pipe connection above the base of the vessel. (default value is 0.5)
|
|
2946
3106
|
*/
|
|
2947
3107
|
constructor(
|
|
3108
|
+
id?: string,
|
|
3109
|
+
typeId?: string,
|
|
3110
|
+
displayName?: string,
|
|
2948
3111
|
reliefValveConstrictionDiameter?: number,
|
|
2949
3112
|
pipeDiameter?: number,
|
|
2950
3113
|
pipeLength?: number,
|
|
@@ -2953,7 +3116,7 @@ export class ReliefValve extends ReleaseOverTime {
|
|
|
2953
3116
|
pipeRoughness: number = 0.000045,
|
|
2954
3117
|
pipeHeightFraction: number = 0.5
|
|
2955
3118
|
) {
|
|
2956
|
-
super(releaseAngle, timeVaryingOption);
|
|
3119
|
+
super(id, typeId, displayName, releaseAngle, timeVaryingOption);
|
|
2957
3120
|
this.reliefValveConstrictionDiameter = reliefValveConstrictionDiameter;
|
|
2958
3121
|
this.pipeDiameter = pipeDiameter;
|
|
2959
3122
|
this.pipeLength = pipeLength;
|
|
@@ -2983,6 +3146,7 @@ export class ReliefValve extends ReleaseOverTime {
|
|
|
2983
3146
|
|
|
2984
3147
|
toString() {
|
|
2985
3148
|
const parts = [
|
|
3149
|
+
super.toString(),
|
|
2986
3150
|
"* ReliefValve",
|
|
2987
3151
|
`reliefValveConstrictionDiameter: ${this.reliefValveConstrictionDiameter}`,
|
|
2988
3152
|
`pipeDiameter: ${this.pipeDiameter}`,
|
|
@@ -3017,6 +3181,9 @@ export class ScalarUdmOutputs extends EntityBase {
|
|
|
3017
3181
|
* @param {Enums.DynamicType} cloudType - Type of release or cloud. (default value is Enums.DynamicType.UNSET)
|
|
3018
3182
|
*/
|
|
3019
3183
|
constructor(
|
|
3184
|
+
id?: string,
|
|
3185
|
+
typeId?: string,
|
|
3186
|
+
displayName?: string,
|
|
3020
3187
|
observerCount?: number,
|
|
3021
3188
|
recordCount?: number,
|
|
3022
3189
|
minimumConcentration?: number,
|
|
@@ -3025,7 +3192,7 @@ export class ScalarUdmOutputs extends EntityBase {
|
|
|
3025
3192
|
dispersionReleaseDuration?: number,
|
|
3026
3193
|
cloudType: Enums.DynamicType = Enums.DynamicType.UNSET
|
|
3027
3194
|
) {
|
|
3028
|
-
super();
|
|
3195
|
+
super(id, typeId, displayName);
|
|
3029
3196
|
this.observerCount = observerCount;
|
|
3030
3197
|
this.recordCount = recordCount;
|
|
3031
3198
|
this.minimumConcentration = minimumConcentration;
|
|
@@ -3072,6 +3239,7 @@ export class ScalarUdmOutputs extends EntityBase {
|
|
|
3072
3239
|
|
|
3073
3240
|
toString() {
|
|
3074
3241
|
const parts = [
|
|
3242
|
+
super.toString(),
|
|
3075
3243
|
"* ScalarUdmOutputs",
|
|
3076
3244
|
`observerCount: ${this.observerCount}`,
|
|
3077
3245
|
`recordCount: ${this.recordCount}`,
|
|
@@ -3102,6 +3270,9 @@ export class ShortPipeRupture extends ReleaseOverTime {
|
|
|
3102
3270
|
* @param {number} pipeHeightFraction - Location of the pipe connection above the base of the vessel. (default value is 0.5)
|
|
3103
3271
|
*/
|
|
3104
3272
|
constructor(
|
|
3273
|
+
id?: string,
|
|
3274
|
+
typeId?: string,
|
|
3275
|
+
displayName?: string,
|
|
3105
3276
|
pipeLength?: number,
|
|
3106
3277
|
pipeDiameter?: number,
|
|
3107
3278
|
releaseAngle: number = 0.0,
|
|
@@ -3109,7 +3280,7 @@ export class ShortPipeRupture extends ReleaseOverTime {
|
|
|
3109
3280
|
pipeRoughness: number = 0.000045,
|
|
3110
3281
|
pipeHeightFraction: number = 0.5
|
|
3111
3282
|
) {
|
|
3112
|
-
super(releaseAngle, timeVaryingOption);
|
|
3283
|
+
super(id, typeId, displayName, releaseAngle, timeVaryingOption);
|
|
3113
3284
|
this.pipeLength = pipeLength;
|
|
3114
3285
|
this.pipeDiameter = pipeDiameter;
|
|
3115
3286
|
this.pipeRoughness = pipeRoughness;
|
|
@@ -3135,6 +3306,7 @@ export class ShortPipeRupture extends ReleaseOverTime {
|
|
|
3135
3306
|
|
|
3136
3307
|
toString() {
|
|
3137
3308
|
const parts = [
|
|
3309
|
+
super.toString(),
|
|
3138
3310
|
"* ShortPipeRupture",
|
|
3139
3311
|
`pipeLength: ${this.pipeLength}`,
|
|
3140
3312
|
`pipeDiameter: ${this.pipeDiameter}`,
|
|
@@ -3158,10 +3330,13 @@ export class Structure extends EntityBase {
|
|
|
3158
3330
|
* @param {LocalPosition} location - Location of the structure.
|
|
3159
3331
|
*/
|
|
3160
3332
|
constructor(
|
|
3333
|
+
id?: string,
|
|
3334
|
+
typeId?: string,
|
|
3335
|
+
displayName?: string,
|
|
3161
3336
|
explosionConfinedVolume: ExplosionConfinedVolume = new ExplosionConfinedVolume(),
|
|
3162
3337
|
location: LocalPosition = new LocalPosition()
|
|
3163
3338
|
) {
|
|
3164
|
-
super();
|
|
3339
|
+
super(id, typeId, displayName);
|
|
3165
3340
|
this.explosionConfinedVolume = explosionConfinedVolume;
|
|
3166
3341
|
this.location = location;
|
|
3167
3342
|
}
|
|
@@ -3181,6 +3356,7 @@ export class Structure extends EntityBase {
|
|
|
3181
3356
|
|
|
3182
3357
|
toString() {
|
|
3183
3358
|
const parts = [
|
|
3359
|
+
super.toString(),
|
|
3184
3360
|
"* Structure",
|
|
3185
3361
|
`explosionConfinedVolume: ${this.explosionConfinedVolume?.toString()}`,
|
|
3186
3362
|
`location: ${this.location?.toString()}`,
|
|
@@ -3204,12 +3380,15 @@ export class Substrate extends EntityBase {
|
|
|
3204
3380
|
* @param {Enums.PoolSurfaceType} poolSurfaceType - Surface onto which the liquid which rains out will spread. (default value is Enums.PoolSurfaceType.CONCRETE)
|
|
3205
3381
|
*/
|
|
3206
3382
|
constructor(
|
|
3383
|
+
id?: string,
|
|
3384
|
+
typeId?: string,
|
|
3385
|
+
displayName?: string,
|
|
3207
3386
|
bund: Bund = new Bund(),
|
|
3208
3387
|
surfaceRoughness: number = 0.183,
|
|
3209
3388
|
surfaceType: Enums.SurfaceType = Enums.SurfaceType.LAND,
|
|
3210
3389
|
poolSurfaceType: Enums.PoolSurfaceType = Enums.PoolSurfaceType.CONCRETE
|
|
3211
3390
|
) {
|
|
3212
|
-
super();
|
|
3391
|
+
super(id, typeId, displayName);
|
|
3213
3392
|
this.bund = bund;
|
|
3214
3393
|
this.surfaceRoughness = surfaceRoughness;
|
|
3215
3394
|
this.surfaceType = surfaceType;
|
|
@@ -3245,6 +3424,7 @@ export class Substrate extends EntityBase {
|
|
|
3245
3424
|
|
|
3246
3425
|
toString() {
|
|
3247
3426
|
const parts = [
|
|
3427
|
+
super.toString(),
|
|
3248
3428
|
"* Substrate",
|
|
3249
3429
|
`bund: ${this.bund?.toString()}`,
|
|
3250
3430
|
`surfaceRoughness: ${this.surfaceRoughness}`,
|
|
@@ -3268,11 +3448,14 @@ export class ToxicRecord extends EntityBase {
|
|
|
3268
3448
|
* @param {Enums.ToxicResultType} toxicResultType - The type of toxic result. (default value is Enums.ToxicResultType.UNSET)
|
|
3269
3449
|
*/
|
|
3270
3450
|
constructor(
|
|
3451
|
+
id?: string,
|
|
3452
|
+
typeId?: string,
|
|
3453
|
+
displayName?: string,
|
|
3271
3454
|
position: LocalPosition = new LocalPosition(),
|
|
3272
3455
|
toxicResult?: number,
|
|
3273
3456
|
toxicResultType: Enums.ToxicResultType = Enums.ToxicResultType.UNSET
|
|
3274
3457
|
) {
|
|
3275
|
-
super();
|
|
3458
|
+
super(id, typeId, displayName);
|
|
3276
3459
|
this.position = position;
|
|
3277
3460
|
this.toxicResult = toxicResult;
|
|
3278
3461
|
this.toxicResultType = toxicResultType;
|
|
@@ -3304,6 +3487,7 @@ export class ToxicRecord extends EntityBase {
|
|
|
3304
3487
|
|
|
3305
3488
|
toString() {
|
|
3306
3489
|
const parts = [
|
|
3490
|
+
super.toString(),
|
|
3307
3491
|
"* ToxicRecord",
|
|
3308
3492
|
`position: ${this.position?.toString()}`,
|
|
3309
3493
|
`toxicResult: ${this.toxicResult}`,
|
|
@@ -3339,6 +3523,9 @@ export class Vessel extends Asset {
|
|
|
3339
3523
|
* @param {number} liquidFillFractionByVolume - The proportion of the vessel occupied by liquid. Used when the VesselConditions are two-phase or pressurized liquid. (default value is 0.0)
|
|
3340
3524
|
*/
|
|
3341
3525
|
constructor(
|
|
3526
|
+
id?: string,
|
|
3527
|
+
typeId?: string,
|
|
3528
|
+
displayName?: string,
|
|
3342
3529
|
location: LocalPosition = new LocalPosition(),
|
|
3343
3530
|
state: State = new State(),
|
|
3344
3531
|
material: Material = new Material(),
|
|
@@ -3350,7 +3537,7 @@ export class Vessel extends Asset {
|
|
|
3350
3537
|
vesselConditions: Enums.VesselConditions = Enums.VesselConditions.UNSET,
|
|
3351
3538
|
liquidFillFractionByVolume: number = 0.0
|
|
3352
3539
|
) {
|
|
3353
|
-
super(location);
|
|
3540
|
+
super(id, typeId, displayName, location);
|
|
3354
3541
|
this.state = state;
|
|
3355
3542
|
this.material = material;
|
|
3356
3543
|
this.diameter = diameter;
|
|
@@ -3407,6 +3594,7 @@ export class Vessel extends Asset {
|
|
|
3407
3594
|
|
|
3408
3595
|
toString() {
|
|
3409
3596
|
const parts = [
|
|
3597
|
+
super.toString(),
|
|
3410
3598
|
"* Vessel",
|
|
3411
3599
|
`location: ${this.location?.toString()}`,
|
|
3412
3600
|
`state: ${this.state?.toString()}`,
|
|
@@ -3442,6 +3630,9 @@ export class VesselLeakMaxFlammableCloudResults extends EntityBase {
|
|
|
3442
3630
|
* @param {Enums.Phase} phase - Post atmospheric expansion fluid phase. (default value is Enums.Phase.UNSET)
|
|
3443
3631
|
*/
|
|
3444
3632
|
constructor(
|
|
3633
|
+
id?: string,
|
|
3634
|
+
typeId?: string,
|
|
3635
|
+
displayName?: string,
|
|
3445
3636
|
dischargeRate?: number,
|
|
3446
3637
|
expandedTemperature?: number,
|
|
3447
3638
|
lflExtent?: number,
|
|
@@ -3449,7 +3640,7 @@ export class VesselLeakMaxFlammableCloudResults extends EntityBase {
|
|
|
3449
3640
|
lflHeight?: number,
|
|
3450
3641
|
phase: Enums.Phase = Enums.Phase.UNSET
|
|
3451
3642
|
) {
|
|
3452
|
-
super();
|
|
3643
|
+
super(id, typeId, displayName);
|
|
3453
3644
|
this.dischargeRate = dischargeRate;
|
|
3454
3645
|
this.expandedTemperature = expandedTemperature;
|
|
3455
3646
|
this.lflExtent = lflExtent;
|
|
@@ -3492,6 +3683,7 @@ export class VesselLeakMaxFlammableCloudResults extends EntityBase {
|
|
|
3492
3683
|
|
|
3493
3684
|
toString() {
|
|
3494
3685
|
const parts = [
|
|
3686
|
+
super.toString(),
|
|
3495
3687
|
"* VesselLeakMaxFlammableCloudResults",
|
|
3496
3688
|
`dischargeRate: ${this.dischargeRate}`,
|
|
3497
3689
|
`expandedTemperature: ${this.expandedTemperature}`,
|
|
@@ -3518,12 +3710,15 @@ export class VesselSphere extends Asset {
|
|
|
3518
3710
|
* @param {number} massInventory - Mass of the material in the vessel.
|
|
3519
3711
|
*/
|
|
3520
3712
|
constructor(
|
|
3713
|
+
id?: string,
|
|
3714
|
+
typeId?: string,
|
|
3715
|
+
displayName?: string,
|
|
3521
3716
|
location: LocalPosition = new LocalPosition(),
|
|
3522
3717
|
state: State = new State(),
|
|
3523
3718
|
material: Material = new Material(),
|
|
3524
3719
|
massInventory?: number
|
|
3525
3720
|
) {
|
|
3526
|
-
super(location);
|
|
3721
|
+
super(id, typeId, displayName, location);
|
|
3527
3722
|
this.state = state;
|
|
3528
3723
|
this.material = material;
|
|
3529
3724
|
this.massInventory = massInventory;
|
|
@@ -3547,6 +3742,7 @@ export class VesselSphere extends Asset {
|
|
|
3547
3742
|
|
|
3548
3743
|
toString() {
|
|
3549
3744
|
const parts = [
|
|
3745
|
+
super.toString(),
|
|
3550
3746
|
"* VesselSphere",
|
|
3551
3747
|
`location: ${this.location?.toString()}`,
|
|
3552
3748
|
`state: ${this.state?.toString()}`,
|
|
@@ -3576,6 +3772,9 @@ export class Weather extends EntityBase {
|
|
|
3576
3772
|
* @param {number} solarRadiation - The radiation received from the sun, which contributes to pool evaporation. (default value is 500)
|
|
3577
3773
|
*/
|
|
3578
3774
|
constructor(
|
|
3775
|
+
id?: string,
|
|
3776
|
+
typeId?: string,
|
|
3777
|
+
displayName?: string,
|
|
3579
3778
|
windSpeed: number = 5,
|
|
3580
3779
|
stabilityClass: Enums.AtmosphericStabilityClass = Enums.AtmosphericStabilityClass.STABILITY_D,
|
|
3581
3780
|
temperature: number = 283,
|
|
@@ -3583,7 +3782,7 @@ export class Weather extends EntityBase {
|
|
|
3583
3782
|
mixingLayerHeight: number = 800,
|
|
3584
3783
|
solarRadiation: number = 500
|
|
3585
3784
|
) {
|
|
3586
|
-
super();
|
|
3785
|
+
super(id, typeId, displayName);
|
|
3587
3786
|
this.windSpeed = windSpeed;
|
|
3588
3787
|
this.stabilityClass = stabilityClass;
|
|
3589
3788
|
this.temperature = temperature;
|
|
@@ -3626,6 +3825,7 @@ export class Weather extends EntityBase {
|
|
|
3626
3825
|
|
|
3627
3826
|
toString() {
|
|
3628
3827
|
const parts = [
|
|
3828
|
+
super.toString(),
|
|
3629
3829
|
"* Weather",
|
|
3630
3830
|
`windSpeed: ${this.windSpeed}`,
|
|
3631
3831
|
`stabilityClass: ${this.stabilityClass}`,
|
package/src/entity-schemas.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:53
|
|
5
5
|
* Template: templates/typescriptpws/entityschemas.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/enums.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:52
|
|
5
5
|
* Template: templates/typescriptpws/enums.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/materials.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:51
|
|
5
5
|
* Template: templates/typescriptpws/materials.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/utilities.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.19
|
|
4
|
+
* Date/time: 19 Feb 2025 12:41:50
|
|
5
5
|
* Template: templates/typescriptpws/utilities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|