@dnv-plant/typescriptpws 1.0.97 → 1.0.98
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/LICENSE +1 -1
- package/azure-test-job.yml +25 -0
- package/index.ts +18 -13
- package/package.json +2 -1
- package/src/calculations/applicationTools.ts +16 -12
- package/src/calculations/calculationBase.ts +40 -13
- package/src/calculations/discharge.ts +752 -109
- package/src/calculations/dispersion.ts +17 -15
- package/src/calculations/dispersionView.ts +31 -27
- package/src/calculations/fireball.ts +17 -13
- package/src/calculations/flammableWorkflow.ts +291 -0
- package/src/calculations/jetFire.ts +19 -22
- package/src/calculations/lateExplosion.ts +16 -12
- package/src/calculations/linkedRunners.ts +2715 -780
- package/src/calculations/poolFire.ts +16 -12
- package/src/calculations/properties.ts +17 -14
- package/src/calculations/radiation.ts +65 -61
- package/src/calculations/standalones.ts +16 -12
- package/src/calculations/toxics.ts +17 -13
- package/src/calculations/utilities.ts +673 -23
- package/src/constants.ts +25 -15
- package/src/entities.ts +455 -320
- package/src/entity-schemas.ts +284 -148
- package/src/enums.ts +123 -64
- package/src/materials.ts +152 -152
- package/src/utilities.ts +40 -27
package/src/enums.ts
CHANGED
|
@@ -6,15 +6,16 @@
|
|
|
6
6
|
* Editing it may lead to inconsistent results and limit DNV's ability to provide support.
|
|
7
7
|
* Please contact DNV if you believe changes are required.
|
|
8
8
|
*
|
|
9
|
-
* Version: 1.0.
|
|
10
|
-
* Date/time:
|
|
11
|
-
* Template:
|
|
9
|
+
* Version: 1.0.0
|
|
10
|
+
* Date/time: 23 Jun 2026 12:11:11
|
|
11
|
+
* Template: TYPE_SCRIPT_PWS/enums.sbn.
|
|
12
12
|
***********************************************************************/
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The Pasquill atmospheric stability classes, a common method for categorizing the amount of atmospheric turbulence present.
|
|
16
16
|
*/
|
|
17
17
|
export enum AtmosphericStabilityClass {
|
|
18
|
+
|
|
18
19
|
/** A - very unstable - sunny, light winds. */
|
|
19
20
|
STABILITY_A = 1,
|
|
20
21
|
|
|
@@ -50,17 +51,34 @@ export enum AtmosphericStabilityClass {
|
|
|
50
51
|
* The different types of BESS installations.
|
|
51
52
|
*/
|
|
52
53
|
export enum BESSChemistry {
|
|
54
|
+
|
|
53
55
|
/** Lithium-iron-phosphate. */
|
|
54
56
|
LFP = 1,
|
|
55
57
|
|
|
56
58
|
/** Nickel-manganese-cobalt. */
|
|
57
59
|
NMC = 2,
|
|
60
|
+
|
|
61
|
+
/** Where no chemistry is required due to user-defined inputs. */
|
|
62
|
+
NONE = 0,
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Breach sizing method.
|
|
67
|
+
*/
|
|
68
|
+
export enum BreachSizingMethod {
|
|
69
|
+
|
|
70
|
+
/** Actual diameter of the breach. */
|
|
71
|
+
ACTUAL_SIZE = 0,
|
|
72
|
+
|
|
73
|
+
/** Ratio of the area of the breach to the total pipe discharge area. */
|
|
74
|
+
RELATIVE_SIZE = 1,
|
|
58
75
|
}
|
|
59
76
|
|
|
60
77
|
/**
|
|
61
78
|
* Type of contour plot or grid.
|
|
62
79
|
*/
|
|
63
80
|
export enum ContourType {
|
|
81
|
+
|
|
64
82
|
/** Crosswind (YZ plane). */
|
|
65
83
|
CROSSWIND = 5,
|
|
66
84
|
|
|
@@ -90,6 +108,7 @@ export enum ContourType {
|
|
|
90
108
|
* Whether day or night.
|
|
91
109
|
*/
|
|
92
110
|
export enum DayNight {
|
|
111
|
+
|
|
93
112
|
/** Day. */
|
|
94
113
|
DAY = 1,
|
|
95
114
|
|
|
@@ -104,6 +123,7 @@ export enum DayNight {
|
|
|
104
123
|
* Whether the release or cloud is instantaneous, continuous or time-varying.
|
|
105
124
|
*/
|
|
106
125
|
export enum DynamicType {
|
|
126
|
+
|
|
107
127
|
/** A release of mass at a rate which does not vary with time. */
|
|
108
128
|
CONTINUOUS = 2,
|
|
109
129
|
|
|
@@ -121,6 +141,7 @@ export enum DynamicType {
|
|
|
121
141
|
* The type of fire that occurs or is modelled.
|
|
122
142
|
*/
|
|
123
143
|
export enum FireType {
|
|
144
|
+
|
|
124
145
|
/** A high-velocity burning jet, modelled using the API model, which treats the flame as a banana-shaped plume. */
|
|
125
146
|
APIJET = 3,
|
|
126
147
|
|
|
@@ -144,6 +165,7 @@ export enum FireType {
|
|
|
144
165
|
* Whether a material is flammable, toxic, both or inert.
|
|
145
166
|
*/
|
|
146
167
|
export enum FlammableToxic {
|
|
168
|
+
|
|
147
169
|
/** Both. */
|
|
148
170
|
BOTH = 0,
|
|
149
171
|
|
|
@@ -164,6 +186,7 @@ export enum FlammableToxic {
|
|
|
164
186
|
* Method to describe how phase changes between storage and orifice conditions will be modelled.
|
|
165
187
|
*/
|
|
166
188
|
export enum FlashAtOrifice {
|
|
189
|
+
|
|
167
190
|
/** No flashing of liquid (metastable liquid) upstream of the orifice. */
|
|
168
191
|
DISALLOW_LIQUID_FLASH = 2,
|
|
169
192
|
|
|
@@ -178,6 +201,7 @@ export enum FlashAtOrifice {
|
|
|
178
201
|
* Fluid state specification.
|
|
179
202
|
*/
|
|
180
203
|
export enum FluidSpec {
|
|
204
|
+
|
|
181
205
|
/** Specify bubble point at fixed pressure. */
|
|
182
206
|
PBUB = 3,
|
|
183
207
|
|
|
@@ -207,6 +231,7 @@ export enum FluidSpec {
|
|
|
207
231
|
* The type of flame produced when a material burns.
|
|
208
232
|
*/
|
|
209
233
|
export enum LuminousSmokyFlame {
|
|
234
|
+
|
|
210
235
|
/** Used or compounds with unknown experimental profile for surface emissive power. */
|
|
211
236
|
GENERAL = 2,
|
|
212
237
|
|
|
@@ -224,6 +249,7 @@ export enum LuminousSmokyFlame {
|
|
|
224
249
|
* The multi energy confined method for modelling the effects of explosions.
|
|
225
250
|
*/
|
|
226
251
|
export enum MEConfinedMethod {
|
|
252
|
+
|
|
227
253
|
/** A method where the explosion calculations model a single confined source that contains the entire mass of the cloud, with a strength of confinement defined by the ExplosionUniformStrength in the ExplosionParameters. */
|
|
228
254
|
UNIFORM_CONFINED = 3,
|
|
229
255
|
|
|
@@ -235,6 +261,7 @@ export enum MEConfinedMethod {
|
|
|
235
261
|
* Method for modelling a mixture.
|
|
236
262
|
*/
|
|
237
263
|
export enum MixtureModelling {
|
|
264
|
+
|
|
238
265
|
/** Multi-component multiple aerosol. */
|
|
239
266
|
MC_MULTIPLE_AEROSOL = 3,
|
|
240
267
|
|
|
@@ -249,6 +276,7 @@ export enum MixtureModelling {
|
|
|
249
276
|
* Fluid phase (vapour, liquid or two-phase).
|
|
250
277
|
*/
|
|
251
278
|
export enum Phase {
|
|
279
|
+
|
|
252
280
|
/** Liquid. */
|
|
253
281
|
LIQUID = 3,
|
|
254
282
|
|
|
@@ -266,6 +294,7 @@ export enum Phase {
|
|
|
266
294
|
* Type of pool fire.
|
|
267
295
|
*/
|
|
268
296
|
export enum PoolFireType {
|
|
297
|
+
|
|
269
298
|
/** A type of pool fire assumed to take place at the time when the spill rate into the pool is equal to the burn rate of the pool fire. */
|
|
270
299
|
EARLY = 1,
|
|
271
300
|
|
|
@@ -280,6 +309,7 @@ export enum PoolFireType {
|
|
|
280
309
|
* Surface onto which the liquid which rains out will spread.
|
|
281
310
|
*/
|
|
282
311
|
export enum PoolSurfaceType {
|
|
312
|
+
|
|
283
313
|
/** Concrete. */
|
|
284
314
|
CONCRETE = 3,
|
|
285
315
|
|
|
@@ -309,6 +339,7 @@ export enum PoolSurfaceType {
|
|
|
309
339
|
* The template to be used for the selection of calculation methods for material properties.
|
|
310
340
|
*/
|
|
311
341
|
export enum PropertyTemplate {
|
|
342
|
+
|
|
312
343
|
/** Acid association template for modelling reactive Hydrogen Fluoride. */
|
|
313
344
|
ACID_ASSOCIATION = 102,
|
|
314
345
|
|
|
@@ -335,6 +366,7 @@ export enum PropertyTemplate {
|
|
|
335
366
|
* The type of radiation result of interest.
|
|
336
367
|
*/
|
|
337
368
|
export enum RadiationType {
|
|
369
|
+
|
|
338
370
|
/** The cumulative thermal energy produced from a flame and absorbed by a person or object, measured in W/m2.s. */
|
|
339
371
|
DOSE = 1,
|
|
340
372
|
|
|
@@ -358,6 +390,7 @@ export enum RadiationType {
|
|
|
358
390
|
* Sets the model for droplet evaporation calculations.
|
|
359
391
|
*/
|
|
360
392
|
export enum RainoutThermoFlag {
|
|
393
|
+
|
|
361
394
|
/** Suppress rainout and force the liquid droplets to stay inside the cloud, which can have a significant effect on the properties of the cloud. */
|
|
362
395
|
NO_RAINOUT_EQUILIBRIUM = -1,
|
|
363
396
|
|
|
@@ -368,10 +401,23 @@ export enum RainoutThermoFlag {
|
|
|
368
401
|
RAINOUT_NON_EQUILIBRIUM = 2,
|
|
369
402
|
}
|
|
370
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Averaging method to determine the input to the dispersion.
|
|
406
|
+
*/
|
|
407
|
+
export enum ReleaseAveragingMethod {
|
|
408
|
+
|
|
409
|
+
/** Averaging between two times. */
|
|
410
|
+
AVERAGING_BETWEEN_TWO_TIMES = 3,
|
|
411
|
+
|
|
412
|
+
/** Multiple rates (up to 10). */
|
|
413
|
+
UP_TO_TEN_RATES = 4,
|
|
414
|
+
}
|
|
415
|
+
|
|
371
416
|
/**
|
|
372
417
|
* The initial direction of the discharge from its source.
|
|
373
418
|
*/
|
|
374
419
|
export enum ReleaseDirection {
|
|
420
|
+
|
|
375
421
|
/** Horizontal. */
|
|
376
422
|
HORIZONTAL = 0,
|
|
377
423
|
|
|
@@ -383,6 +429,7 @@ export enum ReleaseDirection {
|
|
|
383
429
|
* Output resolution (and performance) controlling the spacing in the x, y, z and time dimensions.
|
|
384
430
|
*/
|
|
385
431
|
export enum Resolution {
|
|
432
|
+
|
|
386
433
|
/** Extremely high. */
|
|
387
434
|
EXTREME = 5,
|
|
388
435
|
|
|
@@ -403,19 +450,20 @@ export enum Resolution {
|
|
|
403
450
|
* Result codes returned from calls to the MDE.
|
|
404
451
|
*/
|
|
405
452
|
export enum ResultCode {
|
|
406
|
-
|
|
453
|
+
|
|
454
|
+
/** Client ID was not specified or is missing. */
|
|
407
455
|
CLIENT_ID_NOT_SPECIFIED_ERROR = 21110,
|
|
408
456
|
|
|
409
|
-
/** . */
|
|
457
|
+
/** An error occurred while storing or retrieving data. */
|
|
410
458
|
DATA_STORAGE_ERROR = 21113,
|
|
411
459
|
|
|
412
|
-
/** . */
|
|
460
|
+
/** Failed to initialize the discharge calculation engine. */
|
|
413
461
|
DISCHARGE_CALCULATION_INITIALIZATION_ERROR = 21107,
|
|
414
462
|
|
|
415
|
-
/** . */
|
|
463
|
+
/** Failed to initialize the dispersion calculation engine. */
|
|
416
464
|
DISPERSION_CALCULATION_INITIALIZATION_ERROR = 21108,
|
|
417
465
|
|
|
418
|
-
/** . */
|
|
466
|
+
/** An error occurred while reading the input file. */
|
|
419
467
|
ERROR_READING_INPUT_FILE_ERROR = 21011,
|
|
420
468
|
|
|
421
469
|
/** Execution fail. */
|
|
@@ -424,136 +472,136 @@ export enum ResultCode {
|
|
|
424
472
|
/** Validation fail. */
|
|
425
473
|
FAIL_VALIDATION = -1,
|
|
426
474
|
|
|
427
|
-
/** . */
|
|
475
|
+
/** Failed to initialize the MDE error reporting system. */
|
|
428
476
|
FAILED_TO_INITIALISE_MDE_ERROR_REPORTING_ERROR = 21012,
|
|
429
477
|
|
|
430
|
-
/** . */
|
|
478
|
+
/** Failed to initialize the physical property system. */
|
|
431
479
|
FAILED_TO_INITIALISE_PROPERTY_SYSTEM_ERROR = 21013,
|
|
432
480
|
|
|
433
|
-
/** . */
|
|
481
|
+
/** HTTP 300 Ambiguous - the requested information has multiple representations. */
|
|
434
482
|
HTTP_AMBIGUOUS_ERROR = 30300,
|
|
435
483
|
|
|
436
|
-
/** . */
|
|
484
|
+
/** HTTP 502 Bad Gateway - the server received an invalid response from an upstream server. */
|
|
437
485
|
HTTP_BAD_GATEWAY_ERROR = 30502,
|
|
438
486
|
|
|
439
|
-
/** . */
|
|
487
|
+
/** HTTP 400 Bad Request - the server cannot process the request due to a client error. */
|
|
440
488
|
HTTP_BAD_REQUEST_ERROR = 30400,
|
|
441
489
|
|
|
442
|
-
/** . */
|
|
490
|
+
/** HTTP 409 Conflict - the request conflicts with the current state of the server. */
|
|
443
491
|
HTTP_CONFLICT_ERROR = 30409,
|
|
444
492
|
|
|
445
|
-
/** . */
|
|
493
|
+
/** HTTP 417 Expectation Failed - the expectation given in the Expect request header could not be met. */
|
|
446
494
|
HTTP_EXPECTATION_FAILED_ERROR = 30417,
|
|
447
495
|
|
|
448
|
-
/** . */
|
|
496
|
+
/** HTTP 403 Forbidden - the server understood the request but refuses to authorize it. */
|
|
449
497
|
HTTP_FORBIDDEN_ERROR = 30403,
|
|
450
498
|
|
|
451
|
-
/** . */
|
|
499
|
+
/** HTTP 302 Found - the requested resource has been temporarily moved to a different URI. */
|
|
452
500
|
HTTP_FOUND_ERROR = 30302,
|
|
453
501
|
|
|
454
|
-
/** . */
|
|
502
|
+
/** HTTP 504 Gateway Timeout - the server did not receive a timely response from an upstream server. */
|
|
455
503
|
HTTP_GATEWAY_TIMEOUT_ERROR = 30504,
|
|
456
504
|
|
|
457
|
-
/** . */
|
|
505
|
+
/** HTTP 410 Gone - the requested resource is no longer available and will not be available again. */
|
|
458
506
|
HTTP_GONE_ERROR = 30410,
|
|
459
507
|
|
|
460
|
-
/** . */
|
|
508
|
+
/** HTTP 505 HTTP Version Not Supported - the HTTP version used in the request is not supported by the server. */
|
|
461
509
|
HTTP_HTTP_VERSION_NOT_SUPPORTED_ERROR = 30505,
|
|
462
510
|
|
|
463
|
-
/** . */
|
|
511
|
+
/** HTTP 500 Internal Server Error - the server encountered an unexpected condition that prevented it from fulfilling the request. */
|
|
464
512
|
HTTP_INTERNAL_SERVER_ERROR_ERROR = 30500,
|
|
465
513
|
|
|
466
|
-
/** . */
|
|
514
|
+
/** HTTP 411 Length Required - the server refuses to accept the request without a defined Content-Length header. */
|
|
467
515
|
HTTP_LENGTH_REQUIRED_ERROR = 30411,
|
|
468
516
|
|
|
469
|
-
/** . */
|
|
517
|
+
/** HTTP 405 Method Not Allowed - the request method is not supported for the requested resource. */
|
|
470
518
|
HTTP_METHOD_NOT_ALLOWED_ERROR = 30405,
|
|
471
519
|
|
|
472
|
-
/** . */
|
|
520
|
+
/** HTTP 301 Moved Permanently - the requested resource has been permanently moved to a new URI. */
|
|
473
521
|
HTTP_MOVED_ERROR = 30301,
|
|
474
522
|
|
|
475
|
-
/** . */
|
|
523
|
+
/** HTTP 301 Moved Permanently - the requested resource has been permanently moved to a new URI. */
|
|
476
524
|
HTTP_MOVED_PERMANENTLY_ERROR = 30301,
|
|
477
525
|
|
|
478
|
-
/** . */
|
|
526
|
+
/** HTTP 300 Multiple Choices - the requested resource has multiple representations, each with its own specific location. */
|
|
479
527
|
HTTP_MULTIPLE_CHOICES_ERROR = 30300,
|
|
480
528
|
|
|
481
|
-
/** . */
|
|
529
|
+
/** HTTP 406 Not Acceptable - the server cannot produce a response matching the list of acceptable values in the request headers. */
|
|
482
530
|
HTTP_NOT_ACCEPTABLE_ERROR = 30406,
|
|
483
531
|
|
|
484
|
-
/** . */
|
|
532
|
+
/** HTTP 404 Not Found - the server cannot find the requested resource. */
|
|
485
533
|
HTTP_NOT_FOUND_ERROR = 30404,
|
|
486
534
|
|
|
487
|
-
/** . */
|
|
535
|
+
/** HTTP 501 Not Implemented - the server does not support the functionality required to fulfill the request. */
|
|
488
536
|
HTTP_NOT_IMPLEMENTED_ERROR = 30501,
|
|
489
537
|
|
|
490
|
-
/** . */
|
|
538
|
+
/** HTTP 304 Not Modified - the resource has not been modified since the version specified by the request headers. */
|
|
491
539
|
HTTP_NOT_MODIFIED_ERROR = 30304,
|
|
492
540
|
|
|
493
|
-
/** . */
|
|
541
|
+
/** HTTP 402 Payment Required - reserved for future use. */
|
|
494
542
|
HTTP_PAYMENT_REQUIRED_ERROR = 30402,
|
|
495
543
|
|
|
496
|
-
/** . */
|
|
544
|
+
/** HTTP 412 Precondition Failed - one or more conditions given in the request header fields evaluated to false. */
|
|
497
545
|
HTTP_PRECONDITION_FAILED_ERROR = 30412,
|
|
498
546
|
|
|
499
|
-
/** . */
|
|
547
|
+
/** HTTP 407 Proxy Authentication Required - the client must first authenticate itself with the proxy. */
|
|
500
548
|
HTTP_PROXY_AUTHENTICATION_REQUIRED_ERROR = 30407,
|
|
501
549
|
|
|
502
|
-
/** . */
|
|
550
|
+
/** HTTP 302 Redirect - the requested resource has been temporarily moved to a different URI. */
|
|
503
551
|
HTTP_REDIRECT_ERROR = 30302,
|
|
504
552
|
|
|
505
|
-
/** . */
|
|
553
|
+
/** HTTP 307 Temporary Redirect - the requested resource temporarily resides under a different URI, keep the same HTTP method. */
|
|
506
554
|
HTTP_REDIRECT_KEEP_VERB_ERROR = 30307,
|
|
507
555
|
|
|
508
|
-
/** . */
|
|
556
|
+
/** HTTP 303 See Other - the response to the request can be found under a different URI using a GET method. */
|
|
509
557
|
HTTP_REDIRECT_METHOD_ERROR = 30303,
|
|
510
558
|
|
|
511
|
-
/** . */
|
|
559
|
+
/** HTTP 416 Range Not Satisfiable - the client has asked for a portion of the file that the server cannot supply. */
|
|
512
560
|
HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_ERROR = 30416,
|
|
513
561
|
|
|
514
|
-
/** . */
|
|
562
|
+
/** HTTP 413 Payload Too Large - the request entity is larger than the server is willing or able to process. */
|
|
515
563
|
HTTP_REQUEST_ENTITY_TOO_LARGE_ERROR = 30413,
|
|
516
564
|
|
|
517
|
-
/** . */
|
|
565
|
+
/** HTTP 408 Request Timeout - the server timed out waiting for the request. */
|
|
518
566
|
HTTP_REQUEST_TIMEOUT_ERROR = 30408,
|
|
519
567
|
|
|
520
|
-
/** . */
|
|
568
|
+
/** HTTP 414 URI Too Long - the URI provided was too long for the server to process. */
|
|
521
569
|
HTTP_REQUEST_URI_TOO_LONG_ERROR = 30414,
|
|
522
570
|
|
|
523
|
-
/** . */
|
|
571
|
+
/** HTTP 303 See Other - the response to the request can be found under a different URI using a GET method. */
|
|
524
572
|
HTTP_SEE_OTHER_ERROR = 30303,
|
|
525
573
|
|
|
526
|
-
/** . */
|
|
574
|
+
/** HTTP 503 Service Unavailable - the server is currently unable to handle the request due to temporary overload or maintenance. */
|
|
527
575
|
HTTP_SERVICE_UNAVAILABLE_ERROR = 30503,
|
|
528
576
|
|
|
529
|
-
/** . */
|
|
577
|
+
/** HTTP 307 Temporary Redirect - the requested resource temporarily resides under a different URI. */
|
|
530
578
|
HTTP_TEMPORARY_REDIRECT_ERROR = 30307,
|
|
531
579
|
|
|
532
|
-
/** . */
|
|
580
|
+
/** HTTP 401 Unauthorized - the request requires user authentication. */
|
|
533
581
|
HTTP_UNAUTHORIZED_ERROR = 30401,
|
|
534
582
|
|
|
535
|
-
/** . */
|
|
583
|
+
/** HTTP 415 Unsupported Media Type - the server refuses to accept the request because the payload format is not supported. */
|
|
536
584
|
HTTP_UNSUPPORTED_MEDIA_TYPE_ERROR = 30415,
|
|
537
585
|
|
|
538
|
-
/** . */
|
|
586
|
+
/** HTTP 306 Unused - this status code is no longer used. */
|
|
539
587
|
HTTP_UNUSED_ERROR = 30306,
|
|
540
588
|
|
|
541
|
-
/** . */
|
|
589
|
+
/** HTTP 426 Upgrade Required - the client should switch to a different protocol. */
|
|
542
590
|
HTTP_UPGRADE_REQUIRED_ERROR = 30426,
|
|
543
591
|
|
|
544
|
-
/** . */
|
|
592
|
+
/** HTTP 305 Use Proxy - the requested resource must be accessed through the proxy specified in the Location header. */
|
|
545
593
|
HTTP_USE_PROXY_ERROR = 30305,
|
|
546
594
|
|
|
547
|
-
/** . */
|
|
595
|
+
/** An array index is outside the bounds of the array. */
|
|
548
596
|
INDEX_OUT_OF_RANGE_ERROR = 21112,
|
|
549
597
|
|
|
550
|
-
/** . */
|
|
598
|
+
/** The specified input file could not be found. */
|
|
551
599
|
INPUT_FILE_NOT_FOUND_ERROR = 21009,
|
|
552
600
|
|
|
553
|
-
/** . */
|
|
601
|
+
/** No input file was specified. */
|
|
554
602
|
INPUT_FILE_NOT_SPECIFIED_ERROR = 21008,
|
|
555
603
|
|
|
556
|
-
/** . */
|
|
604
|
+
/** The provided access token is invalid or has expired. */
|
|
557
605
|
INVALID_ACCESS_TOKEN_ERROR = 21014,
|
|
558
606
|
|
|
559
607
|
/** No or invalid application root directory specified. */
|
|
@@ -568,13 +616,13 @@ export enum ResultCode {
|
|
|
568
616
|
/** No or invalid working directory specified. */
|
|
569
617
|
INVALID_WORKING_DIRECTORY_ERROR = 21003,
|
|
570
618
|
|
|
571
|
-
/** . */
|
|
619
|
+
/** An error occurred while parsing or reading JSON data. */
|
|
572
620
|
JSON_READER_ERROR = 21111,
|
|
573
621
|
|
|
574
|
-
/** . */
|
|
622
|
+
/** Failed to initialize the MDE error reporting system. */
|
|
575
623
|
MDEERROR_REPORTING_INITIALIZATION_ERROR = 21105,
|
|
576
624
|
|
|
577
|
-
/** . */
|
|
625
|
+
/** Failed to initialize the MDE calculation engine. */
|
|
578
626
|
MDEINITIALIZATION_ERROR = 21104,
|
|
579
627
|
|
|
580
628
|
/** MDE directory was correctly specified but the directory does not exist. */
|
|
@@ -583,31 +631,31 @@ export enum ResultCode {
|
|
|
583
631
|
/** Missing parameters. */
|
|
584
632
|
MISSING_PARAMETERS_ERROR = 21002,
|
|
585
633
|
|
|
586
|
-
/** . */
|
|
634
|
+
/** No discharge records were generated or available. */
|
|
587
635
|
NO_DISCHARGE_RECORDS_ERROR = 21100,
|
|
588
636
|
|
|
589
|
-
/** . */
|
|
637
|
+
/** Warning: No discharge records were generated during the calculation. */
|
|
590
638
|
NO_DISCHARGE_RECORDS_GENERATED_WARNING = 63001,
|
|
591
639
|
|
|
592
|
-
/** . */
|
|
640
|
+
/** No dispersion records were generated or available. */
|
|
593
641
|
NO_DISPERSION_RECORDS_ERROR = 21102,
|
|
594
642
|
|
|
595
|
-
/** . */
|
|
643
|
+
/** Warning: No dispersion records were generated during the calculation. */
|
|
596
644
|
NO_DISPERSION_RECORDS_GENERATED_WARNING = 63002,
|
|
597
645
|
|
|
598
|
-
/** . */
|
|
646
|
+
/** No flame records were generated or available. */
|
|
599
647
|
NO_FLAME_RECORDS_ERROR = 21103,
|
|
600
648
|
|
|
601
|
-
/** . */
|
|
649
|
+
/** No output file was specified. */
|
|
602
650
|
OUTPUT_FILE_NOT_SPECIFIED_ERROR = 21010,
|
|
603
651
|
|
|
604
|
-
/** . */
|
|
652
|
+
/** Failed to initialize the physical property system. */
|
|
605
653
|
PHYSICAL_PROPERTY_SYSTEM_INITIALIZATION_ERROR = 21106,
|
|
606
654
|
|
|
607
655
|
/** Success. */
|
|
608
656
|
SUCCESS = 0,
|
|
609
657
|
|
|
610
|
-
/** . */
|
|
658
|
+
/** Unable to read data from the specified source. */
|
|
611
659
|
UNABLE_TO_READ_DATA_ERROR = 21109,
|
|
612
660
|
|
|
613
661
|
/** Unexpected application error encountered. */
|
|
@@ -615,12 +663,16 @@ export enum ResultCode {
|
|
|
615
663
|
|
|
616
664
|
/** The calculation has not been run yet. */
|
|
617
665
|
NOT_RUN = -2,
|
|
666
|
+
|
|
667
|
+
/** Calculation currently running. */
|
|
668
|
+
RUNNING = -3,
|
|
618
669
|
}
|
|
619
670
|
|
|
620
671
|
/**
|
|
621
672
|
* Flag for whether we want to deploy or disable solid modelling. In addition to this flag, each component has its own allowSolids flag.
|
|
622
673
|
*/
|
|
623
674
|
export enum SolidModelling {
|
|
675
|
+
|
|
624
676
|
/** Solid modelling will be deployed if it is supported by the component in question. */
|
|
625
677
|
DEPLOY_SOLID_MODELLING = 1,
|
|
626
678
|
|
|
@@ -632,6 +684,7 @@ export enum SolidModelling {
|
|
|
632
684
|
* The method used to determine the concentration of interest when post processing dispersion calculations.
|
|
633
685
|
*/
|
|
634
686
|
export enum SpecialConcentration {
|
|
687
|
+
|
|
635
688
|
/** The concentration of interest will be the LFL of the material. */
|
|
636
689
|
LFL = 2,
|
|
637
690
|
|
|
@@ -652,6 +705,7 @@ export enum SpecialConcentration {
|
|
|
652
705
|
* Surface over which the dispersion occurs.
|
|
653
706
|
*/
|
|
654
707
|
export enum SurfaceType {
|
|
708
|
+
|
|
655
709
|
/** Dispersion over land. */
|
|
656
710
|
LAND = 1,
|
|
657
711
|
|
|
@@ -663,6 +717,7 @@ export enum SurfaceType {
|
|
|
663
717
|
* Whether the release is a time-varying release or a steady state release using the initial rate.
|
|
664
718
|
*/
|
|
665
719
|
export enum TimeVaryingOption {
|
|
720
|
+
|
|
666
721
|
/** Use initial rate modelling. */
|
|
667
722
|
INITIAL_RATE = 1,
|
|
668
723
|
|
|
@@ -674,6 +729,7 @@ export enum TimeVaryingOption {
|
|
|
674
729
|
* The type of toxic result.
|
|
675
730
|
*/
|
|
676
731
|
export enum ToxicResultType {
|
|
732
|
+
|
|
677
733
|
/** Toxic dose. */
|
|
678
734
|
TOXIC_DOSE = 3,
|
|
679
735
|
|
|
@@ -691,6 +747,7 @@ export enum ToxicResultType {
|
|
|
691
747
|
* The conditions of the material in a vessel.
|
|
692
748
|
*/
|
|
693
749
|
export enum VesselConditions {
|
|
750
|
+
|
|
694
751
|
/** Liquid stored at atmospheric pressure. */
|
|
695
752
|
ATMOSPHERIC_LIQUID_VESSEL = 5,
|
|
696
753
|
|
|
@@ -714,6 +771,7 @@ export enum VesselConditions {
|
|
|
714
771
|
* The shape of a vessel.
|
|
715
772
|
*/
|
|
716
773
|
export enum VesselShape {
|
|
774
|
+
|
|
717
775
|
/** Horizontal cylinder shape for a vessel. */
|
|
718
776
|
HORIZONTAL_CYLINDER = 2,
|
|
719
777
|
|
|
@@ -731,9 +789,10 @@ export enum VesselShape {
|
|
|
731
789
|
* Wind profile flag.
|
|
732
790
|
*/
|
|
733
791
|
export enum WindProfileFlag {
|
|
792
|
+
|
|
734
793
|
/** Logarithmic wind profile. */
|
|
735
794
|
LOGARITHMIC_PROFILE = 4,
|
|
736
795
|
|
|
737
796
|
/** Power law wind profile. */
|
|
738
797
|
POWER_LAW_PROFILE = 2,
|
|
739
|
-
}
|
|
798
|
+
}
|