@dnv-plant/typescriptpws 1.0.63 → 1.0.64-alpha.1861876
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +2 -2
- package/src/calculations/applicationTools.ts +4 -4
- package/src/calculations/discharge.ts +45 -45
- package/src/calculations/dispersion.ts +16 -16
- package/src/calculations/dispersionView.ts +113 -113
- package/src/calculations/fireball.ts +14 -14
- package/src/calculations/jetFire.ts +13 -13
- package/src/calculations/lateExplosion.ts +48 -48
- package/src/calculations/linkedRunners.ts +245 -245
- package/src/calculations/poolFire.ts +15 -15
- package/src/calculations/properties.ts +6 -6
- package/src/calculations/radiation.ts +124 -124
- package/src/calculations/standalones.ts +11 -11
- package/src/calculations/toxics.ts +17 -17
- package/src/calculations/utilities.ts +36 -36
- package/src/constants.ts +26 -5
- package/src/entities.ts +212 -82
- package/src/entity-schemas.ts +160 -64
- package/src/enums.ts +25 -14
- package/src/materials.ts +2 -2
- package/src/utilities.ts +4 -2
package/src/enums.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:04
|
|
5
5
|
* Template: templates/typescriptpws/enums.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export enum AtmosphericStabilityClass {
|
|
12
12
|
/** A - very unstable - sunny, light winds. */
|
|
13
|
-
|
|
13
|
+
STABILITY_A_ = 1,
|
|
14
14
|
|
|
15
15
|
/** A/B - unstable - as with A only less sunny or more windy. */
|
|
16
16
|
STABILITY_AB = 2,
|
|
@@ -40,6 +40,17 @@ export enum AtmosphericStabilityClass {
|
|
|
40
40
|
STABILITY_G = 10,
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The different types of BESS installations.
|
|
45
|
+
*/
|
|
46
|
+
export enum BESSChemistry {
|
|
47
|
+
/** Lithium-iron-phosphate. */
|
|
48
|
+
LFP = 1,
|
|
49
|
+
|
|
50
|
+
/** Nickel-manganese-cobalt. */
|
|
51
|
+
NMC = 2,
|
|
52
|
+
}
|
|
53
|
+
|
|
43
54
|
/**
|
|
44
55
|
* Type of case being run.
|
|
45
56
|
*/
|
|
@@ -106,17 +117,6 @@ export enum DayNight {
|
|
|
106
117
|
UNSET = 0,
|
|
107
118
|
}
|
|
108
119
|
|
|
109
|
-
/**
|
|
110
|
-
* DO NOT SAVE.
|
|
111
|
-
*/
|
|
112
|
-
export enum DummyEnum {
|
|
113
|
-
/** Value 1. */
|
|
114
|
-
VALUE1 = 55,
|
|
115
|
-
|
|
116
|
-
/** Value 2. */
|
|
117
|
-
VALUE2 = 55,
|
|
118
|
-
}
|
|
119
|
-
|
|
120
120
|
/**
|
|
121
121
|
* Whether the release or cloud is instantaneous, continuous or time-varying.
|
|
122
122
|
*/
|
|
@@ -743,3 +743,14 @@ export enum VesselShape {
|
|
|
743
743
|
/** Sphere shape for a vessel. */
|
|
744
744
|
VESSEL_SPHERE = 3,
|
|
745
745
|
}
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Wind profile flag.
|
|
749
|
+
*/
|
|
750
|
+
export enum WindProfileFlag {
|
|
751
|
+
/** Logarithmic wind profile. */
|
|
752
|
+
LOGARITHMIC_PROFILE = 4,
|
|
753
|
+
|
|
754
|
+
/** Power law wind profile. */
|
|
755
|
+
POWER_LAW_PROFILE = 2,
|
|
756
|
+
}
|
package/src/materials.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:03
|
|
5
5
|
* Template: templates/typescriptpws/materials.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/utilities.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.64
|
|
4
|
+
* Date/time: 04 Apr 2025 15:02:02
|
|
5
5
|
* Template: templates/typescriptpws/utilities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -150,6 +150,8 @@ function getApiRoot() {
|
|
|
150
150
|
// Determine API root based on devMode
|
|
151
151
|
const apiTarget = devMode ? "/api/" : `${platform}/api/`;
|
|
152
152
|
|
|
153
|
+
console.log("apiTarget:", apiTarget)
|
|
154
|
+
|
|
153
155
|
return apiTarget;
|
|
154
156
|
}
|
|
155
157
|
|