@dnv-plant/typescriptpws 1.0.67-alpha.1869576 → 1.0.68-alpha.1869874
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +1 -1
- package/src/calculations/applicationTools.ts +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 +6 -14
- package/src/entity-schemas.ts +2 -5
- package/src/enums.ts +2 -2
- package/src/materials.ts +2 -2
- package/src/utilities.ts +2 -2
package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:44
|
|
5
5
|
* Template: templates/typescriptpws/index.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/constants.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:41
|
|
5
5
|
* Template: templates/typescriptpws/constants.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/entities.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:42
|
|
5
5
|
* Template: templates/typescriptpws/entities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -2532,7 +2532,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2532
2532
|
dipprVersion?: number;
|
|
2533
2533
|
casId?: number;
|
|
2534
2534
|
dataItem: MaterialComponentDataItem[];
|
|
2535
|
-
nonStandard?: boolean;
|
|
2536
2535
|
|
|
2537
2536
|
/**
|
|
2538
2537
|
* Data related to a MaterialComponent.
|
|
@@ -2541,7 +2540,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2541
2540
|
* @param {number} dipprVersion - DIPPR version number.
|
|
2542
2541
|
* @param {number} casId - CAS id.
|
|
2543
2542
|
* @param {MaterialComponentDataItem[]} dataItem - List of data items defining the material component data.
|
|
2544
|
-
* @param {boolean} nonStandard - Description of new property.
|
|
2545
2543
|
*/
|
|
2546
2544
|
constructor(options?: {
|
|
2547
2545
|
id?: string;
|
|
@@ -2551,13 +2549,11 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2551
2549
|
dipprVersion?: number;
|
|
2552
2550
|
casId?: number;
|
|
2553
2551
|
dataItem?: MaterialComponentDataItem[];
|
|
2554
|
-
nonStandard?: boolean;
|
|
2555
2552
|
}) {
|
|
2556
2553
|
super(options?.id, options?.typeId, options?.displayName);
|
|
2557
2554
|
this.dipprVersion = options?.dipprVersion;
|
|
2558
2555
|
this.casId = options?.casId;
|
|
2559
2556
|
this.dataItem = options?.dataItem ?? [new MaterialComponentDataItem()];
|
|
2560
|
-
this.nonStandard = options?.nonStandard;
|
|
2561
2557
|
this.name = options?.name ?? "";
|
|
2562
2558
|
}
|
|
2563
2559
|
|
|
@@ -2579,9 +2575,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2579
2575
|
}
|
|
2580
2576
|
);
|
|
2581
2577
|
}
|
|
2582
|
-
if (data.nonStandard !== undefined && typeof data.nonStandard === "boolean") {
|
|
2583
|
-
this.nonStandard = data.nonStandard as boolean;
|
|
2584
|
-
}
|
|
2585
2578
|
if (data.name !== undefined && typeof data.name === "string") {
|
|
2586
2579
|
this.name = data.name as string;
|
|
2587
2580
|
}
|
|
@@ -2594,7 +2587,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2594
2587
|
`dipprVersion: ${this.dipprVersion}`,
|
|
2595
2588
|
`casId: ${this.casId}`,
|
|
2596
2589
|
this.dataItem?.map((item) => item?.toString()).join("\n"),
|
|
2597
|
-
`nonStandard: ${this.nonStandard}`,
|
|
2598
2590
|
`name: ${this.name}`,
|
|
2599
2591
|
];
|
|
2600
2592
|
return parts.join("\n");
|
|
@@ -3717,7 +3709,7 @@ export class Vessel extends Asset {
|
|
|
3717
3709
|
* @param {number} diameter - Internal diameter of the vessel. (default value is 2)
|
|
3718
3710
|
* @param {number} height - Internal height of a VerticalCylinder or VesselCuboid. (default value is 4)
|
|
3719
3711
|
* @param {number} length - Internal length of HorizontalCylinder or VesselCuboid. (default value is 4)
|
|
3720
|
-
* @param {number} width - Internal width of a VesselCuboid. (default value is
|
|
3712
|
+
* @param {number} width - Internal width of a VesselCuboid. (default value is 2.0)
|
|
3721
3713
|
* @param {Enums.VesselShape} shape - Shape of the vessel. (default value is Enums.VesselShape.HORIZONTAL_CYLINDER)
|
|
3722
3714
|
* @param {Enums.VesselConditions} vesselConditions - The conditions inside the vessel. (default value is Enums.VesselConditions.UNSET)
|
|
3723
3715
|
* @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)
|
|
@@ -3745,7 +3737,7 @@ export class Vessel extends Asset {
|
|
|
3745
3737
|
this.diameter = options?.diameter ?? 2;
|
|
3746
3738
|
this.height = options?.height ?? 4;
|
|
3747
3739
|
this.length = options?.length ?? 4;
|
|
3748
|
-
this.width = options?.width ??
|
|
3740
|
+
this.width = options?.width ?? 2.0;
|
|
3749
3741
|
this.shape = options?.shape ?? Enums.VesselShape.HORIZONTAL_CYLINDER;
|
|
3750
3742
|
this.vesselConditions = options?.vesselConditions ?? Enums.VesselConditions.UNSET;
|
|
3751
3743
|
this.liquidFillFractionByVolume = options?.liquidFillFractionByVolume ?? 0.0;
|
|
@@ -3978,7 +3970,7 @@ export class Weather extends EntityBase {
|
|
|
3978
3970
|
* @param {number} relativeHumidity - The amount of water vapour present in the air compared to the maximum amount the air can hold at a given temperature. (default value is 0.7)
|
|
3979
3971
|
* @param {number} mixingLayerHeight - The height of the atmospheric boundary layer which caps the centreline of the plume. (default value is 800)
|
|
3980
3972
|
* @param {number} solarRadiation - The radiation received from the sun, which contributes to pool evaporation. (default value is 500)
|
|
3981
|
-
* @param {Enums.WindProfileFlag} windProfileFlag - Wind profile flag. (default value is Enums.WindProfileFlag.
|
|
3973
|
+
* @param {Enums.WindProfileFlag} windProfileFlag - Wind profile flag. (default value is Enums.WindProfileFlag.POWER_LAW_PROFILE)
|
|
3982
3974
|
*/
|
|
3983
3975
|
constructor(options?: {
|
|
3984
3976
|
id?: string;
|
|
@@ -3999,7 +3991,7 @@ export class Weather extends EntityBase {
|
|
|
3999
3991
|
this.relativeHumidity = options?.relativeHumidity ?? 0.7;
|
|
4000
3992
|
this.mixingLayerHeight = options?.mixingLayerHeight ?? 800;
|
|
4001
3993
|
this.solarRadiation = options?.solarRadiation ?? 500;
|
|
4002
|
-
this.windProfileFlag = options?.windProfileFlag ?? Enums.WindProfileFlag.
|
|
3994
|
+
this.windProfileFlag = options?.windProfileFlag ?? Enums.WindProfileFlag.POWER_LAW_PROFILE;
|
|
4003
3995
|
}
|
|
4004
3996
|
|
|
4005
3997
|
/** Initialise the entity with data from a dictionary. */
|
package/src/entity-schemas.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
5
5
|
* Template: templates/typescriptpws/entityschemas.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -1729,7 +1729,6 @@ export interface MaterialComponentDataSchemaData extends SchemaBaseData {
|
|
|
1729
1729
|
dipprVersion: number;
|
|
1730
1730
|
casId: number;
|
|
1731
1731
|
dataItem: Entities.MaterialComponentDataItem[];
|
|
1732
|
-
nonStandard: boolean;
|
|
1733
1732
|
name: string;
|
|
1734
1733
|
}
|
|
1735
1734
|
|
|
@@ -1747,7 +1746,6 @@ export class MaterialComponentDataSchema extends SchemaBase<MaterialComponentDat
|
|
|
1747
1746
|
dipprVersion: Joi.number().integer(),
|
|
1748
1747
|
casId: Joi.number().integer(),
|
|
1749
1748
|
dataItem: Joi.array().items(new MaterialComponentDataItemSchema().schema).allow(null),
|
|
1750
|
-
nonStandard: Joi.boolean(),
|
|
1751
1749
|
name: Joi.string().allow(""),
|
|
1752
1750
|
})
|
|
1753
1751
|
)
|
|
@@ -1762,7 +1760,6 @@ export class MaterialComponentDataSchema extends SchemaBase<MaterialComponentDat
|
|
|
1762
1760
|
dipprVersion: "number",
|
|
1763
1761
|
casId: "number",
|
|
1764
1762
|
dataItem: "MaterialComponentDataItem[]",
|
|
1765
|
-
nonStandard: "boolean",
|
|
1766
1763
|
name: "string",
|
|
1767
1764
|
};
|
|
1768
1765
|
}
|
package/src/enums.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:42
|
|
5
5
|
* Template: templates/typescriptpws/enums.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/materials.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:41
|
|
5
5
|
* Template: templates/typescriptpws/materials.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/utilities.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time: 11 Apr 2025
|
|
3
|
+
* Version: 1.0.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:40
|
|
5
5
|
* Template: templates/typescriptpws/utilities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|