@dnv-plant/typescriptpws 1.0.38 → 1.0.62-alpha.1856114
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/jest.config.js +4 -0
- package/package.json +2 -2
- package/src/calculations/applicationTools.ts +2 -2
- package/src/calculations/discharge.ts +2 -2
- package/src/calculations/dispersion.ts +2 -2
- package/src/calculations/dispersionView.ts +2 -2
- package/src/calculations/fireball.ts +2 -2
- package/src/calculations/jetFire.ts +2 -2
- package/src/calculations/lateExplosion.ts +2 -2
- package/src/calculations/linkedRunners.ts +2 -2
- package/src/calculations/poolFire.ts +2 -2
- package/src/calculations/properties.ts +2 -2
- package/src/calculations/radiation.ts +2 -2
- package/src/calculations/standalones.ts +2 -2
- package/src/calculations/toxics.ts +2 -2
- package/src/calculations/utilities.ts +2 -2
- package/src/constants.ts +2 -2
- package/src/entities.ts +886 -886
- package/src/entity-schemas.ts +65 -505
- package/src/enums.ts +2 -2
- package/src/materials.ts +2 -2
- package/src/utilities.ts +2 -2
- package/tests/vessel-leak-calculation/testCase6.test.ts +108 -0
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.62
|
|
4
|
+
* Date/time: 31 Mar 2025 17:56:49
|
|
5
5
|
* Template: templates/typescriptpws/entities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -55,18 +55,18 @@ export class LocalPosition extends EntityBase {
|
|
|
55
55
|
* @param {number} y - y coordinate. (default value is 0)
|
|
56
56
|
* @param {number} z - z coordinate. (default value is 0)
|
|
57
57
|
*/
|
|
58
|
-
constructor(
|
|
59
|
-
id?: string
|
|
60
|
-
typeId?: string
|
|
61
|
-
displayName?: string
|
|
62
|
-
x
|
|
63
|
-
y
|
|
64
|
-
z
|
|
65
|
-
) {
|
|
66
|
-
super(id, typeId, displayName);
|
|
67
|
-
this.x = x;
|
|
68
|
-
this.y = y;
|
|
69
|
-
this.z = z;
|
|
58
|
+
constructor(options?: {
|
|
59
|
+
id?: string;
|
|
60
|
+
typeId?: string;
|
|
61
|
+
displayName?: string;
|
|
62
|
+
x?: number;
|
|
63
|
+
y?: number;
|
|
64
|
+
z?: number;
|
|
65
|
+
}) {
|
|
66
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
67
|
+
this.x = options?.x ?? 0;
|
|
68
|
+
this.y = options?.y ?? 0;
|
|
69
|
+
this.z = options?.z ?? 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -103,14 +103,14 @@ export class Asset extends EntityBase {
|
|
|
103
103
|
*
|
|
104
104
|
* @param {LocalPosition} location - Location of the asset.
|
|
105
105
|
*/
|
|
106
|
-
constructor(
|
|
107
|
-
id?: string
|
|
108
|
-
typeId?: string
|
|
109
|
-
displayName?: string
|
|
110
|
-
location
|
|
111
|
-
) {
|
|
112
|
-
super(id, typeId, displayName);
|
|
113
|
-
this.location = location;
|
|
106
|
+
constructor(options?: {
|
|
107
|
+
id?: string;
|
|
108
|
+
typeId?: string;
|
|
109
|
+
displayName?: string;
|
|
110
|
+
location?: LocalPosition;
|
|
111
|
+
}) {
|
|
112
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
113
|
+
this.location = options?.location ?? new LocalPosition();
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -139,19 +139,19 @@ export class MaterialComponent extends EntityBase {
|
|
|
139
139
|
/**
|
|
140
140
|
* Constituent component of a material.
|
|
141
141
|
*
|
|
142
|
-
* @param {string} name - Name of the component.
|
|
142
|
+
* @param {string} name - Name of the component. (default value is "")
|
|
143
143
|
* @param {number} moleFraction - Mole fraction of the component in the material. (default value is 1)
|
|
144
144
|
*/
|
|
145
|
-
constructor(
|
|
146
|
-
id?: string
|
|
147
|
-
typeId?: string
|
|
148
|
-
displayName?: string
|
|
149
|
-
name
|
|
150
|
-
moleFraction
|
|
151
|
-
) {
|
|
152
|
-
super(id, typeId, displayName);
|
|
153
|
-
this.name = name;
|
|
154
|
-
this.moleFraction = moleFraction;
|
|
145
|
+
constructor(options?: {
|
|
146
|
+
id?: string;
|
|
147
|
+
typeId?: string;
|
|
148
|
+
displayName?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
moleFraction?: number;
|
|
151
|
+
}) {
|
|
152
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
153
|
+
this.name = options?.name ?? "";
|
|
154
|
+
this.moleFraction = options?.moleFraction ?? 1;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -190,28 +190,25 @@ export class Material extends EntityBase {
|
|
|
190
190
|
* @param {number} componentCount - Number of components in the material. (default value is 1)
|
|
191
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)
|
|
192
192
|
*/
|
|
193
|
-
constructor(
|
|
194
|
-
id?: string
|
|
195
|
-
typeId?: string
|
|
196
|
-
displayName?: string
|
|
197
|
-
name
|
|
198
|
-
components
|
|
199
|
-
componentCount
|
|
200
|
-
propertyTemplate
|
|
201
|
-
) {
|
|
202
|
-
super(id, typeId, displayName);
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
205
|
-
this.componentCount = componentCount;
|
|
206
|
-
this.propertyTemplate = propertyTemplate;
|
|
193
|
+
constructor(options?: {
|
|
194
|
+
id?: string;
|
|
195
|
+
typeId?: string;
|
|
196
|
+
displayName?: string;
|
|
197
|
+
name?: string;
|
|
198
|
+
components?: MaterialComponent[];
|
|
199
|
+
componentCount?: number;
|
|
200
|
+
propertyTemplate?: Enums.PropertyTemplate;
|
|
201
|
+
}) {
|
|
202
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
203
|
+
this.components = options?.components ?? [new MaterialComponent()];
|
|
204
|
+
this.name = options?.name ?? "";
|
|
205
|
+
this.componentCount = options?.componentCount ?? 1;
|
|
206
|
+
this.propertyTemplate = options?.propertyTemplate ?? Enums.PropertyTemplate.PHAST_MC;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/** Initialise the entity with data from a dictionary. */
|
|
210
210
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
211
211
|
super.initialiseFromDictionary(data);
|
|
212
|
-
if (data.name !== undefined && typeof data.name === "string") {
|
|
213
|
-
this.name = data.name as string;
|
|
214
|
-
}
|
|
215
212
|
if (data.components && Array.isArray(data.components)) {
|
|
216
213
|
this.components = data.components.map(
|
|
217
214
|
(item) => {
|
|
@@ -221,6 +218,9 @@ export class Material extends EntityBase {
|
|
|
221
218
|
}
|
|
222
219
|
);
|
|
223
220
|
}
|
|
221
|
+
if (data.name !== undefined && typeof data.name === "string") {
|
|
222
|
+
this.name = data.name as string;
|
|
223
|
+
}
|
|
224
224
|
if (data.componentCount !== undefined && typeof data.componentCount === "number") {
|
|
225
225
|
this.componentCount = data.componentCount as number;
|
|
226
226
|
}
|
|
@@ -242,8 +242,8 @@ export class Material extends EntityBase {
|
|
|
242
242
|
const parts = [
|
|
243
243
|
super.toString(),
|
|
244
244
|
"* Material",
|
|
245
|
-
`name: ${this.name}`,
|
|
246
245
|
this.components?.map((item) => item?.toString()).join("\n"),
|
|
246
|
+
`name: ${this.name}`,
|
|
247
247
|
`componentCount: ${this.componentCount}`,
|
|
248
248
|
`propertyTemplate: ${this.propertyTemplate}`,
|
|
249
249
|
];
|
|
@@ -267,22 +267,22 @@ export class State extends EntityBase {
|
|
|
267
267
|
* @param {Enums.FluidSpec} flashFlag - Specification of the fluid equilibrium. (default value is Enums.FluidSpec.TP)
|
|
268
268
|
* @param {Enums.MixtureModelling} mixtureModelling - Method for modelling a mixture. (default value is Enums.MixtureModelling.PC)
|
|
269
269
|
*/
|
|
270
|
-
constructor(
|
|
271
|
-
id?: string
|
|
272
|
-
typeId?: string
|
|
273
|
-
displayName?: string
|
|
274
|
-
pressure?: number
|
|
275
|
-
temperature?: number
|
|
276
|
-
liquidFraction?: number
|
|
277
|
-
flashFlag
|
|
278
|
-
mixtureModelling
|
|
279
|
-
) {
|
|
280
|
-
super(id, typeId, displayName);
|
|
281
|
-
this.pressure = pressure;
|
|
282
|
-
this.temperature = temperature;
|
|
283
|
-
this.liquidFraction = liquidFraction;
|
|
284
|
-
this.flashFlag = flashFlag;
|
|
285
|
-
this.mixtureModelling = mixtureModelling;
|
|
270
|
+
constructor(options?: {
|
|
271
|
+
id?: string;
|
|
272
|
+
typeId?: string;
|
|
273
|
+
displayName?: string;
|
|
274
|
+
pressure?: number;
|
|
275
|
+
temperature?: number;
|
|
276
|
+
liquidFraction?: number;
|
|
277
|
+
flashFlag?: Enums.FluidSpec;
|
|
278
|
+
mixtureModelling?: Enums.MixtureModelling;
|
|
279
|
+
}) {
|
|
280
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
281
|
+
this.pressure = options?.pressure;
|
|
282
|
+
this.temperature = options?.temperature;
|
|
283
|
+
this.liquidFraction = options?.liquidFraction;
|
|
284
|
+
this.flashFlag = options?.flashFlag ?? Enums.FluidSpec.TP;
|
|
285
|
+
this.mixtureModelling = options?.mixtureModelling ?? Enums.MixtureModelling.PC;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -345,23 +345,23 @@ export class AtmosphericStorageTank extends Asset {
|
|
|
345
345
|
* @param {Material} material - Material within the tank.
|
|
346
346
|
* @param {number} liquidFillFractionByVolume - The proportion of the tank occupied by liquid. (default value is 0.9)
|
|
347
347
|
*/
|
|
348
|
-
constructor(
|
|
349
|
-
id?: string
|
|
350
|
-
typeId?: string
|
|
351
|
-
displayName?: string
|
|
352
|
-
location
|
|
353
|
-
state
|
|
354
|
-
diameter?: number
|
|
355
|
-
height?: number
|
|
356
|
-
material
|
|
357
|
-
liquidFillFractionByVolume
|
|
358
|
-
) {
|
|
359
|
-
|
|
360
|
-
this.state = state;
|
|
361
|
-
this.diameter = diameter;
|
|
362
|
-
this.height = height;
|
|
363
|
-
this.material = material;
|
|
364
|
-
this.liquidFillFractionByVolume = liquidFillFractionByVolume;
|
|
348
|
+
constructor(options?: {
|
|
349
|
+
id?: string;
|
|
350
|
+
typeId?: string;
|
|
351
|
+
displayName?: string;
|
|
352
|
+
location?: LocalPosition;
|
|
353
|
+
state?: State;
|
|
354
|
+
diameter?: number;
|
|
355
|
+
height?: number;
|
|
356
|
+
material?: Material;
|
|
357
|
+
liquidFillFractionByVolume?: number;
|
|
358
|
+
}) {
|
|
359
|
+
super(options);
|
|
360
|
+
this.state = options?.state ?? new State();
|
|
361
|
+
this.diameter = options?.diameter;
|
|
362
|
+
this.height = options?.height;
|
|
363
|
+
this.material = options?.material ?? new Material();
|
|
364
|
+
this.liquidFillFractionByVolume = options?.liquidFillFractionByVolume ?? 0.9;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -413,18 +413,18 @@ export class Bund extends EntityBase {
|
|
|
413
413
|
* @param {number} bundDiameter - The diameter of the (circular) bund. (default value is 0.0)
|
|
414
414
|
* @param {boolean} specifyBund - Whether to model the effect of a bund on the spreading of a liquid pool. (default value is false)
|
|
415
415
|
*/
|
|
416
|
-
constructor(
|
|
417
|
-
id?: string
|
|
418
|
-
typeId?: string
|
|
419
|
-
displayName?: string
|
|
420
|
-
bundHeight
|
|
421
|
-
bundDiameter
|
|
422
|
-
specifyBund
|
|
423
|
-
) {
|
|
424
|
-
super(id, typeId, displayName);
|
|
425
|
-
this.bundHeight = bundHeight;
|
|
426
|
-
this.bundDiameter = bundDiameter;
|
|
427
|
-
this.specifyBund = specifyBund;
|
|
416
|
+
constructor(options?: {
|
|
417
|
+
id?: string;
|
|
418
|
+
typeId?: string;
|
|
419
|
+
displayName?: string;
|
|
420
|
+
bundHeight?: number;
|
|
421
|
+
bundDiameter?: number;
|
|
422
|
+
specifyBund?: boolean;
|
|
423
|
+
}) {
|
|
424
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
425
|
+
this.bundHeight = options?.bundHeight ?? 0.0;
|
|
426
|
+
this.bundDiameter = options?.bundDiameter ?? 0.0;
|
|
427
|
+
this.specifyBund = options?.specifyBund ?? false;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -458,12 +458,12 @@ export class Scenario extends EntityBase {
|
|
|
458
458
|
* Base struct/class for all scenario types.
|
|
459
459
|
*
|
|
460
460
|
*/
|
|
461
|
-
constructor(
|
|
462
|
-
id?: string
|
|
463
|
-
typeId?: string
|
|
464
|
-
displayName?: string
|
|
465
|
-
) {
|
|
466
|
-
super(id, typeId, displayName);
|
|
461
|
+
constructor(options?: {
|
|
462
|
+
id?: string;
|
|
463
|
+
typeId?: string;
|
|
464
|
+
displayName?: string;
|
|
465
|
+
}) {
|
|
466
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -485,12 +485,12 @@ export class Instantaneous extends Scenario {
|
|
|
485
485
|
* Base struct/class for instantaneous release scenarios.
|
|
486
486
|
*
|
|
487
487
|
*/
|
|
488
|
-
constructor(
|
|
489
|
-
id?: string
|
|
490
|
-
typeId?: string
|
|
491
|
-
displayName?: string
|
|
492
|
-
) {
|
|
493
|
-
|
|
488
|
+
constructor(options?: {
|
|
489
|
+
id?: string;
|
|
490
|
+
typeId?: string;
|
|
491
|
+
displayName?: string;
|
|
492
|
+
}) {
|
|
493
|
+
super(options);
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -512,12 +512,12 @@ export class CatastrophicRupture extends Instantaneous {
|
|
|
512
512
|
* An instanaeous release of the entire inventory of an associated vessel, intended to model an incident in which the vessel is destroyed by an impact, a crack, or some other failure which propagates very quickly.
|
|
513
513
|
*
|
|
514
514
|
*/
|
|
515
|
-
constructor(
|
|
516
|
-
id?: string
|
|
517
|
-
typeId?: string
|
|
518
|
-
displayName?: string
|
|
519
|
-
) {
|
|
520
|
-
|
|
515
|
+
constructor(options?: {
|
|
516
|
+
id?: string;
|
|
517
|
+
typeId?: string;
|
|
518
|
+
displayName?: string;
|
|
519
|
+
}) {
|
|
520
|
+
super(options);
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -544,16 +544,16 @@ export class ConcentrationRecord extends EntityBase {
|
|
|
544
544
|
* @param {number} concentration - Cloud concentration at an x, y, z position.
|
|
545
545
|
* @param {LocalPosition} position - x, y, z position.
|
|
546
546
|
*/
|
|
547
|
-
constructor(
|
|
548
|
-
id?: string
|
|
549
|
-
typeId?: string
|
|
550
|
-
displayName?: string
|
|
551
|
-
concentration?: number
|
|
552
|
-
position
|
|
553
|
-
) {
|
|
554
|
-
super(id, typeId, displayName);
|
|
555
|
-
this.concentration = concentration;
|
|
556
|
-
this.position = position;
|
|
547
|
+
constructor(options?: {
|
|
548
|
+
id?: string;
|
|
549
|
+
typeId?: string;
|
|
550
|
+
displayName?: string;
|
|
551
|
+
concentration?: number;
|
|
552
|
+
position?: LocalPosition;
|
|
553
|
+
}) {
|
|
554
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
555
|
+
this.concentration = options?.concentration;
|
|
556
|
+
this.position = options?.position ?? new LocalPosition();
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -591,18 +591,18 @@ export class ConstantMaterialResult extends EntityBase {
|
|
|
591
591
|
* @param {number} criticalTemperature - The critical temperature of the material.
|
|
592
592
|
* @param {number} totalMolecularWeight - The total molecular weight of the material.
|
|
593
593
|
*/
|
|
594
|
-
constructor(
|
|
595
|
-
id?: string
|
|
596
|
-
typeId?: string
|
|
597
|
-
displayName?: string
|
|
598
|
-
criticalPressure?: number
|
|
599
|
-
criticalTemperature?: number
|
|
600
|
-
totalMolecularWeight?: number
|
|
601
|
-
) {
|
|
602
|
-
super(id, typeId, displayName);
|
|
603
|
-
this.criticalPressure = criticalPressure;
|
|
604
|
-
this.criticalTemperature = criticalTemperature;
|
|
605
|
-
this.totalMolecularWeight = totalMolecularWeight;
|
|
594
|
+
constructor(options?: {
|
|
595
|
+
id?: string;
|
|
596
|
+
typeId?: string;
|
|
597
|
+
displayName?: string;
|
|
598
|
+
criticalPressure?: number;
|
|
599
|
+
criticalTemperature?: number;
|
|
600
|
+
totalMolecularWeight?: number;
|
|
601
|
+
}) {
|
|
602
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
603
|
+
this.criticalPressure = options?.criticalPressure;
|
|
604
|
+
this.criticalTemperature = options?.criticalTemperature;
|
|
605
|
+
this.totalMolecularWeight = options?.totalMolecularWeight;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -639,14 +639,14 @@ export class DischargeParameters extends EntityBase {
|
|
|
639
639
|
*
|
|
640
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)
|
|
641
641
|
*/
|
|
642
|
-
constructor(
|
|
643
|
-
id?: string
|
|
644
|
-
typeId?: string
|
|
645
|
-
displayName?: string
|
|
646
|
-
flashAtOrifice
|
|
647
|
-
) {
|
|
648
|
-
super(id, typeId, displayName);
|
|
649
|
-
this.flashAtOrifice = flashAtOrifice;
|
|
642
|
+
constructor(options?: {
|
|
643
|
+
id?: string;
|
|
644
|
+
typeId?: string;
|
|
645
|
+
displayName?: string;
|
|
646
|
+
flashAtOrifice?: Enums.FlashAtOrifice;
|
|
647
|
+
}) {
|
|
648
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
649
|
+
this.flashAtOrifice = options?.flashAtOrifice ?? Enums.FlashAtOrifice.DISALLOW_LIQUID_FLASH;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -700,30 +700,30 @@ export class DischargeRecord extends EntityBase {
|
|
|
700
700
|
* @param {number} dropletDiameter - A representative size of entrained liquid droplets.
|
|
701
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)
|
|
702
702
|
*/
|
|
703
|
-
constructor(
|
|
704
|
-
id?: string
|
|
705
|
-
typeId?: string
|
|
706
|
-
displayName?: string
|
|
707
|
-
time?: number
|
|
708
|
-
massFlow?: number
|
|
709
|
-
finalState
|
|
710
|
-
finalVelocity?: number
|
|
711
|
-
orificeState
|
|
712
|
-
orificeVelocity?: number
|
|
713
|
-
storageState
|
|
714
|
-
dropletDiameter?: number
|
|
715
|
-
expandedDiameter
|
|
716
|
-
) {
|
|
717
|
-
super(id, typeId, displayName);
|
|
718
|
-
this.time = time;
|
|
719
|
-
this.massFlow = massFlow;
|
|
720
|
-
this.finalState = finalState;
|
|
721
|
-
this.finalVelocity = finalVelocity;
|
|
722
|
-
this.orificeState = orificeState;
|
|
723
|
-
this.orificeVelocity = orificeVelocity;
|
|
724
|
-
this.storageState = storageState;
|
|
725
|
-
this.dropletDiameter = dropletDiameter;
|
|
726
|
-
this.expandedDiameter = expandedDiameter;
|
|
703
|
+
constructor(options?: {
|
|
704
|
+
id?: string;
|
|
705
|
+
typeId?: string;
|
|
706
|
+
displayName?: string;
|
|
707
|
+
time?: number;
|
|
708
|
+
massFlow?: number;
|
|
709
|
+
finalState?: State;
|
|
710
|
+
finalVelocity?: number;
|
|
711
|
+
orificeState?: State;
|
|
712
|
+
orificeVelocity?: number;
|
|
713
|
+
storageState?: State;
|
|
714
|
+
dropletDiameter?: number;
|
|
715
|
+
expandedDiameter?: number;
|
|
716
|
+
}) {
|
|
717
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
718
|
+
this.time = options?.time;
|
|
719
|
+
this.massFlow = options?.massFlow;
|
|
720
|
+
this.finalState = options?.finalState ?? new State();
|
|
721
|
+
this.finalVelocity = options?.finalVelocity;
|
|
722
|
+
this.orificeState = options?.orificeState ?? new State();
|
|
723
|
+
this.orificeVelocity = options?.orificeVelocity;
|
|
724
|
+
this.storageState = options?.storageState ?? new State();
|
|
725
|
+
this.dropletDiameter = options?.dropletDiameter;
|
|
726
|
+
this.expandedDiameter = options?.expandedDiameter ?? 0.0;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -799,26 +799,26 @@ export class DischargeResult extends EntityBase {
|
|
|
799
799
|
* @param {Enums.DynamicType} releaseType - Instantaneous, continuous or time-varying. (default value is Enums.DynamicType.UNSET)
|
|
800
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)
|
|
801
801
|
*/
|
|
802
|
-
constructor(
|
|
803
|
-
id?: string
|
|
804
|
-
typeId?: string
|
|
805
|
-
displayName?: string
|
|
806
|
-
expansionEnergy?: number
|
|
807
|
-
releaseMass?: number
|
|
808
|
-
height?: number
|
|
809
|
-
angle?: number
|
|
810
|
-
holeDiameter?: number
|
|
811
|
-
releaseType
|
|
812
|
-
preDilutionAirRate
|
|
813
|
-
) {
|
|
814
|
-
super(id, typeId, displayName);
|
|
815
|
-
this.expansionEnergy = expansionEnergy;
|
|
816
|
-
this.releaseMass = releaseMass;
|
|
817
|
-
this.height = height;
|
|
818
|
-
this.angle = angle;
|
|
819
|
-
this.holeDiameter = holeDiameter;
|
|
820
|
-
this.releaseType = releaseType;
|
|
821
|
-
this.preDilutionAirRate = preDilutionAirRate;
|
|
802
|
+
constructor(options?: {
|
|
803
|
+
id?: string;
|
|
804
|
+
typeId?: string;
|
|
805
|
+
displayName?: string;
|
|
806
|
+
expansionEnergy?: number;
|
|
807
|
+
releaseMass?: number;
|
|
808
|
+
height?: number;
|
|
809
|
+
angle?: number;
|
|
810
|
+
holeDiameter?: number;
|
|
811
|
+
releaseType?: Enums.DynamicType;
|
|
812
|
+
preDilutionAirRate?: number;
|
|
813
|
+
}) {
|
|
814
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
815
|
+
this.expansionEnergy = options?.expansionEnergy;
|
|
816
|
+
this.releaseMass = options?.releaseMass;
|
|
817
|
+
this.height = options?.height;
|
|
818
|
+
this.angle = options?.angle;
|
|
819
|
+
this.holeDiameter = options?.holeDiameter;
|
|
820
|
+
this.releaseType = options?.releaseType ?? Enums.DynamicType.UNSET;
|
|
821
|
+
this.preDilutionAirRate = options?.preDilutionAirRate ?? 0;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -900,34 +900,34 @@ export class DispersionOutputConfig extends EntityBase {
|
|
|
900
900
|
* @param {number} componentToTrackIndex - Index of a component that you want to track within a mixture. (default value is -1)
|
|
901
901
|
* @param {string} componentToTrackName - Name of the component to track.
|
|
902
902
|
*/
|
|
903
|
-
constructor(
|
|
904
|
-
id?: string
|
|
905
|
-
typeId?: string
|
|
906
|
-
displayName?: string
|
|
907
|
-
downwindDistance
|
|
908
|
-
time
|
|
909
|
-
resolution
|
|
910
|
-
elevation
|
|
911
|
-
specialConcentration
|
|
912
|
-
concentration
|
|
913
|
-
crosswindDistance
|
|
914
|
-
contourType
|
|
915
|
-
lflFractionValue
|
|
916
|
-
componentToTrackIndex
|
|
917
|
-
componentToTrackName
|
|
918
|
-
) {
|
|
919
|
-
super(id, typeId, displayName);
|
|
920
|
-
this.downwindDistance = downwindDistance;
|
|
921
|
-
this.time = time;
|
|
922
|
-
this.resolution = resolution;
|
|
923
|
-
this.elevation = elevation;
|
|
924
|
-
this.specialConcentration = specialConcentration;
|
|
925
|
-
this.concentration = concentration;
|
|
926
|
-
this.crosswindDistance = crosswindDistance;
|
|
927
|
-
this.contourType = contourType;
|
|
928
|
-
this.lflFractionValue = lflFractionValue;
|
|
929
|
-
this.componentToTrackIndex = componentToTrackIndex;
|
|
930
|
-
this.componentToTrackName = componentToTrackName;
|
|
903
|
+
constructor(options?: {
|
|
904
|
+
id?: string;
|
|
905
|
+
typeId?: string;
|
|
906
|
+
displayName?: string;
|
|
907
|
+
downwindDistance?: number;
|
|
908
|
+
time?: number;
|
|
909
|
+
resolution?: Enums.Resolution;
|
|
910
|
+
elevation?: number;
|
|
911
|
+
specialConcentration?: Enums.SpecialConcentration;
|
|
912
|
+
concentration?: number;
|
|
913
|
+
crosswindDistance?: number;
|
|
914
|
+
contourType?: Enums.ContourType;
|
|
915
|
+
lflFractionValue?: number;
|
|
916
|
+
componentToTrackIndex?: number;
|
|
917
|
+
componentToTrackName?: string;
|
|
918
|
+
}) {
|
|
919
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
920
|
+
this.downwindDistance = options?.downwindDistance ?? 100;
|
|
921
|
+
this.time = options?.time ?? 60;
|
|
922
|
+
this.resolution = options?.resolution ?? Enums.Resolution.MEDIUM;
|
|
923
|
+
this.elevation = options?.elevation ?? 1;
|
|
924
|
+
this.specialConcentration = options?.specialConcentration ?? Enums.SpecialConcentration.MIN;
|
|
925
|
+
this.concentration = options?.concentration ?? 0;
|
|
926
|
+
this.crosswindDistance = options?.crosswindDistance ?? 0;
|
|
927
|
+
this.contourType = options?.contourType ?? Enums.ContourType.FOOTPRINT;
|
|
928
|
+
this.lflFractionValue = options?.lflFractionValue ?? 0.5;
|
|
929
|
+
this.componentToTrackIndex = options?.componentToTrackIndex ?? -1;
|
|
930
|
+
this.componentToTrackName = options?.componentToTrackName ?? "";
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1023,32 +1023,32 @@ export class DispersionParameters extends EntityBase {
|
|
|
1023
1023
|
* @param {number} averagingTime - The core averaging time, used to take into account the effects of changes in the wind direction over the course of the release. (default value is 18.75)
|
|
1024
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)
|
|
1025
1025
|
*/
|
|
1026
|
-
constructor(
|
|
1027
|
-
id?: string
|
|
1028
|
-
typeId?: string
|
|
1029
|
-
displayName?: string
|
|
1030
|
-
relativeTolerance
|
|
1031
|
-
rainoutThermoFlag
|
|
1032
|
-
fixedStepSize
|
|
1033
|
-
outputStepMultiplier
|
|
1034
|
-
maxDispersionDistance
|
|
1035
|
-
maxDispersionHeight
|
|
1036
|
-
numberOfReleaseObservers
|
|
1037
|
-
numberOfPoolObservers
|
|
1038
|
-
averagingTime
|
|
1039
|
-
lflFractionToStop
|
|
1040
|
-
) {
|
|
1041
|
-
super(id, typeId, displayName);
|
|
1042
|
-
this.relativeTolerance = relativeTolerance;
|
|
1043
|
-
this.rainoutThermoFlag = rainoutThermoFlag;
|
|
1044
|
-
this.fixedStepSize = fixedStepSize;
|
|
1045
|
-
this.outputStepMultiplier = outputStepMultiplier;
|
|
1046
|
-
this.maxDispersionDistance = maxDispersionDistance;
|
|
1047
|
-
this.maxDispersionHeight = maxDispersionHeight;
|
|
1048
|
-
this.numberOfReleaseObservers = numberOfReleaseObservers;
|
|
1049
|
-
this.numberOfPoolObservers = numberOfPoolObservers;
|
|
1050
|
-
this.averagingTime = averagingTime;
|
|
1051
|
-
this.lflFractionToStop = lflFractionToStop;
|
|
1026
|
+
constructor(options?: {
|
|
1027
|
+
id?: string;
|
|
1028
|
+
typeId?: string;
|
|
1029
|
+
displayName?: string;
|
|
1030
|
+
relativeTolerance?: number;
|
|
1031
|
+
rainoutThermoFlag?: Enums.RainoutThermoFlag;
|
|
1032
|
+
fixedStepSize?: number;
|
|
1033
|
+
outputStepMultiplier?: number;
|
|
1034
|
+
maxDispersionDistance?: number;
|
|
1035
|
+
maxDispersionHeight?: number;
|
|
1036
|
+
numberOfReleaseObservers?: number;
|
|
1037
|
+
numberOfPoolObservers?: number;
|
|
1038
|
+
averagingTime?: number;
|
|
1039
|
+
lflFractionToStop?: number;
|
|
1040
|
+
}) {
|
|
1041
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1042
|
+
this.relativeTolerance = options?.relativeTolerance ?? 0.001;
|
|
1043
|
+
this.rainoutThermoFlag = options?.rainoutThermoFlag ?? Enums.RainoutThermoFlag.RAINOUT_NON_EQUILIBRIUM;
|
|
1044
|
+
this.fixedStepSize = options?.fixedStepSize ?? 0.01;
|
|
1045
|
+
this.outputStepMultiplier = options?.outputStepMultiplier ?? 1.2;
|
|
1046
|
+
this.maxDispersionDistance = options?.maxDispersionDistance ?? 50000;
|
|
1047
|
+
this.maxDispersionHeight = options?.maxDispersionHeight ?? 1000;
|
|
1048
|
+
this.numberOfReleaseObservers = options?.numberOfReleaseObservers ?? 5;
|
|
1049
|
+
this.numberOfPoolObservers = options?.numberOfPoolObservers ?? 10;
|
|
1050
|
+
this.averagingTime = options?.averagingTime ?? 18.75;
|
|
1051
|
+
this.lflFractionToStop = options?.lflFractionToStop ?? 0.5;
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1178,70 +1178,70 @@ export class DispersionRecord extends EntityBase {
|
|
|
1178
1178
|
* @param {number} mass - The mass of released material in the cloud (instantaneous releases).
|
|
1179
1179
|
* @param {Enums.DynamicType} instCon - Instantanous or continuous (time-varying not permitted). (default value is Enums.DynamicType.UNSET)
|
|
1180
1180
|
*/
|
|
1181
|
-
constructor(
|
|
1182
|
-
id?: string
|
|
1183
|
-
typeId?: string
|
|
1184
|
-
displayName?: string
|
|
1185
|
-
observerIndex?: number
|
|
1186
|
-
centrelineConcentration?: number
|
|
1187
|
-
downwindDistance?: number
|
|
1188
|
-
time?: number
|
|
1189
|
-
centrelineConcentrationUncorrected?: number
|
|
1190
|
-
crosswindRadius?: number
|
|
1191
|
-
verticalRadius?: number
|
|
1192
|
-
crosswindExponent?: number
|
|
1193
|
-
verticalExponent?: number
|
|
1194
|
-
theta?: number
|
|
1195
|
-
centrelineHeight?: number
|
|
1196
|
-
liquidFraction?: number
|
|
1197
|
-
vapourTemperature?: number
|
|
1198
|
-
massConc?: number
|
|
1199
|
-
velocity?: number
|
|
1200
|
-
massFlow?: number
|
|
1201
|
-
profileFlag?: number
|
|
1202
|
-
elevFlag?: number
|
|
1203
|
-
rhoCloud?: number
|
|
1204
|
-
liqTemp?: number
|
|
1205
|
-
effectiveWidth?: number
|
|
1206
|
-
effectiveHeight?: number
|
|
1207
|
-
passTranDist?: number
|
|
1208
|
-
downwindRadius?: number
|
|
1209
|
-
dropletDiameter?: number
|
|
1210
|
-
dropletHeight?: number
|
|
1211
|
-
dropletDistance?: number
|
|
1212
|
-
mass?: number
|
|
1213
|
-
instCon
|
|
1214
|
-
) {
|
|
1215
|
-
super(id, typeId, displayName);
|
|
1216
|
-
this.observerIndex = observerIndex;
|
|
1217
|
-
this.centrelineConcentration = centrelineConcentration;
|
|
1218
|
-
this.downwindDistance = downwindDistance;
|
|
1219
|
-
this.time = time;
|
|
1220
|
-
this.centrelineConcentrationUncorrected = centrelineConcentrationUncorrected;
|
|
1221
|
-
this.crosswindRadius = crosswindRadius;
|
|
1222
|
-
this.verticalRadius = verticalRadius;
|
|
1223
|
-
this.crosswindExponent = crosswindExponent;
|
|
1224
|
-
this.verticalExponent = verticalExponent;
|
|
1225
|
-
this.theta = theta;
|
|
1226
|
-
this.centrelineHeight = centrelineHeight;
|
|
1227
|
-
this.liquidFraction = liquidFraction;
|
|
1228
|
-
this.vapourTemperature = vapourTemperature;
|
|
1229
|
-
this.massConc = massConc;
|
|
1230
|
-
this.velocity = velocity;
|
|
1231
|
-
this.massFlow = massFlow;
|
|
1232
|
-
this.profileFlag = profileFlag;
|
|
1233
|
-
this.elevFlag = elevFlag;
|
|
1234
|
-
this.rhoCloud = rhoCloud;
|
|
1235
|
-
this.liqTemp = liqTemp;
|
|
1236
|
-
this.effectiveWidth = effectiveWidth;
|
|
1237
|
-
this.effectiveHeight = effectiveHeight;
|
|
1238
|
-
this.passTranDist = passTranDist;
|
|
1239
|
-
this.downwindRadius = downwindRadius;
|
|
1240
|
-
this.dropletDiameter = dropletDiameter;
|
|
1241
|
-
this.dropletHeight = dropletHeight;
|
|
1242
|
-
this.dropletDistance = dropletDistance;
|
|
1243
|
-
this.mass = mass;
|
|
1244
|
-
this.instCon = instCon;
|
|
1181
|
+
constructor(options?: {
|
|
1182
|
+
id?: string;
|
|
1183
|
+
typeId?: string;
|
|
1184
|
+
displayName?: string;
|
|
1185
|
+
observerIndex?: number;
|
|
1186
|
+
centrelineConcentration?: number;
|
|
1187
|
+
downwindDistance?: number;
|
|
1188
|
+
time?: number;
|
|
1189
|
+
centrelineConcentrationUncorrected?: number;
|
|
1190
|
+
crosswindRadius?: number;
|
|
1191
|
+
verticalRadius?: number;
|
|
1192
|
+
crosswindExponent?: number;
|
|
1193
|
+
verticalExponent?: number;
|
|
1194
|
+
theta?: number;
|
|
1195
|
+
centrelineHeight?: number;
|
|
1196
|
+
liquidFraction?: number;
|
|
1197
|
+
vapourTemperature?: number;
|
|
1198
|
+
massConc?: number;
|
|
1199
|
+
velocity?: number;
|
|
1200
|
+
massFlow?: number;
|
|
1201
|
+
profileFlag?: number;
|
|
1202
|
+
elevFlag?: number;
|
|
1203
|
+
rhoCloud?: number;
|
|
1204
|
+
liqTemp?: number;
|
|
1205
|
+
effectiveWidth?: number;
|
|
1206
|
+
effectiveHeight?: number;
|
|
1207
|
+
passTranDist?: number;
|
|
1208
|
+
downwindRadius?: number;
|
|
1209
|
+
dropletDiameter?: number;
|
|
1210
|
+
dropletHeight?: number;
|
|
1211
|
+
dropletDistance?: number;
|
|
1212
|
+
mass?: number;
|
|
1213
|
+
instCon?: Enums.DynamicType;
|
|
1214
|
+
}) {
|
|
1215
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1216
|
+
this.observerIndex = options?.observerIndex;
|
|
1217
|
+
this.centrelineConcentration = options?.centrelineConcentration;
|
|
1218
|
+
this.downwindDistance = options?.downwindDistance;
|
|
1219
|
+
this.time = options?.time;
|
|
1220
|
+
this.centrelineConcentrationUncorrected = options?.centrelineConcentrationUncorrected;
|
|
1221
|
+
this.crosswindRadius = options?.crosswindRadius;
|
|
1222
|
+
this.verticalRadius = options?.verticalRadius;
|
|
1223
|
+
this.crosswindExponent = options?.crosswindExponent;
|
|
1224
|
+
this.verticalExponent = options?.verticalExponent;
|
|
1225
|
+
this.theta = options?.theta;
|
|
1226
|
+
this.centrelineHeight = options?.centrelineHeight;
|
|
1227
|
+
this.liquidFraction = options?.liquidFraction;
|
|
1228
|
+
this.vapourTemperature = options?.vapourTemperature;
|
|
1229
|
+
this.massConc = options?.massConc;
|
|
1230
|
+
this.velocity = options?.velocity;
|
|
1231
|
+
this.massFlow = options?.massFlow;
|
|
1232
|
+
this.profileFlag = options?.profileFlag;
|
|
1233
|
+
this.elevFlag = options?.elevFlag;
|
|
1234
|
+
this.rhoCloud = options?.rhoCloud;
|
|
1235
|
+
this.liqTemp = options?.liqTemp;
|
|
1236
|
+
this.effectiveWidth = options?.effectiveWidth;
|
|
1237
|
+
this.effectiveHeight = options?.effectiveHeight;
|
|
1238
|
+
this.passTranDist = options?.passTranDist;
|
|
1239
|
+
this.downwindRadius = options?.downwindRadius;
|
|
1240
|
+
this.dropletDiameter = options?.dropletDiameter;
|
|
1241
|
+
this.dropletHeight = options?.dropletHeight;
|
|
1242
|
+
this.dropletDistance = options?.dropletDistance;
|
|
1243
|
+
this.mass = options?.mass;
|
|
1244
|
+
this.instCon = options?.instCon ?? Enums.DynamicType.UNSET;
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1393,16 +1393,16 @@ export class ExplosionConfinedVolume extends EntityBase {
|
|
|
1393
1393
|
* @param {number} confinedStrength - The degree of confinement in the area or source, described by an integer between 3 (lowest) and 10 (highest). (default value is 7)
|
|
1394
1394
|
* @param {number} confinedVolume - The volume of the cloud that is contained in the area of confinement. (default value is 1)
|
|
1395
1395
|
*/
|
|
1396
|
-
constructor(
|
|
1397
|
-
id?: string
|
|
1398
|
-
typeId?: string
|
|
1399
|
-
displayName?: string
|
|
1400
|
-
confinedStrength
|
|
1401
|
-
confinedVolume
|
|
1402
|
-
) {
|
|
1403
|
-
super(id, typeId, displayName);
|
|
1404
|
-
this.confinedStrength = confinedStrength;
|
|
1405
|
-
this.confinedVolume = confinedVolume;
|
|
1396
|
+
constructor(options?: {
|
|
1397
|
+
id?: string;
|
|
1398
|
+
typeId?: string;
|
|
1399
|
+
displayName?: string;
|
|
1400
|
+
confinedStrength?: number;
|
|
1401
|
+
confinedVolume?: number;
|
|
1402
|
+
}) {
|
|
1403
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1404
|
+
this.confinedStrength = options?.confinedStrength ?? 7;
|
|
1405
|
+
this.confinedVolume = options?.confinedVolume ?? 1;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1437,16 +1437,16 @@ export class ExplosionOutputConfig extends EntityBase {
|
|
|
1437
1437
|
* @param {number} overpressureLevel - Overpressure of interest for explosions. (default value is 2068)
|
|
1438
1438
|
* @param {Enums.MEConfinedMethod} meConfinedMethod - The multi energy confined method for modelling the effects of explosions. (default value is Enums.MEConfinedMethod.UNIFORM_CONFINED)
|
|
1439
1439
|
*/
|
|
1440
|
-
constructor(
|
|
1441
|
-
id?: string
|
|
1442
|
-
typeId?: string
|
|
1443
|
-
displayName?: string
|
|
1444
|
-
overpressureLevel
|
|
1445
|
-
meConfinedMethod
|
|
1446
|
-
) {
|
|
1447
|
-
super(id, typeId, displayName);
|
|
1448
|
-
this.overpressureLevel = overpressureLevel;
|
|
1449
|
-
this.meConfinedMethod = meConfinedMethod;
|
|
1440
|
+
constructor(options?: {
|
|
1441
|
+
id?: string;
|
|
1442
|
+
typeId?: string;
|
|
1443
|
+
displayName?: string;
|
|
1444
|
+
overpressureLevel?: number;
|
|
1445
|
+
meConfinedMethod?: Enums.MEConfinedMethod;
|
|
1446
|
+
}) {
|
|
1447
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1448
|
+
this.overpressureLevel = options?.overpressureLevel ?? 2068;
|
|
1449
|
+
this.meConfinedMethod = options?.meConfinedMethod ?? Enums.MEConfinedMethod.UNIFORM_CONFINED;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
1452
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1498,24 +1498,24 @@ export class ExplosionOverpressureResult extends EntityBase {
|
|
|
1498
1498
|
* @param {number} ignitionTime - The time that the cloud is ignited, measured from the start of the release.
|
|
1499
1499
|
* @param {number} radius - The radius of the effect zone for the overpressure level of interest.
|
|
1500
1500
|
*/
|
|
1501
|
-
constructor(
|
|
1502
|
-
id?: string
|
|
1503
|
-
typeId?: string
|
|
1504
|
-
displayName?: string
|
|
1505
|
-
overpressure?: number
|
|
1506
|
-
explosionCentre?: number
|
|
1507
|
-
maximumDistance?: number
|
|
1508
|
-
explodedMass?: number
|
|
1509
|
-
ignitionTime?: number
|
|
1510
|
-
radius?: number
|
|
1511
|
-
) {
|
|
1512
|
-
super(id, typeId, displayName);
|
|
1513
|
-
this.overpressure = overpressure;
|
|
1514
|
-
this.explosionCentre = explosionCentre;
|
|
1515
|
-
this.maximumDistance = maximumDistance;
|
|
1516
|
-
this.explodedMass = explodedMass;
|
|
1517
|
-
this.ignitionTime = ignitionTime;
|
|
1518
|
-
this.radius = radius;
|
|
1501
|
+
constructor(options?: {
|
|
1502
|
+
id?: string;
|
|
1503
|
+
typeId?: string;
|
|
1504
|
+
displayName?: string;
|
|
1505
|
+
overpressure?: number;
|
|
1506
|
+
explosionCentre?: number;
|
|
1507
|
+
maximumDistance?: number;
|
|
1508
|
+
explodedMass?: number;
|
|
1509
|
+
ignitionTime?: number;
|
|
1510
|
+
radius?: number;
|
|
1511
|
+
}) {
|
|
1512
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1513
|
+
this.overpressure = options?.overpressure;
|
|
1514
|
+
this.explosionCentre = options?.explosionCentre;
|
|
1515
|
+
this.maximumDistance = options?.maximumDistance;
|
|
1516
|
+
this.explodedMass = options?.explodedMass;
|
|
1517
|
+
this.ignitionTime = options?.ignitionTime;
|
|
1518
|
+
this.radius = options?.radius;
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1564,14 +1564,14 @@ export class ExplosionParameters extends EntityBase {
|
|
|
1564
1564
|
*
|
|
1565
1565
|
* @param {number} explosionUniformStrength - The confined strength in the multi-energy uniform confined method. (default value is 10.0)
|
|
1566
1566
|
*/
|
|
1567
|
-
constructor(
|
|
1568
|
-
id?: string
|
|
1569
|
-
typeId?: string
|
|
1570
|
-
displayName?: string
|
|
1571
|
-
explosionUniformStrength
|
|
1572
|
-
) {
|
|
1573
|
-
super(id, typeId, displayName);
|
|
1574
|
-
this.explosionUniformStrength = explosionUniformStrength;
|
|
1567
|
+
constructor(options?: {
|
|
1568
|
+
id?: string;
|
|
1569
|
+
typeId?: string;
|
|
1570
|
+
displayName?: string;
|
|
1571
|
+
explosionUniformStrength?: number;
|
|
1572
|
+
}) {
|
|
1573
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1574
|
+
this.explosionUniformStrength = options?.explosionUniformStrength ?? 10.0;
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
1577
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1606,20 +1606,20 @@ export class FlameRecord extends EntityBase {
|
|
|
1606
1606
|
* @param {number} rCoordinate - The radius of the frustum base or tip.
|
|
1607
1607
|
* @param {number} phiCoordinate - Inclination of the frustum base or tip from the vertical.
|
|
1608
1608
|
*/
|
|
1609
|
-
constructor(
|
|
1610
|
-
id?: string
|
|
1611
|
-
typeId?: string
|
|
1612
|
-
displayName?: string
|
|
1613
|
-
xCoordinate?: number
|
|
1614
|
-
zCoordinate?: number
|
|
1615
|
-
rCoordinate?: number
|
|
1616
|
-
phiCoordinate?: number
|
|
1617
|
-
) {
|
|
1618
|
-
super(id, typeId, displayName);
|
|
1619
|
-
this.xCoordinate = xCoordinate;
|
|
1620
|
-
this.zCoordinate = zCoordinate;
|
|
1621
|
-
this.rCoordinate = rCoordinate;
|
|
1622
|
-
this.phiCoordinate = phiCoordinate;
|
|
1609
|
+
constructor(options?: {
|
|
1610
|
+
id?: string;
|
|
1611
|
+
typeId?: string;
|
|
1612
|
+
displayName?: string;
|
|
1613
|
+
xCoordinate?: number;
|
|
1614
|
+
zCoordinate?: number;
|
|
1615
|
+
rCoordinate?: number;
|
|
1616
|
+
phiCoordinate?: number;
|
|
1617
|
+
}) {
|
|
1618
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1619
|
+
this.xCoordinate = options?.xCoordinate;
|
|
1620
|
+
this.zCoordinate = options?.zCoordinate;
|
|
1621
|
+
this.rCoordinate = options?.rCoordinate;
|
|
1622
|
+
this.phiCoordinate = options?.phiCoordinate;
|
|
1623
1623
|
}
|
|
1624
1624
|
|
|
1625
1625
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1668,22 +1668,22 @@ export class FlameResult extends EntityBase {
|
|
|
1668
1668
|
* @param {number} flameDiameter - Diameter of the flame.
|
|
1669
1669
|
* @param {Enums.FireType} fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
|
|
1670
1670
|
*/
|
|
1671
|
-
constructor(
|
|
1672
|
-
id?: string
|
|
1673
|
-
typeId?: string
|
|
1674
|
-
displayName?: string
|
|
1675
|
-
time?: number
|
|
1676
|
-
surfaceEmissivePower?: number
|
|
1677
|
-
flameLength?: number
|
|
1678
|
-
flameDiameter?: number
|
|
1679
|
-
fireType
|
|
1680
|
-
) {
|
|
1681
|
-
super(id, typeId, displayName);
|
|
1682
|
-
this.time = time;
|
|
1683
|
-
this.surfaceEmissivePower = surfaceEmissivePower;
|
|
1684
|
-
this.flameLength = flameLength;
|
|
1685
|
-
this.flameDiameter = flameDiameter;
|
|
1686
|
-
this.fireType = fireType;
|
|
1671
|
+
constructor(options?: {
|
|
1672
|
+
id?: string;
|
|
1673
|
+
typeId?: string;
|
|
1674
|
+
displayName?: string;
|
|
1675
|
+
time?: number;
|
|
1676
|
+
surfaceEmissivePower?: number;
|
|
1677
|
+
flameLength?: number;
|
|
1678
|
+
flameDiameter?: number;
|
|
1679
|
+
fireType?: Enums.FireType;
|
|
1680
|
+
}) {
|
|
1681
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1682
|
+
this.time = options?.time;
|
|
1683
|
+
this.surfaceEmissivePower = options?.surfaceEmissivePower;
|
|
1684
|
+
this.flameLength = options?.flameLength;
|
|
1685
|
+
this.flameDiameter = options?.flameDiameter;
|
|
1686
|
+
this.fireType = options?.fireType ?? Enums.FireType.NO_FIRE;
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1739,16 +1739,16 @@ export class Transect extends EntityBase {
|
|
|
1739
1739
|
* @param {LocalPosition} transectStartPoint - Cartesian coordinates of the start point of the transect.
|
|
1740
1740
|
* @param {LocalPosition} transectEndPoint - Cartesian coordinates of the end point of the transect.
|
|
1741
1741
|
*/
|
|
1742
|
-
constructor(
|
|
1743
|
-
id?: string
|
|
1744
|
-
typeId?: string
|
|
1745
|
-
displayName?: string
|
|
1746
|
-
transectStartPoint
|
|
1747
|
-
transectEndPoint
|
|
1748
|
-
) {
|
|
1749
|
-
super(id, typeId, displayName);
|
|
1750
|
-
this.transectStartPoint = transectStartPoint;
|
|
1751
|
-
this.transectEndPoint = transectEndPoint;
|
|
1742
|
+
constructor(options?: {
|
|
1743
|
+
id?: string;
|
|
1744
|
+
typeId?: string;
|
|
1745
|
+
displayName?: string;
|
|
1746
|
+
transectStartPoint?: LocalPosition;
|
|
1747
|
+
transectEndPoint?: LocalPosition;
|
|
1748
|
+
}) {
|
|
1749
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1750
|
+
this.transectStartPoint = options?.transectStartPoint ?? new LocalPosition();
|
|
1751
|
+
this.transectEndPoint = options?.transectEndPoint ?? new LocalPosition();
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1801,32 +1801,32 @@ export class FlammableOutputConfig extends EntityBase {
|
|
|
1801
1801
|
* @param {number} fixedInclination - Whether to specify the inclination of a flat surface on which an observer lies with respect to the flame. (default value is 0)
|
|
1802
1802
|
* @param {number} inclination - Angle between the observer normal and the horizontal plane. (default value is 0)
|
|
1803
1803
|
*/
|
|
1804
|
-
constructor(
|
|
1805
|
-
id?: string
|
|
1806
|
-
typeId?: string
|
|
1807
|
-
displayName?: string
|
|
1808
|
-
position
|
|
1809
|
-
transect
|
|
1810
|
-
radiationType
|
|
1811
|
-
contourType
|
|
1812
|
-
radiationLevel
|
|
1813
|
-
radiationResolution
|
|
1814
|
-
fixedOrientation
|
|
1815
|
-
orientation
|
|
1816
|
-
fixedInclination
|
|
1817
|
-
inclination
|
|
1818
|
-
) {
|
|
1819
|
-
super(id, typeId, displayName);
|
|
1820
|
-
this.position = position;
|
|
1821
|
-
this.transect = transect;
|
|
1822
|
-
this.radiationType = radiationType;
|
|
1823
|
-
this.contourType = contourType;
|
|
1824
|
-
this.radiationLevel = radiationLevel;
|
|
1825
|
-
this.radiationResolution = radiationResolution;
|
|
1826
|
-
this.fixedOrientation = fixedOrientation;
|
|
1827
|
-
this.orientation = orientation;
|
|
1828
|
-
this.fixedInclination = fixedInclination;
|
|
1829
|
-
this.inclination = inclination;
|
|
1804
|
+
constructor(options?: {
|
|
1805
|
+
id?: string;
|
|
1806
|
+
typeId?: string;
|
|
1807
|
+
displayName?: string;
|
|
1808
|
+
position?: LocalPosition;
|
|
1809
|
+
transect?: Transect;
|
|
1810
|
+
radiationType?: Enums.RadiationType;
|
|
1811
|
+
contourType?: Enums.ContourType;
|
|
1812
|
+
radiationLevel?: number;
|
|
1813
|
+
radiationResolution?: Enums.Resolution;
|
|
1814
|
+
fixedOrientation?: number;
|
|
1815
|
+
orientation?: number;
|
|
1816
|
+
fixedInclination?: number;
|
|
1817
|
+
inclination?: number;
|
|
1818
|
+
}) {
|
|
1819
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1820
|
+
this.position = options?.position ?? new LocalPosition();
|
|
1821
|
+
this.transect = options?.transect ?? new Transect();
|
|
1822
|
+
this.radiationType = options?.radiationType ?? Enums.RadiationType.INTENSITY;
|
|
1823
|
+
this.contourType = options?.contourType ?? Enums.ContourType.FOOTPRINT_ELLIPSE;
|
|
1824
|
+
this.radiationLevel = options?.radiationLevel ?? 4000;
|
|
1825
|
+
this.radiationResolution = options?.radiationResolution ?? Enums.Resolution.MEDIUM;
|
|
1826
|
+
this.fixedOrientation = options?.fixedOrientation ?? 0;
|
|
1827
|
+
this.orientation = options?.orientation ?? 0;
|
|
1828
|
+
this.fixedInclination = options?.fixedInclination ?? 0;
|
|
1829
|
+
this.inclination = options?.inclination ?? 0;
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
1832
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -1912,24 +1912,24 @@ export class FlammableParameters extends EntityBase {
|
|
|
1912
1912
|
* @param {boolean} timeAveraging - Whether to base the jet fire calculations on a discharge rate averaged between 0 seconds and a TimeOfInterest. (default value is true)
|
|
1913
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)
|
|
1914
1914
|
*/
|
|
1915
|
-
constructor(
|
|
1916
|
-
id?: string
|
|
1917
|
-
typeId?: string
|
|
1918
|
-
displayName?: string
|
|
1919
|
-
maxExposureDuration
|
|
1920
|
-
radiationRelativeTolerance
|
|
1921
|
-
poolFireType
|
|
1922
|
-
jetFireAutoSelect
|
|
1923
|
-
timeAveraging
|
|
1924
|
-
timeOfInterest
|
|
1925
|
-
) {
|
|
1926
|
-
super(id, typeId, displayName);
|
|
1927
|
-
this.maxExposureDuration = maxExposureDuration;
|
|
1928
|
-
this.radiationRelativeTolerance = radiationRelativeTolerance;
|
|
1929
|
-
this.poolFireType = poolFireType;
|
|
1930
|
-
this.jetFireAutoSelect = jetFireAutoSelect;
|
|
1931
|
-
this.timeAveraging = timeAveraging;
|
|
1932
|
-
this.timeOfInterest = timeOfInterest;
|
|
1915
|
+
constructor(options?: {
|
|
1916
|
+
id?: string;
|
|
1917
|
+
typeId?: string;
|
|
1918
|
+
displayName?: string;
|
|
1919
|
+
maxExposureDuration?: number;
|
|
1920
|
+
radiationRelativeTolerance?: number;
|
|
1921
|
+
poolFireType?: Enums.PoolFireType;
|
|
1922
|
+
jetFireAutoSelect?: boolean;
|
|
1923
|
+
timeAveraging?: boolean;
|
|
1924
|
+
timeOfInterest?: number;
|
|
1925
|
+
}) {
|
|
1926
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
1927
|
+
this.maxExposureDuration = options?.maxExposureDuration ?? 20;
|
|
1928
|
+
this.radiationRelativeTolerance = options?.radiationRelativeTolerance ?? 0.01;
|
|
1929
|
+
this.poolFireType = options?.poolFireType ?? Enums.PoolFireType.LATE;
|
|
1930
|
+
this.jetFireAutoSelect = options?.jetFireAutoSelect ?? false;
|
|
1931
|
+
this.timeAveraging = options?.timeAveraging ?? true;
|
|
1932
|
+
this.timeOfInterest = options?.timeOfInterest ?? 20;
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
1935
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2017,44 +2017,44 @@ export class FlashResult extends EntityBase {
|
|
|
2017
2017
|
* @param {number} liquidMassFraction - Liquid mass fraction.
|
|
2018
2018
|
* @param {Enums.Phase} fluidPhase - Vapour, liquid or two-phase. (default value is Enums.Phase.UNSET)
|
|
2019
2019
|
*/
|
|
2020
|
-
constructor(
|
|
2021
|
-
id?: string
|
|
2022
|
-
typeId?: string
|
|
2023
|
-
displayName?: string
|
|
2024
|
-
pressure?: number
|
|
2025
|
-
temperature?: number
|
|
2026
|
-
liquidMoleFraction?: number
|
|
2027
|
-
liquidDensity?: number
|
|
2028
|
-
vapourDensity?: number
|
|
2029
|
-
liquidEntropy?: number
|
|
2030
|
-
vapourEntropy?: number
|
|
2031
|
-
liquidEnthalpy?: number
|
|
2032
|
-
vapourEnthalpy?: number
|
|
2033
|
-
bubblePointPressure?: number
|
|
2034
|
-
bubblePointTemperature?: number
|
|
2035
|
-
dewPointPressure?: number
|
|
2036
|
-
dewPointTemperature?: number
|
|
2037
|
-
totalFluidDensity?: number
|
|
2038
|
-
liquidMassFraction?: number
|
|
2039
|
-
fluidPhase
|
|
2040
|
-
) {
|
|
2041
|
-
super(id, typeId, displayName);
|
|
2042
|
-
this.pressure = pressure;
|
|
2043
|
-
this.temperature = temperature;
|
|
2044
|
-
this.liquidMoleFraction = liquidMoleFraction;
|
|
2045
|
-
this.liquidDensity = liquidDensity;
|
|
2046
|
-
this.vapourDensity = vapourDensity;
|
|
2047
|
-
this.liquidEntropy = liquidEntropy;
|
|
2048
|
-
this.vapourEntropy = vapourEntropy;
|
|
2049
|
-
this.liquidEnthalpy = liquidEnthalpy;
|
|
2050
|
-
this.vapourEnthalpy = vapourEnthalpy;
|
|
2051
|
-
this.bubblePointPressure = bubblePointPressure;
|
|
2052
|
-
this.bubblePointTemperature = bubblePointTemperature;
|
|
2053
|
-
this.dewPointPressure = dewPointPressure;
|
|
2054
|
-
this.dewPointTemperature = dewPointTemperature;
|
|
2055
|
-
this.totalFluidDensity = totalFluidDensity;
|
|
2056
|
-
this.liquidMassFraction = liquidMassFraction;
|
|
2057
|
-
this.fluidPhase = fluidPhase;
|
|
2020
|
+
constructor(options?: {
|
|
2021
|
+
id?: string;
|
|
2022
|
+
typeId?: string;
|
|
2023
|
+
displayName?: string;
|
|
2024
|
+
pressure?: number;
|
|
2025
|
+
temperature?: number;
|
|
2026
|
+
liquidMoleFraction?: number;
|
|
2027
|
+
liquidDensity?: number;
|
|
2028
|
+
vapourDensity?: number;
|
|
2029
|
+
liquidEntropy?: number;
|
|
2030
|
+
vapourEntropy?: number;
|
|
2031
|
+
liquidEnthalpy?: number;
|
|
2032
|
+
vapourEnthalpy?: number;
|
|
2033
|
+
bubblePointPressure?: number;
|
|
2034
|
+
bubblePointTemperature?: number;
|
|
2035
|
+
dewPointPressure?: number;
|
|
2036
|
+
dewPointTemperature?: number;
|
|
2037
|
+
totalFluidDensity?: number;
|
|
2038
|
+
liquidMassFraction?: number;
|
|
2039
|
+
fluidPhase?: Enums.Phase;
|
|
2040
|
+
}) {
|
|
2041
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2042
|
+
this.pressure = options?.pressure;
|
|
2043
|
+
this.temperature = options?.temperature;
|
|
2044
|
+
this.liquidMoleFraction = options?.liquidMoleFraction;
|
|
2045
|
+
this.liquidDensity = options?.liquidDensity;
|
|
2046
|
+
this.vapourDensity = options?.vapourDensity;
|
|
2047
|
+
this.liquidEntropy = options?.liquidEntropy;
|
|
2048
|
+
this.vapourEntropy = options?.vapourEntropy;
|
|
2049
|
+
this.liquidEnthalpy = options?.liquidEnthalpy;
|
|
2050
|
+
this.vapourEnthalpy = options?.vapourEnthalpy;
|
|
2051
|
+
this.bubblePointPressure = options?.bubblePointPressure;
|
|
2052
|
+
this.bubblePointTemperature = options?.bubblePointTemperature;
|
|
2053
|
+
this.dewPointPressure = options?.dewPointPressure;
|
|
2054
|
+
this.dewPointTemperature = options?.dewPointTemperature;
|
|
2055
|
+
this.totalFluidDensity = options?.totalFluidDensity;
|
|
2056
|
+
this.liquidMassFraction = options?.liquidMassFraction;
|
|
2057
|
+
this.fluidPhase = options?.fluidPhase ?? Enums.Phase.UNSET;
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
2060
2060
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2154,16 +2154,16 @@ export class ReleaseOverTime extends Scenario {
|
|
|
2154
2154
|
* @param {number} releaseAngle - Angle of release above a horizontal plane. (default value is 0.0)
|
|
2155
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)
|
|
2156
2156
|
*/
|
|
2157
|
-
constructor(
|
|
2158
|
-
id?: string
|
|
2159
|
-
typeId?: string
|
|
2160
|
-
displayName?: string
|
|
2161
|
-
releaseAngle
|
|
2162
|
-
timeVaryingOption
|
|
2163
|
-
) {
|
|
2164
|
-
|
|
2165
|
-
this.releaseAngle = releaseAngle;
|
|
2166
|
-
this.timeVaryingOption = timeVaryingOption;
|
|
2157
|
+
constructor(options?: {
|
|
2158
|
+
id?: string;
|
|
2159
|
+
typeId?: string;
|
|
2160
|
+
displayName?: string;
|
|
2161
|
+
releaseAngle?: number;
|
|
2162
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
2163
|
+
}) {
|
|
2164
|
+
super(options);
|
|
2165
|
+
this.releaseAngle = options?.releaseAngle ?? 0.0;
|
|
2166
|
+
this.timeVaryingOption = options?.timeVaryingOption ?? Enums.TimeVaryingOption.INITIAL_RATE;
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
2169
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2211,20 +2211,20 @@ export class Leak extends ReleaseOverTime {
|
|
|
2211
2211
|
* @param {number} holeHeightFraction - Location of the hole above the base of a vessel as a fraction of the vessel's vertical dimension. (default value is 0.5)
|
|
2212
2212
|
* @param {number} releaseElevation - The elevation of the release. (default value is 1)
|
|
2213
2213
|
*/
|
|
2214
|
-
constructor(
|
|
2215
|
-
id?: string
|
|
2216
|
-
typeId?: string
|
|
2217
|
-
displayName?: string
|
|
2218
|
-
holeDiameter?: number
|
|
2219
|
-
releaseAngle
|
|
2220
|
-
timeVaryingOption
|
|
2221
|
-
holeHeightFraction
|
|
2222
|
-
releaseElevation
|
|
2223
|
-
) {
|
|
2224
|
-
|
|
2225
|
-
this.holeDiameter = holeDiameter;
|
|
2226
|
-
this.holeHeightFraction = holeHeightFraction;
|
|
2227
|
-
this.releaseElevation = releaseElevation;
|
|
2214
|
+
constructor(options?: {
|
|
2215
|
+
id?: string;
|
|
2216
|
+
typeId?: string;
|
|
2217
|
+
displayName?: string;
|
|
2218
|
+
holeDiameter?: number;
|
|
2219
|
+
releaseAngle?: number;
|
|
2220
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
2221
|
+
holeHeightFraction?: number;
|
|
2222
|
+
releaseElevation?: number;
|
|
2223
|
+
}) {
|
|
2224
|
+
super(options);
|
|
2225
|
+
this.holeDiameter = options?.holeDiameter;
|
|
2226
|
+
this.holeHeightFraction = options?.holeHeightFraction ?? 0.5;
|
|
2227
|
+
this.releaseElevation = options?.releaseElevation ?? 1;
|
|
2228
2228
|
}
|
|
2229
2229
|
|
|
2230
2230
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2271,22 +2271,22 @@ export class LineRupture extends ReleaseOverTime {
|
|
|
2271
2271
|
* @param {number} pipeRoughness - Roughness of the short pipe. (default value is 0.000045)
|
|
2272
2272
|
* @param {number} pipeHeightFraction - Height of the pipe connection measured from the base of the vessel. (default value is 0.5)
|
|
2273
2273
|
*/
|
|
2274
|
-
constructor(
|
|
2275
|
-
id?: string
|
|
2276
|
-
typeId?: string
|
|
2277
|
-
displayName?: string
|
|
2278
|
-
pipeDiameter?: number
|
|
2279
|
-
pipeLength?: number
|
|
2280
|
-
releaseAngle
|
|
2281
|
-
timeVaryingOption
|
|
2282
|
-
pipeRoughness
|
|
2283
|
-
pipeHeightFraction
|
|
2284
|
-
) {
|
|
2285
|
-
|
|
2286
|
-
this.pipeDiameter = pipeDiameter;
|
|
2287
|
-
this.pipeLength = pipeLength;
|
|
2288
|
-
this.pipeRoughness = pipeRoughness;
|
|
2289
|
-
this.pipeHeightFraction = pipeHeightFraction;
|
|
2274
|
+
constructor(options?: {
|
|
2275
|
+
id?: string;
|
|
2276
|
+
typeId?: string;
|
|
2277
|
+
displayName?: string;
|
|
2278
|
+
pipeDiameter?: number;
|
|
2279
|
+
pipeLength?: number;
|
|
2280
|
+
releaseAngle?: number;
|
|
2281
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
2282
|
+
pipeRoughness?: number;
|
|
2283
|
+
pipeHeightFraction?: number;
|
|
2284
|
+
}) {
|
|
2285
|
+
super(options);
|
|
2286
|
+
this.pipeDiameter = options?.pipeDiameter;
|
|
2287
|
+
this.pipeLength = options?.pipeLength;
|
|
2288
|
+
this.pipeRoughness = options?.pipeRoughness ?? 0.000045;
|
|
2289
|
+
this.pipeHeightFraction = options?.pipeHeightFraction ?? 0.5;
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
2292
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2341,46 +2341,46 @@ export class MaterialComponentDataItem extends EntityBase {
|
|
|
2341
2341
|
* @param {number} supercriticalExtrapolation - Super critical extrapolation flag. (default value is 0)
|
|
2342
2342
|
* @param {number} fractionTc - Fraction of critical temperature. (default value is 1)
|
|
2343
2343
|
*/
|
|
2344
|
-
constructor(
|
|
2345
|
-
id?: string
|
|
2346
|
-
typeId?: string
|
|
2347
|
-
displayName?: string
|
|
2348
|
-
description
|
|
2349
|
-
equationNumber?: number
|
|
2350
|
-
equationString
|
|
2351
|
-
equationCoefficients?: number[]
|
|
2352
|
-
calculationLimits?: number[]
|
|
2353
|
-
supercriticalExtrapolation
|
|
2354
|
-
fractionTc
|
|
2355
|
-
) {
|
|
2356
|
-
super(id, typeId, displayName);
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2361
|
-
this.
|
|
2362
|
-
this.supercriticalExtrapolation = supercriticalExtrapolation;
|
|
2363
|
-
this.fractionTc = fractionTc;
|
|
2344
|
+
constructor(options?: {
|
|
2345
|
+
id?: string;
|
|
2346
|
+
typeId?: string;
|
|
2347
|
+
displayName?: string;
|
|
2348
|
+
description?: string;
|
|
2349
|
+
equationNumber?: number;
|
|
2350
|
+
equationString?: string;
|
|
2351
|
+
equationCoefficients?: number[];
|
|
2352
|
+
calculationLimits?: number[];
|
|
2353
|
+
supercriticalExtrapolation?: number;
|
|
2354
|
+
fractionTc?: number;
|
|
2355
|
+
}) {
|
|
2356
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2357
|
+
this.equationNumber = options?.equationNumber;
|
|
2358
|
+
this.equationCoefficients = options?.equationCoefficients;
|
|
2359
|
+
this.calculationLimits = options?.calculationLimits;
|
|
2360
|
+
this.description = options?.description ?? "";
|
|
2361
|
+
this.equationString = options?.equationString ?? "";
|
|
2362
|
+
this.supercriticalExtrapolation = options?.supercriticalExtrapolation ?? 0;
|
|
2363
|
+
this.fractionTc = options?.fractionTc ?? 1;
|
|
2364
2364
|
}
|
|
2365
2365
|
|
|
2366
2366
|
/** Initialise the entity with data from a dictionary. */
|
|
2367
2367
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
2368
2368
|
super.initialiseFromDictionary(data);
|
|
2369
|
-
if (data.description !== undefined && typeof data.description === "string") {
|
|
2370
|
-
this.description = data.description as string;
|
|
2371
|
-
}
|
|
2372
2369
|
if (data.equationNumber !== undefined && typeof data.equationNumber === "number") {
|
|
2373
2370
|
this.equationNumber = data.equationNumber as number;
|
|
2374
2371
|
}
|
|
2375
|
-
if (data.equationString !== undefined && typeof data.equationString === "string") {
|
|
2376
|
-
this.equationString = data.equationString as string;
|
|
2377
|
-
}
|
|
2378
2372
|
if (data.equationCoefficients && Array.isArray(data.equationCoefficients)) {
|
|
2379
2373
|
this.equationCoefficients = (data.equationCoefficients ?? []).map((item) => parseFloat(item));
|
|
2380
2374
|
}
|
|
2381
2375
|
if (data.calculationLimits && Array.isArray(data.calculationLimits)) {
|
|
2382
2376
|
this.calculationLimits = (data.calculationLimits ?? []).map((item) => parseFloat(item));
|
|
2383
2377
|
}
|
|
2378
|
+
if (data.description !== undefined && typeof data.description === "string") {
|
|
2379
|
+
this.description = data.description as string;
|
|
2380
|
+
}
|
|
2381
|
+
if (data.equationString !== undefined && typeof data.equationString === "string") {
|
|
2382
|
+
this.equationString = data.equationString as string;
|
|
2383
|
+
}
|
|
2384
2384
|
if (data.supercriticalExtrapolation !== undefined && typeof data.supercriticalExtrapolation === "number") {
|
|
2385
2385
|
this.supercriticalExtrapolation = data.supercriticalExtrapolation as number;
|
|
2386
2386
|
}
|
|
@@ -2393,11 +2393,11 @@ export class MaterialComponentDataItem extends EntityBase {
|
|
|
2393
2393
|
const parts = [
|
|
2394
2394
|
super.toString(),
|
|
2395
2395
|
"* MaterialComponentDataItem",
|
|
2396
|
-
`description: ${this.description}`,
|
|
2397
2396
|
`equationNumber: ${this.equationNumber}`,
|
|
2398
|
-
`equationString: ${this.equationString}`,
|
|
2399
2397
|
this.equationCoefficients?.map((item) => item?.toString()).join("\n"),
|
|
2400
2398
|
this.calculationLimits?.map((item) => item?.toString()).join("\n"),
|
|
2399
|
+
`description: ${this.description}`,
|
|
2400
|
+
`equationString: ${this.equationString}`,
|
|
2401
2401
|
`supercriticalExtrapolation: ${this.supercriticalExtrapolation}`,
|
|
2402
2402
|
`fractionTc: ${this.fractionTc}`,
|
|
2403
2403
|
];
|
|
@@ -2421,30 +2421,27 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2421
2421
|
* @param {MaterialComponentDataItem[]} dataItem - List of data items defining the material component data.
|
|
2422
2422
|
* @param {boolean} nonStandard - Description of new property.
|
|
2423
2423
|
*/
|
|
2424
|
-
constructor(
|
|
2425
|
-
id?: string
|
|
2426
|
-
typeId?: string
|
|
2427
|
-
displayName?: string
|
|
2428
|
-
name
|
|
2429
|
-
dipprVersion?: number
|
|
2430
|
-
casId?: number
|
|
2431
|
-
dataItem
|
|
2432
|
-
nonStandard?: boolean
|
|
2433
|
-
) {
|
|
2434
|
-
super(id, typeId, displayName);
|
|
2435
|
-
this.
|
|
2436
|
-
this.
|
|
2437
|
-
this.
|
|
2438
|
-
this.
|
|
2439
|
-
this.
|
|
2424
|
+
constructor(options?: {
|
|
2425
|
+
id?: string;
|
|
2426
|
+
typeId?: string;
|
|
2427
|
+
displayName?: string;
|
|
2428
|
+
name?: string;
|
|
2429
|
+
dipprVersion?: number;
|
|
2430
|
+
casId?: number;
|
|
2431
|
+
dataItem?: MaterialComponentDataItem[];
|
|
2432
|
+
nonStandard?: boolean;
|
|
2433
|
+
}) {
|
|
2434
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2435
|
+
this.dipprVersion = options?.dipprVersion;
|
|
2436
|
+
this.casId = options?.casId;
|
|
2437
|
+
this.dataItem = options?.dataItem ?? [new MaterialComponentDataItem()];
|
|
2438
|
+
this.nonStandard = options?.nonStandard;
|
|
2439
|
+
this.name = options?.name ?? "";
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
2442
|
/** Initialise the entity with data from a dictionary. */
|
|
2443
2443
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
2444
2444
|
super.initialiseFromDictionary(data);
|
|
2445
|
-
if (data.name !== undefined && typeof data.name === "string") {
|
|
2446
|
-
this.name = data.name as string;
|
|
2447
|
-
}
|
|
2448
2445
|
if (data.dipprVersion !== undefined && typeof data.dipprVersion === "number") {
|
|
2449
2446
|
this.dipprVersion = data.dipprVersion as number;
|
|
2450
2447
|
}
|
|
@@ -2463,17 +2460,20 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2463
2460
|
if (data.nonStandard !== undefined && typeof data.nonStandard === "boolean") {
|
|
2464
2461
|
this.nonStandard = data.nonStandard as boolean;
|
|
2465
2462
|
}
|
|
2463
|
+
if (data.name !== undefined && typeof data.name === "string") {
|
|
2464
|
+
this.name = data.name as string;
|
|
2465
|
+
}
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
toString() {
|
|
2469
2469
|
const parts = [
|
|
2470
2470
|
super.toString(),
|
|
2471
2471
|
"* MaterialComponentData",
|
|
2472
|
-
`name: ${this.name}`,
|
|
2473
2472
|
`dipprVersion: ${this.dipprVersion}`,
|
|
2474
2473
|
`casId: ${this.casId}`,
|
|
2475
2474
|
this.dataItem?.map((item) => item?.toString()).join("\n"),
|
|
2476
2475
|
`nonStandard: ${this.nonStandard}`,
|
|
2476
|
+
`name: ${this.name}`,
|
|
2477
2477
|
];
|
|
2478
2478
|
return parts.join("\n");
|
|
2479
2479
|
}
|
|
@@ -2517,44 +2517,44 @@ export class MixtureConstantPropertiesResult extends EntityBase {
|
|
|
2517
2517
|
* @param {Enums.FlammableToxic} flammableToxicFlag - Whether a material is flammable, toxic, both or inert. (default value is Enums.FlammableToxic.INERT)
|
|
2518
2518
|
* @param {Enums.LuminousSmokyFlame} luminousSmokyFlame - A flag to indicate whether a flame is luminous or smoky. (default value is Enums.LuminousSmokyFlame.GENERAL)
|
|
2519
2519
|
*/
|
|
2520
|
-
constructor(
|
|
2521
|
-
id?: string
|
|
2522
|
-
typeId?: string
|
|
2523
|
-
displayName?: string
|
|
2524
|
-
lowerFlammabilityLimit?: number
|
|
2525
|
-
upperFlammabilityLimit?: number
|
|
2526
|
-
criticalPressure?: number
|
|
2527
|
-
criticalTemperature?: number
|
|
2528
|
-
flashPoint?: number
|
|
2529
|
-
heatCombustion?: number
|
|
2530
|
-
maximumBurnRate?: number
|
|
2531
|
-
maximumSEP?: number
|
|
2532
|
-
molecularWeight?: number
|
|
2533
|
-
bubblePoint?: number
|
|
2534
|
-
poolFireBurnRateLength?: number
|
|
2535
|
-
dewPoint?: number
|
|
2536
|
-
emissivePowerLengthScale?: number
|
|
2537
|
-
laminarBurningVelocity?: number
|
|
2538
|
-
flammableToxicFlag
|
|
2539
|
-
luminousSmokyFlame
|
|
2540
|
-
) {
|
|
2541
|
-
super(id, typeId, displayName);
|
|
2542
|
-
this.lowerFlammabilityLimit = lowerFlammabilityLimit;
|
|
2543
|
-
this.upperFlammabilityLimit = upperFlammabilityLimit;
|
|
2544
|
-
this.criticalPressure = criticalPressure;
|
|
2545
|
-
this.criticalTemperature = criticalTemperature;
|
|
2546
|
-
this.flashPoint = flashPoint;
|
|
2547
|
-
this.heatCombustion = heatCombustion;
|
|
2548
|
-
this.maximumBurnRate = maximumBurnRate;
|
|
2549
|
-
this.maximumSEP = maximumSEP;
|
|
2550
|
-
this.molecularWeight = molecularWeight;
|
|
2551
|
-
this.bubblePoint = bubblePoint;
|
|
2552
|
-
this.poolFireBurnRateLength = poolFireBurnRateLength;
|
|
2553
|
-
this.dewPoint = dewPoint;
|
|
2554
|
-
this.emissivePowerLengthScale = emissivePowerLengthScale;
|
|
2555
|
-
this.laminarBurningVelocity = laminarBurningVelocity;
|
|
2556
|
-
this.flammableToxicFlag = flammableToxicFlag;
|
|
2557
|
-
this.luminousSmokyFlame = luminousSmokyFlame;
|
|
2520
|
+
constructor(options?: {
|
|
2521
|
+
id?: string;
|
|
2522
|
+
typeId?: string;
|
|
2523
|
+
displayName?: string;
|
|
2524
|
+
lowerFlammabilityLimit?: number;
|
|
2525
|
+
upperFlammabilityLimit?: number;
|
|
2526
|
+
criticalPressure?: number;
|
|
2527
|
+
criticalTemperature?: number;
|
|
2528
|
+
flashPoint?: number;
|
|
2529
|
+
heatCombustion?: number;
|
|
2530
|
+
maximumBurnRate?: number;
|
|
2531
|
+
maximumSEP?: number;
|
|
2532
|
+
molecularWeight?: number;
|
|
2533
|
+
bubblePoint?: number;
|
|
2534
|
+
poolFireBurnRateLength?: number;
|
|
2535
|
+
dewPoint?: number;
|
|
2536
|
+
emissivePowerLengthScale?: number;
|
|
2537
|
+
laminarBurningVelocity?: number;
|
|
2538
|
+
flammableToxicFlag?: Enums.FlammableToxic;
|
|
2539
|
+
luminousSmokyFlame?: Enums.LuminousSmokyFlame;
|
|
2540
|
+
}) {
|
|
2541
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2542
|
+
this.lowerFlammabilityLimit = options?.lowerFlammabilityLimit;
|
|
2543
|
+
this.upperFlammabilityLimit = options?.upperFlammabilityLimit;
|
|
2544
|
+
this.criticalPressure = options?.criticalPressure;
|
|
2545
|
+
this.criticalTemperature = options?.criticalTemperature;
|
|
2546
|
+
this.flashPoint = options?.flashPoint;
|
|
2547
|
+
this.heatCombustion = options?.heatCombustion;
|
|
2548
|
+
this.maximumBurnRate = options?.maximumBurnRate;
|
|
2549
|
+
this.maximumSEP = options?.maximumSEP;
|
|
2550
|
+
this.molecularWeight = options?.molecularWeight;
|
|
2551
|
+
this.bubblePoint = options?.bubblePoint;
|
|
2552
|
+
this.poolFireBurnRateLength = options?.poolFireBurnRateLength;
|
|
2553
|
+
this.dewPoint = options?.dewPoint;
|
|
2554
|
+
this.emissivePowerLengthScale = options?.emissivePowerLengthScale;
|
|
2555
|
+
this.laminarBurningVelocity = options?.laminarBurningVelocity;
|
|
2556
|
+
this.flammableToxicFlag = options?.flammableToxicFlag ?? Enums.FlammableToxic.INERT;
|
|
2557
|
+
this.luminousSmokyFlame = options?.luminousSmokyFlame ?? Enums.LuminousSmokyFlame.GENERAL;
|
|
2558
2558
|
}
|
|
2559
2559
|
|
|
2560
2560
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2665,27 +2665,27 @@ export class Pipe extends Asset {
|
|
|
2665
2665
|
* @param {number} roughness - A measure of the roughness of internal surfaces of the pipe. (default value is 4.5e-5)
|
|
2666
2666
|
* @param {number} pumpedInflow - Flowrate along the pipeline under normal operating conditions. (default value is 0)
|
|
2667
2667
|
*/
|
|
2668
|
-
constructor(
|
|
2669
|
-
id?: string
|
|
2670
|
-
typeId?: string
|
|
2671
|
-
displayName?: string
|
|
2672
|
-
location
|
|
2673
|
-
nodes
|
|
2674
|
-
nodeCount?: number
|
|
2675
|
-
diameter?: number
|
|
2676
|
-
material
|
|
2677
|
-
state
|
|
2678
|
-
roughness
|
|
2679
|
-
pumpedInflow
|
|
2680
|
-
) {
|
|
2681
|
-
|
|
2682
|
-
this.nodes = nodes;
|
|
2683
|
-
this.nodeCount = nodeCount;
|
|
2684
|
-
this.diameter = diameter;
|
|
2685
|
-
this.material = material;
|
|
2686
|
-
this.state = state;
|
|
2687
|
-
this.roughness = roughness;
|
|
2688
|
-
this.pumpedInflow = pumpedInflow;
|
|
2668
|
+
constructor(options?: {
|
|
2669
|
+
id?: string;
|
|
2670
|
+
typeId?: string;
|
|
2671
|
+
displayName?: string;
|
|
2672
|
+
location?: LocalPosition;
|
|
2673
|
+
nodes?: LocalPosition[];
|
|
2674
|
+
nodeCount?: number;
|
|
2675
|
+
diameter?: number;
|
|
2676
|
+
material?: Material;
|
|
2677
|
+
state?: State;
|
|
2678
|
+
roughness?: number;
|
|
2679
|
+
pumpedInflow?: number;
|
|
2680
|
+
}) {
|
|
2681
|
+
super(options);
|
|
2682
|
+
this.nodes = options?.nodes ?? [new LocalPosition()];
|
|
2683
|
+
this.nodeCount = options?.nodeCount;
|
|
2684
|
+
this.diameter = options?.diameter;
|
|
2685
|
+
this.material = options?.material ?? new Material();
|
|
2686
|
+
this.state = options?.state ?? new State();
|
|
2687
|
+
this.roughness = options?.roughness ?? 4.5e-5;
|
|
2688
|
+
this.pumpedInflow = options?.pumpedInflow ?? 0;
|
|
2689
2689
|
}
|
|
2690
2690
|
|
|
2691
2691
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2751,18 +2751,18 @@ export class PipeBreach extends ReleaseOverTime {
|
|
|
2751
2751
|
* @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)
|
|
2752
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)
|
|
2753
2753
|
*/
|
|
2754
|
-
constructor(
|
|
2755
|
-
id?: string
|
|
2756
|
-
typeId?: string
|
|
2757
|
-
displayName?: string
|
|
2758
|
-
distanceDownstream?: number
|
|
2759
|
-
releaseAngle
|
|
2760
|
-
timeVaryingOption
|
|
2761
|
-
relativeAperture
|
|
2762
|
-
) {
|
|
2763
|
-
|
|
2764
|
-
this.distanceDownstream = distanceDownstream;
|
|
2765
|
-
this.relativeAperture = relativeAperture;
|
|
2754
|
+
constructor(options?: {
|
|
2755
|
+
id?: string;
|
|
2756
|
+
typeId?: string;
|
|
2757
|
+
displayName?: string;
|
|
2758
|
+
distanceDownstream?: number;
|
|
2759
|
+
releaseAngle?: number;
|
|
2760
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
2761
|
+
relativeAperture?: number;
|
|
2762
|
+
}) {
|
|
2763
|
+
super(options);
|
|
2764
|
+
this.distanceDownstream = options?.distanceDownstream;
|
|
2765
|
+
this.relativeAperture = options?.relativeAperture ?? 1;
|
|
2766
2766
|
}
|
|
2767
2767
|
|
|
2768
2768
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2802,19 +2802,19 @@ export class PoolFireFlameResult extends FlameResult {
|
|
|
2802
2802
|
* @param {number[]} poolZoneSEP - Surface emissive power from each of the two pool fire zones.
|
|
2803
2803
|
* @param {Enums.FireType} fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
|
|
2804
2804
|
*/
|
|
2805
|
-
constructor(
|
|
2806
|
-
id?: string
|
|
2807
|
-
typeId?: string
|
|
2808
|
-
displayName?: string
|
|
2809
|
-
time?: number
|
|
2810
|
-
surfaceEmissivePower?: number
|
|
2811
|
-
flameLength?: number
|
|
2812
|
-
flameDiameter?: number
|
|
2813
|
-
poolZoneSEP?: number[]
|
|
2814
|
-
fireType
|
|
2815
|
-
) {
|
|
2816
|
-
|
|
2817
|
-
this.poolZoneSEP = poolZoneSEP;
|
|
2805
|
+
constructor(options?: {
|
|
2806
|
+
id?: string;
|
|
2807
|
+
typeId?: string;
|
|
2808
|
+
displayName?: string;
|
|
2809
|
+
time?: number;
|
|
2810
|
+
surfaceEmissivePower?: number;
|
|
2811
|
+
flameLength?: number;
|
|
2812
|
+
flameDiameter?: number;
|
|
2813
|
+
poolZoneSEP?: number[];
|
|
2814
|
+
fireType?: Enums.FireType;
|
|
2815
|
+
}) {
|
|
2816
|
+
super(options);
|
|
2817
|
+
this.poolZoneSEP = options?.poolZoneSEP;
|
|
2818
2818
|
}
|
|
2819
2819
|
|
|
2820
2820
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2872,38 +2872,38 @@ export class PoolRecord extends EntityBase {
|
|
|
2872
2872
|
* @param {number} actualRadius - The radius of the pool formed.
|
|
2873
2873
|
* @param {number} poolCentre - The downwind distance at which rainout occurs and a pool is formed.
|
|
2874
2874
|
*/
|
|
2875
|
-
constructor(
|
|
2876
|
-
id?: string
|
|
2877
|
-
typeId?: string
|
|
2878
|
-
displayName?: string
|
|
2879
|
-
time?: number
|
|
2880
|
-
massSpilt?: number
|
|
2881
|
-
massVaporised?: number
|
|
2882
|
-
massDissolved?: number
|
|
2883
|
-
massRemaining?: number
|
|
2884
|
-
vapourisationRate?: number
|
|
2885
|
-
solutionRate?: number
|
|
2886
|
-
effectiveRadius?: number
|
|
2887
|
-
depth?: number
|
|
2888
|
-
temperature?: number
|
|
2889
|
-
spillRate?: number
|
|
2890
|
-
actualRadius?: number
|
|
2891
|
-
poolCentre?: number
|
|
2892
|
-
) {
|
|
2893
|
-
super(id, typeId, displayName);
|
|
2894
|
-
this.time = time;
|
|
2895
|
-
this.massSpilt = massSpilt;
|
|
2896
|
-
this.massVaporised = massVaporised;
|
|
2897
|
-
this.massDissolved = massDissolved;
|
|
2898
|
-
this.massRemaining = massRemaining;
|
|
2899
|
-
this.vapourisationRate = vapourisationRate;
|
|
2900
|
-
this.solutionRate = solutionRate;
|
|
2901
|
-
this.effectiveRadius = effectiveRadius;
|
|
2902
|
-
this.depth = depth;
|
|
2903
|
-
this.temperature = temperature;
|
|
2904
|
-
this.spillRate = spillRate;
|
|
2905
|
-
this.actualRadius = actualRadius;
|
|
2906
|
-
this.poolCentre = poolCentre;
|
|
2875
|
+
constructor(options?: {
|
|
2876
|
+
id?: string;
|
|
2877
|
+
typeId?: string;
|
|
2878
|
+
displayName?: string;
|
|
2879
|
+
time?: number;
|
|
2880
|
+
massSpilt?: number;
|
|
2881
|
+
massVaporised?: number;
|
|
2882
|
+
massDissolved?: number;
|
|
2883
|
+
massRemaining?: number;
|
|
2884
|
+
vapourisationRate?: number;
|
|
2885
|
+
solutionRate?: number;
|
|
2886
|
+
effectiveRadius?: number;
|
|
2887
|
+
depth?: number;
|
|
2888
|
+
temperature?: number;
|
|
2889
|
+
spillRate?: number;
|
|
2890
|
+
actualRadius?: number;
|
|
2891
|
+
poolCentre?: number;
|
|
2892
|
+
}) {
|
|
2893
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2894
|
+
this.time = options?.time;
|
|
2895
|
+
this.massSpilt = options?.massSpilt;
|
|
2896
|
+
this.massVaporised = options?.massVaporised;
|
|
2897
|
+
this.massDissolved = options?.massDissolved;
|
|
2898
|
+
this.massRemaining = options?.massRemaining;
|
|
2899
|
+
this.vapourisationRate = options?.vapourisationRate;
|
|
2900
|
+
this.solutionRate = options?.solutionRate;
|
|
2901
|
+
this.effectiveRadius = options?.effectiveRadius;
|
|
2902
|
+
this.depth = options?.depth;
|
|
2903
|
+
this.temperature = options?.temperature;
|
|
2904
|
+
this.spillRate = options?.spillRate;
|
|
2905
|
+
this.actualRadius = options?.actualRadius;
|
|
2906
|
+
this.poolCentre = options?.poolCentre;
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
2909
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -2984,18 +2984,18 @@ export class PoolVapourisationParameters extends EntityBase {
|
|
|
2984
2984
|
* @param {number} flammableCutoffRate - The rate below which pool vaporisation calculations for flammable releases stop and any remaining mass in the pool contributes to pool fire effects only. (default value is 0.1)
|
|
2985
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)
|
|
2986
2986
|
*/
|
|
2987
|
-
constructor(
|
|
2988
|
-
id?: string
|
|
2989
|
-
typeId?: string
|
|
2990
|
-
displayName?: string
|
|
2991
|
-
toxicsCutoffRate
|
|
2992
|
-
flammableCutoffRate
|
|
2993
|
-
relativeTolerance
|
|
2994
|
-
) {
|
|
2995
|
-
super(id, typeId, displayName);
|
|
2996
|
-
this.toxicsCutoffRate = toxicsCutoffRate;
|
|
2997
|
-
this.flammableCutoffRate = flammableCutoffRate;
|
|
2998
|
-
this.relativeTolerance = relativeTolerance;
|
|
2987
|
+
constructor(options?: {
|
|
2988
|
+
id?: string;
|
|
2989
|
+
typeId?: string;
|
|
2990
|
+
displayName?: string;
|
|
2991
|
+
toxicsCutoffRate?: number;
|
|
2992
|
+
flammableCutoffRate?: number;
|
|
2993
|
+
relativeTolerance?: number;
|
|
2994
|
+
}) {
|
|
2995
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
2996
|
+
this.toxicsCutoffRate = options?.toxicsCutoffRate ?? 0.001;
|
|
2997
|
+
this.flammableCutoffRate = options?.flammableCutoffRate ?? 0.1;
|
|
2998
|
+
this.relativeTolerance = options?.relativeTolerance ?? 0.001;
|
|
2999
2999
|
}
|
|
3000
3000
|
|
|
3001
3001
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3036,18 +3036,18 @@ export class RadiationRecord extends EntityBase {
|
|
|
3036
3036
|
* @param {number} radiationResult - The value for the RadiationType at the specified position.
|
|
3037
3037
|
* @param {Enums.RadiationType} radiationType - The type of radiation result of interest. (default value is Enums.RadiationType.UNSET)
|
|
3038
3038
|
*/
|
|
3039
|
-
constructor(
|
|
3040
|
-
id?: string
|
|
3041
|
-
typeId?: string
|
|
3042
|
-
displayName?: string
|
|
3043
|
-
position
|
|
3044
|
-
radiationResult?: number
|
|
3045
|
-
radiationType
|
|
3046
|
-
) {
|
|
3047
|
-
super(id, typeId, displayName);
|
|
3048
|
-
this.position = position;
|
|
3049
|
-
this.radiationResult = radiationResult;
|
|
3050
|
-
this.radiationType = radiationType;
|
|
3039
|
+
constructor(options?: {
|
|
3040
|
+
id?: string;
|
|
3041
|
+
typeId?: string;
|
|
3042
|
+
displayName?: string;
|
|
3043
|
+
position?: LocalPosition;
|
|
3044
|
+
radiationResult?: number;
|
|
3045
|
+
radiationType?: Enums.RadiationType;
|
|
3046
|
+
}) {
|
|
3047
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3048
|
+
this.position = options?.position ?? new LocalPosition();
|
|
3049
|
+
this.radiationResult = options?.radiationResult;
|
|
3050
|
+
this.radiationType = options?.radiationType ?? Enums.RadiationType.UNSET;
|
|
3051
3051
|
}
|
|
3052
3052
|
|
|
3053
3053
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3104,24 +3104,24 @@ export class ReliefValve extends ReleaseOverTime {
|
|
|
3104
3104
|
* @param {number} pipeRoughness - Roughness of the short pipe. (default value is 0.000045)
|
|
3105
3105
|
* @param {number} pipeHeightFraction - Location of the pipe connection above the base of the vessel. (default value is 0.5)
|
|
3106
3106
|
*/
|
|
3107
|
-
constructor(
|
|
3108
|
-
id?: string
|
|
3109
|
-
typeId?: string
|
|
3110
|
-
displayName?: string
|
|
3111
|
-
reliefValveConstrictionDiameter?: number
|
|
3112
|
-
pipeDiameter?: number
|
|
3113
|
-
pipeLength?: number
|
|
3114
|
-
releaseAngle
|
|
3115
|
-
timeVaryingOption
|
|
3116
|
-
pipeRoughness
|
|
3117
|
-
pipeHeightFraction
|
|
3118
|
-
) {
|
|
3119
|
-
|
|
3120
|
-
this.reliefValveConstrictionDiameter = reliefValveConstrictionDiameter;
|
|
3121
|
-
this.pipeDiameter = pipeDiameter;
|
|
3122
|
-
this.pipeLength = pipeLength;
|
|
3123
|
-
this.pipeRoughness = pipeRoughness;
|
|
3124
|
-
this.pipeHeightFraction = pipeHeightFraction;
|
|
3107
|
+
constructor(options?: {
|
|
3108
|
+
id?: string;
|
|
3109
|
+
typeId?: string;
|
|
3110
|
+
displayName?: string;
|
|
3111
|
+
reliefValveConstrictionDiameter?: number;
|
|
3112
|
+
pipeDiameter?: number;
|
|
3113
|
+
pipeLength?: number;
|
|
3114
|
+
releaseAngle?: number;
|
|
3115
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
3116
|
+
pipeRoughness?: number;
|
|
3117
|
+
pipeHeightFraction?: number;
|
|
3118
|
+
}) {
|
|
3119
|
+
super(options);
|
|
3120
|
+
this.reliefValveConstrictionDiameter = options?.reliefValveConstrictionDiameter;
|
|
3121
|
+
this.pipeDiameter = options?.pipeDiameter;
|
|
3122
|
+
this.pipeLength = options?.pipeLength;
|
|
3123
|
+
this.pipeRoughness = options?.pipeRoughness ?? 0.000045;
|
|
3124
|
+
this.pipeHeightFraction = options?.pipeHeightFraction ?? 0.5;
|
|
3125
3125
|
}
|
|
3126
3126
|
|
|
3127
3127
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3178,24 +3178,24 @@ export class SafetySystem extends EntityBase {
|
|
|
3178
3178
|
* @param {boolean} blowdownSuccess - Does blowdown succeed?. (default value is false)
|
|
3179
3179
|
* @param {number} blowdownValveSize - Diameter of blowdown valve. (default value is 0.025)
|
|
3180
3180
|
*/
|
|
3181
|
-
constructor(
|
|
3182
|
-
id?: string
|
|
3183
|
-
typeId?: string
|
|
3184
|
-
displayName?: string
|
|
3185
|
-
isolationTime
|
|
3186
|
-
isolationSuccess
|
|
3187
|
-
massAddedIsolationFailure
|
|
3188
|
-
blowdownTime
|
|
3189
|
-
blowdownSuccess
|
|
3190
|
-
blowdownValveSize
|
|
3191
|
-
) {
|
|
3192
|
-
super(id, typeId, displayName);
|
|
3193
|
-
this.isolationTime = isolationTime;
|
|
3194
|
-
this.isolationSuccess = isolationSuccess;
|
|
3195
|
-
this.massAddedIsolationFailure = massAddedIsolationFailure;
|
|
3196
|
-
this.blowdownTime = blowdownTime;
|
|
3197
|
-
this.blowdownSuccess = blowdownSuccess;
|
|
3198
|
-
this.blowdownValveSize = blowdownValveSize;
|
|
3181
|
+
constructor(options?: {
|
|
3182
|
+
id?: string;
|
|
3183
|
+
typeId?: string;
|
|
3184
|
+
displayName?: string;
|
|
3185
|
+
isolationTime?: number;
|
|
3186
|
+
isolationSuccess?: boolean;
|
|
3187
|
+
massAddedIsolationFailure?: number;
|
|
3188
|
+
blowdownTime?: number;
|
|
3189
|
+
blowdownSuccess?: boolean;
|
|
3190
|
+
blowdownValveSize?: number;
|
|
3191
|
+
}) {
|
|
3192
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3193
|
+
this.isolationTime = options?.isolationTime ?? 0.0;
|
|
3194
|
+
this.isolationSuccess = options?.isolationSuccess ?? true;
|
|
3195
|
+
this.massAddedIsolationFailure = options?.massAddedIsolationFailure ?? 0.0;
|
|
3196
|
+
this.blowdownTime = options?.blowdownTime ?? 0.0;
|
|
3197
|
+
this.blowdownSuccess = options?.blowdownSuccess ?? false;
|
|
3198
|
+
this.blowdownValveSize = options?.blowdownValveSize ?? 0.025;
|
|
3199
3199
|
}
|
|
3200
3200
|
|
|
3201
3201
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3256,26 +3256,26 @@ export class ScalarUdmOutputs extends EntityBase {
|
|
|
3256
3256
|
* @param {number} dispersionReleaseDuration - The time at which the last observer is released.
|
|
3257
3257
|
* @param {Enums.DynamicType} cloudType - Type of release or cloud. (default value is Enums.DynamicType.UNSET)
|
|
3258
3258
|
*/
|
|
3259
|
-
constructor(
|
|
3260
|
-
id?: string
|
|
3261
|
-
typeId?: string
|
|
3262
|
-
displayName?: string
|
|
3263
|
-
observerCount?: number
|
|
3264
|
-
recordCount?: number
|
|
3265
|
-
minimumConcentration?: number
|
|
3266
|
-
windPower?: number
|
|
3267
|
-
frictionVelocity?: number
|
|
3268
|
-
dispersionReleaseDuration?: number
|
|
3269
|
-
cloudType
|
|
3270
|
-
) {
|
|
3271
|
-
super(id, typeId, displayName);
|
|
3272
|
-
this.observerCount = observerCount;
|
|
3273
|
-
this.recordCount = recordCount;
|
|
3274
|
-
this.minimumConcentration = minimumConcentration;
|
|
3275
|
-
this.windPower = windPower;
|
|
3276
|
-
this.frictionVelocity = frictionVelocity;
|
|
3277
|
-
this.dispersionReleaseDuration = dispersionReleaseDuration;
|
|
3278
|
-
this.cloudType = cloudType;
|
|
3259
|
+
constructor(options?: {
|
|
3260
|
+
id?: string;
|
|
3261
|
+
typeId?: string;
|
|
3262
|
+
displayName?: string;
|
|
3263
|
+
observerCount?: number;
|
|
3264
|
+
recordCount?: number;
|
|
3265
|
+
minimumConcentration?: number;
|
|
3266
|
+
windPower?: number;
|
|
3267
|
+
frictionVelocity?: number;
|
|
3268
|
+
dispersionReleaseDuration?: number;
|
|
3269
|
+
cloudType?: Enums.DynamicType;
|
|
3270
|
+
}) {
|
|
3271
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3272
|
+
this.observerCount = options?.observerCount;
|
|
3273
|
+
this.recordCount = options?.recordCount;
|
|
3274
|
+
this.minimumConcentration = options?.minimumConcentration;
|
|
3275
|
+
this.windPower = options?.windPower;
|
|
3276
|
+
this.frictionVelocity = options?.frictionVelocity;
|
|
3277
|
+
this.dispersionReleaseDuration = options?.dispersionReleaseDuration;
|
|
3278
|
+
this.cloudType = options?.cloudType ?? Enums.DynamicType.UNSET;
|
|
3279
3279
|
}
|
|
3280
3280
|
|
|
3281
3281
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3345,22 +3345,22 @@ export class ShortPipeRupture extends ReleaseOverTime {
|
|
|
3345
3345
|
* @param {number} pipeRoughness - Roughness of the short pipe. (default value is 0.000045)
|
|
3346
3346
|
* @param {number} pipeHeightFraction - Location of the pipe connection above the base of the vessel. (default value is 0.5)
|
|
3347
3347
|
*/
|
|
3348
|
-
constructor(
|
|
3349
|
-
id?: string
|
|
3350
|
-
typeId?: string
|
|
3351
|
-
displayName?: string
|
|
3352
|
-
pipeLength?: number
|
|
3353
|
-
pipeDiameter?: number
|
|
3354
|
-
releaseAngle
|
|
3355
|
-
timeVaryingOption
|
|
3356
|
-
pipeRoughness
|
|
3357
|
-
pipeHeightFraction
|
|
3358
|
-
) {
|
|
3359
|
-
|
|
3360
|
-
this.pipeLength = pipeLength;
|
|
3361
|
-
this.pipeDiameter = pipeDiameter;
|
|
3362
|
-
this.pipeRoughness = pipeRoughness;
|
|
3363
|
-
this.pipeHeightFraction = pipeHeightFraction;
|
|
3348
|
+
constructor(options?: {
|
|
3349
|
+
id?: string;
|
|
3350
|
+
typeId?: string;
|
|
3351
|
+
displayName?: string;
|
|
3352
|
+
pipeLength?: number;
|
|
3353
|
+
pipeDiameter?: number;
|
|
3354
|
+
releaseAngle?: number;
|
|
3355
|
+
timeVaryingOption?: Enums.TimeVaryingOption;
|
|
3356
|
+
pipeRoughness?: number;
|
|
3357
|
+
pipeHeightFraction?: number;
|
|
3358
|
+
}) {
|
|
3359
|
+
super(options);
|
|
3360
|
+
this.pipeLength = options?.pipeLength;
|
|
3361
|
+
this.pipeDiameter = options?.pipeDiameter;
|
|
3362
|
+
this.pipeRoughness = options?.pipeRoughness ?? 0.000045;
|
|
3363
|
+
this.pipeHeightFraction = options?.pipeHeightFraction ?? 0.5;
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
3366
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3405,16 +3405,16 @@ export class Structure extends EntityBase {
|
|
|
3405
3405
|
* @param {ExplosionConfinedVolume} explosionConfinedVolume - Confined explosion volume data.
|
|
3406
3406
|
* @param {LocalPosition} location - Location of the structure.
|
|
3407
3407
|
*/
|
|
3408
|
-
constructor(
|
|
3409
|
-
id?: string
|
|
3410
|
-
typeId?: string
|
|
3411
|
-
displayName?: string
|
|
3412
|
-
explosionConfinedVolume
|
|
3413
|
-
location
|
|
3414
|
-
) {
|
|
3415
|
-
super(id, typeId, displayName);
|
|
3416
|
-
this.explosionConfinedVolume = explosionConfinedVolume;
|
|
3417
|
-
this.location = location;
|
|
3408
|
+
constructor(options?: {
|
|
3409
|
+
id?: string;
|
|
3410
|
+
typeId?: string;
|
|
3411
|
+
displayName?: string;
|
|
3412
|
+
explosionConfinedVolume?: ExplosionConfinedVolume;
|
|
3413
|
+
location?: LocalPosition;
|
|
3414
|
+
}) {
|
|
3415
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3416
|
+
this.explosionConfinedVolume = options?.explosionConfinedVolume ?? new ExplosionConfinedVolume();
|
|
3417
|
+
this.location = options?.location ?? new LocalPosition();
|
|
3418
3418
|
}
|
|
3419
3419
|
|
|
3420
3420
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3455,20 +3455,20 @@ export class Substrate extends EntityBase {
|
|
|
3455
3455
|
* @param {Enums.SurfaceType} surfaceType - Surface over which the dispersion occurs. (default value is Enums.SurfaceType.LAND)
|
|
3456
3456
|
* @param {Enums.PoolSurfaceType} poolSurfaceType - Surface onto which the liquid which rains out will spread. (default value is Enums.PoolSurfaceType.CONCRETE)
|
|
3457
3457
|
*/
|
|
3458
|
-
constructor(
|
|
3459
|
-
id?: string
|
|
3460
|
-
typeId?: string
|
|
3461
|
-
displayName?: string
|
|
3462
|
-
bund
|
|
3463
|
-
surfaceRoughness
|
|
3464
|
-
surfaceType
|
|
3465
|
-
poolSurfaceType
|
|
3466
|
-
) {
|
|
3467
|
-
super(id, typeId, displayName);
|
|
3468
|
-
this.bund = bund;
|
|
3469
|
-
this.surfaceRoughness = surfaceRoughness;
|
|
3470
|
-
this.surfaceType = surfaceType;
|
|
3471
|
-
this.poolSurfaceType = poolSurfaceType;
|
|
3458
|
+
constructor(options?: {
|
|
3459
|
+
id?: string;
|
|
3460
|
+
typeId?: string;
|
|
3461
|
+
displayName?: string;
|
|
3462
|
+
bund?: Bund;
|
|
3463
|
+
surfaceRoughness?: number;
|
|
3464
|
+
surfaceType?: Enums.SurfaceType;
|
|
3465
|
+
poolSurfaceType?: Enums.PoolSurfaceType;
|
|
3466
|
+
}) {
|
|
3467
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3468
|
+
this.bund = options?.bund ?? new Bund();
|
|
3469
|
+
this.surfaceRoughness = options?.surfaceRoughness ?? 0.183;
|
|
3470
|
+
this.surfaceType = options?.surfaceType ?? Enums.SurfaceType.LAND;
|
|
3471
|
+
this.poolSurfaceType = options?.poolSurfaceType ?? Enums.PoolSurfaceType.CONCRETE;
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
3474
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3523,18 +3523,18 @@ export class ToxicRecord extends EntityBase {
|
|
|
3523
3523
|
* @param {number} toxicResult - The value for the ToxicResultType at the specified position.
|
|
3524
3524
|
* @param {Enums.ToxicResultType} toxicResultType - The type of toxic result. (default value is Enums.ToxicResultType.UNSET)
|
|
3525
3525
|
*/
|
|
3526
|
-
constructor(
|
|
3527
|
-
id?: string
|
|
3528
|
-
typeId?: string
|
|
3529
|
-
displayName?: string
|
|
3530
|
-
position
|
|
3531
|
-
toxicResult?: number
|
|
3532
|
-
toxicResultType
|
|
3533
|
-
) {
|
|
3534
|
-
super(id, typeId, displayName);
|
|
3535
|
-
this.position = position;
|
|
3536
|
-
this.toxicResult = toxicResult;
|
|
3537
|
-
this.toxicResultType = toxicResultType;
|
|
3526
|
+
constructor(options?: {
|
|
3527
|
+
id?: string;
|
|
3528
|
+
typeId?: string;
|
|
3529
|
+
displayName?: string;
|
|
3530
|
+
position?: LocalPosition;
|
|
3531
|
+
toxicResult?: number;
|
|
3532
|
+
toxicResultType?: Enums.ToxicResultType;
|
|
3533
|
+
}) {
|
|
3534
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3535
|
+
this.position = options?.position ?? new LocalPosition();
|
|
3536
|
+
this.toxicResult = options?.toxicResult;
|
|
3537
|
+
this.toxicResultType = options?.toxicResultType ?? Enums.ToxicResultType.UNSET;
|
|
3538
3538
|
}
|
|
3539
3539
|
|
|
3540
3540
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3600,33 +3600,33 @@ export class Vessel extends Asset {
|
|
|
3600
3600
|
* @param {Enums.VesselConditions} vesselConditions - The conditions inside the vessel. (default value is Enums.VesselConditions.UNSET)
|
|
3601
3601
|
* @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)
|
|
3602
3602
|
*/
|
|
3603
|
-
constructor(
|
|
3604
|
-
id?: string
|
|
3605
|
-
typeId?: string
|
|
3606
|
-
displayName?: string
|
|
3607
|
-
location
|
|
3608
|
-
state
|
|
3609
|
-
material
|
|
3610
|
-
safetySystem
|
|
3611
|
-
diameter
|
|
3612
|
-
height
|
|
3613
|
-
length
|
|
3614
|
-
width
|
|
3615
|
-
shape
|
|
3616
|
-
vesselConditions
|
|
3617
|
-
liquidFillFractionByVolume
|
|
3618
|
-
) {
|
|
3619
|
-
|
|
3620
|
-
this.state = state;
|
|
3621
|
-
this.material = material;
|
|
3622
|
-
this.safetySystem = safetySystem;
|
|
3623
|
-
this.diameter = diameter;
|
|
3624
|
-
this.height = height;
|
|
3625
|
-
this.length = length;
|
|
3626
|
-
this.width = width;
|
|
3627
|
-
this.shape = shape;
|
|
3628
|
-
this.vesselConditions = vesselConditions;
|
|
3629
|
-
this.liquidFillFractionByVolume = liquidFillFractionByVolume;
|
|
3603
|
+
constructor(options?: {
|
|
3604
|
+
id?: string;
|
|
3605
|
+
typeId?: string;
|
|
3606
|
+
displayName?: string;
|
|
3607
|
+
location?: LocalPosition;
|
|
3608
|
+
state?: State;
|
|
3609
|
+
material?: Material;
|
|
3610
|
+
safetySystem?: SafetySystem;
|
|
3611
|
+
diameter?: number;
|
|
3612
|
+
height?: number;
|
|
3613
|
+
length?: number;
|
|
3614
|
+
width?: number;
|
|
3615
|
+
shape?: Enums.VesselShape;
|
|
3616
|
+
vesselConditions?: Enums.VesselConditions;
|
|
3617
|
+
liquidFillFractionByVolume?: number;
|
|
3618
|
+
}) {
|
|
3619
|
+
super(options);
|
|
3620
|
+
this.state = options?.state ?? new State();
|
|
3621
|
+
this.material = options?.material ?? new Material();
|
|
3622
|
+
this.safetySystem = options?.safetySystem ?? new SafetySystem();
|
|
3623
|
+
this.diameter = options?.diameter ?? 2;
|
|
3624
|
+
this.height = options?.height ?? 4;
|
|
3625
|
+
this.length = options?.length ?? 4;
|
|
3626
|
+
this.width = options?.width ?? 0.0;
|
|
3627
|
+
this.shape = options?.shape ?? Enums.VesselShape.HORIZONTAL_CYLINDER;
|
|
3628
|
+
this.vesselConditions = options?.vesselConditions ?? Enums.VesselConditions.UNSET;
|
|
3629
|
+
this.liquidFillFractionByVolume = options?.liquidFillFractionByVolume ?? 0.0;
|
|
3630
3630
|
}
|
|
3631
3631
|
|
|
3632
3632
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3714,24 +3714,24 @@ export class VesselLeakMaxFlammableCloudResults extends EntityBase {
|
|
|
3714
3714
|
* @param {number} lflHeight - Height of the maximum LFL extent.
|
|
3715
3715
|
* @param {Enums.Phase} phase - Post atmospheric expansion fluid phase. (default value is Enums.Phase.UNSET)
|
|
3716
3716
|
*/
|
|
3717
|
-
constructor(
|
|
3718
|
-
id?: string
|
|
3719
|
-
typeId?: string
|
|
3720
|
-
displayName?: string
|
|
3721
|
-
dischargeRate?: number
|
|
3722
|
-
expandedTemperature?: number
|
|
3723
|
-
lflExtent?: number
|
|
3724
|
-
lflArea?: number
|
|
3725
|
-
lflHeight?: number
|
|
3726
|
-
phase
|
|
3727
|
-
) {
|
|
3728
|
-
super(id, typeId, displayName);
|
|
3729
|
-
this.dischargeRate = dischargeRate;
|
|
3730
|
-
this.expandedTemperature = expandedTemperature;
|
|
3731
|
-
this.lflExtent = lflExtent;
|
|
3732
|
-
this.lflArea = lflArea;
|
|
3733
|
-
this.lflHeight = lflHeight;
|
|
3734
|
-
this.phase = phase;
|
|
3717
|
+
constructor(options?: {
|
|
3718
|
+
id?: string;
|
|
3719
|
+
typeId?: string;
|
|
3720
|
+
displayName?: string;
|
|
3721
|
+
dischargeRate?: number;
|
|
3722
|
+
expandedTemperature?: number;
|
|
3723
|
+
lflExtent?: number;
|
|
3724
|
+
lflArea?: number;
|
|
3725
|
+
lflHeight?: number;
|
|
3726
|
+
phase?: Enums.Phase;
|
|
3727
|
+
}) {
|
|
3728
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3729
|
+
this.dischargeRate = options?.dischargeRate;
|
|
3730
|
+
this.expandedTemperature = options?.expandedTemperature;
|
|
3731
|
+
this.lflExtent = options?.lflExtent;
|
|
3732
|
+
this.lflArea = options?.lflArea;
|
|
3733
|
+
this.lflHeight = options?.lflHeight;
|
|
3734
|
+
this.phase = options?.phase ?? Enums.Phase.UNSET;
|
|
3735
3735
|
}
|
|
3736
3736
|
|
|
3737
3737
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3794,19 +3794,19 @@ export class VesselSphere extends Asset {
|
|
|
3794
3794
|
* @param {Material} material - Material in the vessel.
|
|
3795
3795
|
* @param {number} massInventory - Mass of the material in the vessel.
|
|
3796
3796
|
*/
|
|
3797
|
-
constructor(
|
|
3798
|
-
id?: string
|
|
3799
|
-
typeId?: string
|
|
3800
|
-
displayName?: string
|
|
3801
|
-
location
|
|
3802
|
-
state
|
|
3803
|
-
material
|
|
3804
|
-
massInventory?: number
|
|
3805
|
-
) {
|
|
3806
|
-
|
|
3807
|
-
this.state = state;
|
|
3808
|
-
this.material = material;
|
|
3809
|
-
this.massInventory = massInventory;
|
|
3797
|
+
constructor(options?: {
|
|
3798
|
+
id?: string;
|
|
3799
|
+
typeId?: string;
|
|
3800
|
+
displayName?: string;
|
|
3801
|
+
location?: LocalPosition;
|
|
3802
|
+
state?: State;
|
|
3803
|
+
material?: Material;
|
|
3804
|
+
massInventory?: number;
|
|
3805
|
+
}) {
|
|
3806
|
+
super(options);
|
|
3807
|
+
this.state = options?.state ?? new State();
|
|
3808
|
+
this.material = options?.material ?? new Material();
|
|
3809
|
+
this.massInventory = options?.massInventory;
|
|
3810
3810
|
}
|
|
3811
3811
|
|
|
3812
3812
|
/** Initialise the entity with data from a dictionary. */
|
|
@@ -3856,24 +3856,24 @@ export class Weather extends EntityBase {
|
|
|
3856
3856
|
* @param {number} mixingLayerHeight - The height of the atmospheric boundary layer which caps the centreline of the plume. (default value is 800)
|
|
3857
3857
|
* @param {number} solarRadiation - The radiation received from the sun, which contributes to pool evaporation. (default value is 500)
|
|
3858
3858
|
*/
|
|
3859
|
-
constructor(
|
|
3860
|
-
id?: string
|
|
3861
|
-
typeId?: string
|
|
3862
|
-
displayName?: string
|
|
3863
|
-
windSpeed
|
|
3864
|
-
stabilityClass
|
|
3865
|
-
temperature
|
|
3866
|
-
relativeHumidity
|
|
3867
|
-
mixingLayerHeight
|
|
3868
|
-
solarRadiation
|
|
3869
|
-
) {
|
|
3870
|
-
super(id, typeId, displayName);
|
|
3871
|
-
this.windSpeed = windSpeed;
|
|
3872
|
-
this.stabilityClass = stabilityClass;
|
|
3873
|
-
this.temperature = temperature;
|
|
3874
|
-
this.relativeHumidity = relativeHumidity;
|
|
3875
|
-
this.mixingLayerHeight = mixingLayerHeight;
|
|
3876
|
-
this.solarRadiation = solarRadiation;
|
|
3859
|
+
constructor(options?: {
|
|
3860
|
+
id?: string;
|
|
3861
|
+
typeId?: string;
|
|
3862
|
+
displayName?: string;
|
|
3863
|
+
windSpeed?: number;
|
|
3864
|
+
stabilityClass?: Enums.AtmosphericStabilityClass;
|
|
3865
|
+
temperature?: number;
|
|
3866
|
+
relativeHumidity?: number;
|
|
3867
|
+
mixingLayerHeight?: number;
|
|
3868
|
+
solarRadiation?: number;
|
|
3869
|
+
}) {
|
|
3870
|
+
super(options?.id, options?.typeId, options?.displayName);
|
|
3871
|
+
this.windSpeed = options?.windSpeed ?? 5;
|
|
3872
|
+
this.stabilityClass = options?.stabilityClass ?? Enums.AtmosphericStabilityClass.STABILITY_D;
|
|
3873
|
+
this.temperature = options?.temperature ?? 283;
|
|
3874
|
+
this.relativeHumidity = options?.relativeHumidity ?? 0.7;
|
|
3875
|
+
this.mixingLayerHeight = options?.mixingLayerHeight ?? 800;
|
|
3876
|
+
this.solarRadiation = options?.solarRadiation ?? 500;
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
3879
|
/** Initialise the entity with data from a dictionary. */
|