@dnv-plant/typescriptpws 1.0.0-alpha.0

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.
@@ -0,0 +1,312 @@
1
+ /***********************************************************************
2
+ * This file has been auto-generated by a code generation tool.
3
+ * Version: 1.0.0
4
+ * Date/time: 30 Jan 2025 11:43:05
5
+ * Template: templates/typescriptpws/constants.razor.
6
+ ***********************************************************************/
7
+
8
+ export const ABS_TOL_RAD = 0.0000000001;
9
+ // Absolute tolerance for radiation calculations.
10
+
11
+ export const ADJUST_GROUND_FLAME = 1;
12
+ // Flame shape adjusted if grounded for jet fires.
13
+
14
+ export const ATM_EXP_METHOD = 4;
15
+ // DNV recommended atmospheric expansion method from orifice to final state.
16
+
17
+ export const ATM_MOLWT = 28.9505;
18
+ // Atmospheric molecular weight (kg/kmol).
19
+
20
+ export const ATM_PRESSURE = 101325.0;
21
+ // Atmospheric pressure (Pa).
22
+
23
+ export const AWD_FLAG = 3;
24
+ // Along wind diffusion method for non instantaneous dispersion.
25
+
26
+ export const BUND_AREA_MULTIPLIER_FOR_RUPTURE = 1.5;
27
+ // Bund area multiplier for catastrophic ruptures.
28
+
29
+ export const BUND_CANNOT_FAIL = 0;
30
+ // Bund cannot fail - liquid overspill not possible.
31
+
32
+ export const CALC_METHOD_SEP_FIREBALLS = -1;
33
+ // Calculate surface emissive power for fireballs.
34
+
35
+ export const CALC_METHOD_SEP_JET_FIRES = 0;
36
+ // Calculate surface emissive power for jet fires.
37
+
38
+ export const CRIT_SEP_RATIO = 0.2;
39
+ // Critical separation ratio for concentration grids.
40
+
41
+ export const CRIT_WEBER = 12.5;
42
+ // Critical Webber number used in the droplet size calculations.
43
+
44
+ export const DROPLET_METHOD = 6;
45
+ // Modified CCPS droplet method.
46
+
47
+ export const EXPL_LOCATION = 0;
48
+ // Explosion located at the cloud front (LFL fraction).
49
+
50
+ export const FIREBALL_MODEL = 0;
51
+ // Roberts/TNO hybrid fireball model.
52
+
53
+ export const FLAM_AVR_TIME_PHAST_DEFAULT = 18.75;
54
+ // Default value for flammable averaging time in Phast.
55
+
56
+ export const FLAMM_MASS_CALC_METHOD = 2;
57
+ // Use mass between LFL and UFL for flammable mass estimation in explosion calculations.
58
+
59
+ export const FRACTION_TOTAL_TO_KINETIC = 0.04;
60
+ // Kinetic energy fraction of discharge expansion energy.
61
+
62
+ export const HORIZONTAL_OPTION = 0;
63
+ // Standard method for jet fire horizontal options.
64
+
65
+ export const INEX_FLAG = 2;
66
+ // New standard method for modelling of instantaneous expansion.
67
+
68
+ export const JET_FIRE_AVR_TIME = 20.0;
69
+ // Jet fire averaging time (s).
70
+
71
+ export const JET_FIRE_CORRELATION = 0;
72
+ // Recommended jet fire correlation.
73
+
74
+ export const JET_FIRE_EXP_DUR = 20.0;
75
+ // Jet fire maximum exposure duration (s).
76
+
77
+ export const JET_RATE_MOD_FACTOR = 3.0;
78
+ // Jet fire rate modification factor.
79
+
80
+ export const LFL_FRACTION_EXPLOSIONS = 0.5;
81
+ // LFL fraction used to define the flammable cloud for explosions.
82
+
83
+ export const MASS_MOD_FACTOR = 3.0;
84
+ // Mass modification factor used in calculating the mass of material involved in the fireball.
85
+
86
+ export const MAX_DISP_STEP_SIZE = 300.0;
87
+ // Maximum integration step for dispersion calculations (s).
88
+
89
+ export const MAX_DROP_DIAMETER = 0.01;
90
+ // Upper limit of the droplet diameter (m).
91
+
92
+ export const MAX_NUMBER_FLAME_COORDINATES = 10;
93
+ // Maximum number of flame coordinates for jet fires.
94
+
95
+ export const MAX_RELEASE_DURATION = 3600.0;
96
+ // Maximum release duration (s).
97
+
98
+ export const MAX_SEP_FIREBALL = 400000.0;
99
+ // Maximum surface emissive power for fireballs (W/m2).
100
+
101
+ export const MAX_SEP_JET_FIRE = 350000.0;
102
+ // Maximum surface emissive power for a jet fire (W/m2).
103
+
104
+ export const MAX_SEP_POOL_FIRE = 350000.0;
105
+ // Maximum surface emissive power for pool fires (W/m2).
106
+
107
+ export const MAX_TIMESTEPS = 900;
108
+ // Maximum number of time steps for time varying releases.
109
+
110
+ export const MAX_VELOCITY = 100000000.0;
111
+ // Maximum release velocity (m/s).
112
+
113
+ export const MAX_VELOCITY_FLAG = 0;
114
+ // Fixed velocity capping method.
115
+
116
+ export const MAXIMUM_COMPONENT_COUNT = 20;
117
+ // Maximum number of components.
118
+
119
+ export const MAXIMUM_LEAK_DIAMETERS_COUNT = 5;
120
+ // Maximum number of leak diameters for scenario generation.
121
+
122
+ export const MAXIMUM_PT_STEPS = 441;
123
+ // Maximum number of steps in an iteration over PT space.
124
+
125
+ export const MAXIMUM_TEMPERATURE_LIMIT = 1200.0;
126
+ // Maximum temperature allowed for dispersion calculations (K).
127
+
128
+ export const MAXIMUM_WEATHER_COUNT = 10;
129
+ // Maximum number of weathers.
130
+
131
+ export const ME_EXPL_EFFICIENCY_UNCONFINED = 100.0;
132
+ // Explosion efficiency for unconfined multi-energy explosions (%).
133
+
134
+ export const ME_EXPL_EFFICIENCY_UNIFORM_CONFINED = 12.5;
135
+ // Explosion efficiency for uniform confined multi-energy explosions (%).
136
+
137
+ export const MILLER_CROSSWIND_METHOD = 0;
138
+ // Method for modelling crosswind effects for Miller model: 0 = modified Johnson approach; 1 = Full deflection.
139
+
140
+ export const MILLER_FLAME_RAD_FRACTION_METHOD = 0;
141
+ // Miller jet flame radiative fraction calculation method: 0 = Miller method; 2 = Sandia method.
142
+
143
+ export const MILLER_FLAME_TRAJECTORY = 0;
144
+ // Miller jet flame trajectory: 0 = Line segments; 1 = Curved line.
145
+
146
+ export const MILLER_LIFT_OFF_OPTION = 1;
147
+ // Method for modelling flame lift-off for Miller model: 0 = Miller method; 1 = DNV.
148
+
149
+ export const MILLER_NG_FLOWRATE_METHOD = 1;
150
+ // Miller natural gas flow rate matching method: 0 = Miller (2017); 1 = DNV [similarity approach].
151
+
152
+ export const MILLER_RAD_INTENSITY_CAP_METHOD = 2;
153
+ // Radiation intensity capping method: 0 = No capping; 1 = Max intensity capping; 2 = Stefan Boltzmann's law.
154
+
155
+ export const MIN_DROP_DIAMETER = 0.00000001;
156
+ // Cut-off droplet diameter below which droplets are no longer modelled (m).
157
+
158
+ export const MIN_EXPL_MASS = 0.0;
159
+ // Minimum explosive mass (kg).
160
+
161
+ export const MINIMUM_TEMPERATURE_LIMIT = 11.0;
162
+ // Minimum temperature allowed for dispersion calculations (K).
163
+
164
+ export const MIX_LAYER_HEIGHT_FOR_A = 1300;
165
+ // Mixing layer height for Pasquill stability class A (m).
166
+
167
+ export const MIX_LAYER_HEIGHT_FOR_AB = 1080;
168
+ // Mixing layer height for Pasquill stability class A/B (m).
169
+
170
+ export const MIX_LAYER_HEIGHT_FOR_B = 920;
171
+ // Mixing layer height for Pasquill stability class B (m).
172
+
173
+ export const MIX_LAYER_HEIGHT_FOR_BC = 880;
174
+ // Mixing layer height for Pasquill stability class B/C (m).
175
+
176
+ export const MIX_LAYER_HEIGHT_FOR_C = 840;
177
+ // Mixing layer height for Pasquill stability class C (m).
178
+
179
+ export const MIX_LAYER_HEIGHT_FOR_CD = 820;
180
+ // Mixing layer height for Pasquill stability class C/D (m).
181
+
182
+ export const MIX_LAYER_HEIGHT_FOR_D = 800;
183
+ // Mixing layer height for Pasquill stability class D (m).
184
+
185
+ export const MIX_LAYER_HEIGHT_FOR_E = 400;
186
+ // Mixing layer height for Pasquill stability class E (m).
187
+
188
+ export const MIX_LAYER_HEIGHT_FOR_F = 100;
189
+ // Mixing layer height for Pasquill stability class F (m).
190
+
191
+ export const MIX_LAYER_HEIGHT_FOR_G = 100;
192
+ // Mixing layer height for Pasquill stability class G (m).
193
+
194
+ export const N_VTIMES_CONT = 5;
195
+ // Number of time steps for continuous clouds used in explosion calculations.
196
+
197
+ export const N_VTIMES_MAX = 100;
198
+ // Maximum number of time steps for explosion calculations.
199
+
200
+ export const N_VTIMES_TV = 15;
201
+ // Number of time steps for time-varying clouds used in explosion calculations.
202
+
203
+ export const NUM_FIXED_STEPS = 20;
204
+ // Number of fixed size output steps for dispersion calculations.
205
+
206
+ export const NUM_X_VIEW = 21;
207
+ // Number of steps in the downwind direction per explosion cloud view.
208
+
209
+ export const OBSERVER_TYPE = 1;
210
+ // Planar observer type for radiation modelling.
211
+
212
+ export const PIPE_NODES_COUNT = 2;
213
+ // Number of nodes on the pipe (start, end + intermediate).
214
+
215
+ export const RAD_FRAC_GENERAL = 0.4;
216
+ // Radiative fraction for general pool fires.
217
+
218
+ export const RAD_LEVEL_GRID = 1600.0;
219
+ // The radiation level used for calculating radiation grids. The value is set equal to the lowest default radiation value present in the VesselLeak apps.
220
+
221
+ export const RAD_PROBIT_A = -36.38;
222
+ // Probit value A for radiation.
223
+
224
+ export const RAD_PROBIT_B = 2.56;
225
+ // Probit value B for radiation.
226
+
227
+ export const RAD_PROBIT_N = 1.33;
228
+ // Probit value N for radiation.
229
+
230
+ export const RADS_INTEGRATOR_TYPE = 2;
231
+ // Integration method for multi-point flame sources: 0 = Discrete; 1 = QSIMP; 2 = Gauss-Lobatto.
232
+
233
+ export const RADS_NUM_INTEGRATOR_POINTS = 30;
234
+ // Number of integration points to use for multi-point sources: 30 by default.
235
+
236
+ export const REF_HT_WIND_SPEED = 10.0;
237
+ // Reference height for wind speed.
238
+
239
+ export const REPORTING_HEIGHT_FLAG = 1;
240
+ // Centreline height is used for explosion calculations.
241
+
242
+ export const RESULT_GRID_STEP = 10.0;
243
+ // Flammable result grid step in x-direction (m).
244
+
245
+ export const SHORT_DURATION_CUTOFF = 20.0;
246
+ // Cutoff for short duration effects. Only mass released until this time is used in the fireball calculation (s).
247
+
248
+ export const SHORT_PIPE_ROUGHNESS = 0.000045;
249
+ // Short pipe roughness (m).
250
+
251
+ export const STOICH_MASS_FRAC_METHOD = 0;
252
+ // Use old method (valid for paraffins only) for calculating the stoichiometric mass fraction.
253
+
254
+ export const TNO_FLAME_TEMP = 2000.0;
255
+ // Flame temperature for TNO fireball model (K).
256
+
257
+ export const TOXIC_MIN_LETHALITY = 0.001;
258
+ // Toxics: minimum probability of death.
259
+
260
+ export const TOXIC_MIX_CALC_METHOD = 3;
261
+ // Product of each as the multi component toxic calculation method.
262
+
263
+ export const TOXIC_PD_TOLERANCE = 0.01;
264
+ // Toxics: tolerance on minimum probability of death.
265
+
266
+ export const TOXIC_PROBIT_METHOD = 1;
267
+ // Prefer Probit as the toxic calculation method, i.e. if probit data is available that will be the preferred method to use.
268
+
269
+ export const TOXIC_TAIL_TIME = 1800.0;
270
+ // Tail time for indoor toxic calculations (s).
271
+
272
+ export const UDS_MAX_TEMPERATURE = 1200.0;
273
+ // The absolute maximum temperature allowed for a user-defined source.
274
+
275
+ export const UDS_MIN_TEMPERATURE = 11.0;
276
+ // The absolute minimum temperature allowed for a user-defined source.
277
+
278
+ export const UNCONFINED_EXPLOSION_STRENGTH = 2.0;
279
+ // Unconfined explosion strength (Multi energy method).
280
+
281
+ export const UNIFORM_CONFINED_EXPLOSION_METHOD_OPTION = 3;
282
+ // Uniform confined Multi Energy explosion method.
283
+
284
+ export const USE_SHAPE_CORRELATION = -1;
285
+ // Use shape correlation for fireballs.
286
+
287
+ export const USE_SOLAR = 0;
288
+ // Exclude solar radiation from radiation calculations.
289
+
290
+ export const USE_VOLUMES = 2;
291
+ // Use volumes when specifying size of confined sources.
292
+
293
+ export const USER_DEFINED_CONFINED_EXPLOSION_METHOD_OPTION = 1;
294
+ // Unconfined Multi-Energy explosion method.
295
+
296
+ export const USER_INPUT_POST_EXPANSION_VELOCITY = 0;
297
+ // Velocity for jet fire calculations must be user supplied.
298
+
299
+ export const WIND_CUTOFF_HEIGHT = 1.0;
300
+ // Cut-off height for wind speed calculations.
301
+
302
+ export const WIND_PROFILE_FLAG = 2;
303
+ // Logarithmic wind profile.
304
+
305
+ export const PWS_CLIENT_ID = "eeca6885-127e-4405-aa1f-3a8e69acc451";
306
+ // Application constants.
307
+
308
+ export const REST_API_URI = "https://plantwebservices.dnv.com/api/";
309
+ // REST API URIs root.
310
+
311
+ export const REST_API_VERSION = "1";
312
+ // REST API version number.