measur-tools-suite 1.2.1-beta.3 → 1.2.1-beta.4

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/bin/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "measur-tools-suite",
3
- "version": "1.2.1-beta.3",
3
+ "version": "1.2.1-beta.4",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"
@@ -40,9 +40,6 @@ export interface CompressedAirPressureReductionInput {
40
40
  atmosphericPressure: number;
41
41
  /** Rated compressor pressure, units psi */
42
42
  pressureRated: number;
43
-
44
- /** Frees the underlying resource; must be called when finished with the instance */
45
- delete(): void;
46
43
  }
47
44
 
48
45
  /**
@@ -56,9 +53,6 @@ export interface CompressedAirPressureReductionOutput {
56
53
  energyUse: number;
57
54
  /** Annual energy cost, units $/year */
58
55
  energyCost: number;
59
-
60
- /** Frees the underlying resource; must be called when finished with the instance */
61
- delete(): void;
62
56
  }
63
57
 
64
58
  // ---------------------------------------------------------------------------
@@ -76,7 +70,5 @@ export function compressedAirPressureReduction(
76
70
  ): CompressedAirPressureReductionOutput;
77
71
 
78
72
  export type CompressedAirPressureReductionModule = {
79
- CompressedAirPressureReductionInput: CompressedAirPressureReductionInput;
80
- CompressedAirPressureReductionOutput: CompressedAirPressureReductionOutput;
81
73
  compressedAirPressureReduction: typeof compressedAirPressureReduction;
82
- };
74
+ };
@@ -57,9 +57,6 @@ export enum CompressedAirUtilityType {
57
57
  export interface FlowMeterMethodData {
58
58
  /** Instantaneous flow rate from the installed meter, units scfm (scf/min) */
59
59
  meterReading: number;
60
-
61
- /** Frees the underlying resource; must be called when finished with the instance */
62
- delete(): void;
63
60
  }
64
61
 
65
62
  /**
@@ -77,9 +74,6 @@ export interface BagMethodData {
77
74
  bagFillTime: number;
78
75
  /** Internal volume of the bag, units scf */
79
76
  bagVolume: number;
80
-
81
- /** Frees the underlying resource; must be called when finished with the instance */
82
- delete(): void;
83
77
  }
84
78
 
85
79
  /**
@@ -101,9 +95,6 @@ export interface PressureMethodData {
101
95
  numberOfNozzles: number;
102
96
  /** Compressed air supply pressure, units psi */
103
97
  supplyPressure: number;
104
-
105
- /** Frees the underlying resource; must be called when finished with the instance */
106
- delete(): void;
107
98
  }
108
99
 
109
100
  /**
@@ -117,9 +108,6 @@ export interface PressureMethodData {
117
108
  export interface OtherMethodData {
118
109
  /** Annual compressed air consumption, units scf/year */
119
110
  consumption: number;
120
-
121
- /** Frees the underlying resource; must be called when finished with the instance */
122
- delete(): void;
123
111
  }
124
112
 
125
113
  // ---------------------------------------------------------------------------
@@ -167,9 +155,6 @@ export interface CompressedAirReductionInput {
167
155
  compressorElectricityData: CompressorElectricityData;
168
156
  /** Quantity multiplier (not applied to pressure method) */
169
157
  units: number;
170
-
171
- /** Frees the underlying resource; must be called when finished with the instance */
172
- delete(): void;
173
158
  }
174
159
 
175
160
  /**
@@ -195,9 +180,6 @@ export interface CompressedAirReductionOutput {
195
180
  singleNozzleFlowRate: number;
196
181
  /** Annual compressed air consumption, units scf/year */
197
182
  consumption: number;
198
-
199
- /** Frees the underlying resource; must be called when finished with the instance */
200
- delete(): void;
201
183
  }
202
184
 
203
185
  // ---------------------------------------------------------------------------
@@ -290,12 +272,6 @@ export function otherMethodReduction(data: OtherMethodData): CompressedAirReduct
290
272
  export type CompressedAirReductionModule = {
291
273
  CompressedAirMeasurementMethod: typeof CompressedAirMeasurementMethod;
292
274
  CompressedAirUtilityType: typeof CompressedAirUtilityType;
293
- FlowMeterMethodData: FlowMeterMethodData;
294
- BagMethodData: BagMethodData;
295
- PressureMethodData: PressureMethodData;
296
- OtherMethodData: OtherMethodData;
297
- CompressedAirReductionInput: CompressedAirReductionInput;
298
- CompressedAirReductionOutput: CompressedAirReductionOutput;
299
275
  compressedAirReduction: typeof compressedAirReduction;
300
276
  flowMeterReduction: typeof flowMeterReduction;
301
277
  bagMethodReduction: typeof bagMethodReduction;
@@ -52,9 +52,6 @@ export interface MultimeterData {
52
52
  averageCurrent: number;
53
53
  /** Power factor of the load (dimensionless, 0-1) */
54
54
  powerFactor: number;
55
-
56
- /** Frees the underlying resource; must be called when finished with the instance */
57
- delete(): void;
58
55
  }
59
56
 
60
57
  /**
@@ -84,9 +81,6 @@ export interface NameplateData {
84
81
  motorAndDriveEfficiency: number;
85
82
  /** Motor load factor (dimensionless, 0-1) */
86
83
  loadFactor: number;
87
-
88
- /** Frees the underlying resource; must be called when finished with the instance */
89
- delete(): void;
90
84
  }
91
85
 
92
86
  /**
@@ -100,9 +94,6 @@ export interface NameplateData {
100
94
  export interface PowerMeterData {
101
95
  /** Direct power reading from the power meter, units kW */
102
96
  power: number;
103
-
104
- /** Frees the underlying resource; must be called when finished with the instance */
105
- delete(): void;
106
97
  }
107
98
 
108
99
  /**
@@ -116,9 +107,6 @@ export interface PowerMeterData {
116
107
  export interface ElectricityOtherMethodData {
117
108
  /** Annual energy consumption, units kWh/year */
118
109
  energy: number;
119
-
120
- /** Frees the underlying resource; must be called when finished with the instance */
121
- delete(): void;
122
110
  }
123
111
 
124
112
  // ---------------------------------------------------------------------------
@@ -159,9 +147,6 @@ export interface ElectricityReductionInput {
159
147
  otherMethodData: ElectricityOtherMethodData;
160
148
  /** Quantity multiplier (number of identical loads) */
161
149
  units: number;
162
-
163
- /** Frees the underlying resource; must be called when finished with the instance */
164
- delete(): void;
165
150
  }
166
151
 
167
152
  /**
@@ -182,9 +167,6 @@ export interface ElectricityReductionOutput {
182
167
  energyCost: number;
183
168
  /** Power draw per load (single unit), units kW */
184
169
  power: number;
185
-
186
- /** Frees the underlying resource; must be called when finished with the instance */
187
- delete(): void;
188
170
  }
189
171
 
190
172
  // ---------------------------------------------------------------------------
@@ -283,12 +265,6 @@ export function electricityOtherReduction(
283
265
 
284
266
  export type ElectricityReductionModule = {
285
267
  ElectricityReductionMeasurementMethod: typeof ElectricityReductionMeasurementMethod;
286
- MultimeterData: MultimeterData;
287
- NameplateData: NameplateData;
288
- PowerMeterData: PowerMeterData;
289
- ElectricityOtherMethodData: ElectricityOtherMethodData;
290
- ElectricityReductionInput: ElectricityReductionInput;
291
- ElectricityReductionOutput: ElectricityReductionOutput;
292
268
  electricityReduction: typeof electricityReduction;
293
269
  multimeterReduction: typeof multimeterReduction;
294
270
  nameplateReduction: typeof nameplateReduction;
@@ -8,6 +8,8 @@
8
8
  * tabulated data.
9
9
  */
10
10
 
11
+ import type { DoubleVector } from "../binding/registered_vectors";
12
+
11
13
  // ---------------------------------------------------------------------------
12
14
  // Input / Output value objects
13
15
  // ---------------------------------------------------------------------------
@@ -57,12 +59,9 @@ export interface InsulatedPipeInput {
57
59
  /** Emissivity of the insulation jacket outer surface (dimensionless, 0-1) */
58
60
  jacketEmissivity: number;
59
61
  /** 4th-order polynomial fit coefficients (5 values, order 4 -> 0) for pipe thermal conductivity, units W/(m.K) */
60
- pipeMaterialCoefficients: number[];
62
+ pipeMaterialCoefficients: DoubleVector;
61
63
  /** 4th-order polynomial fit coefficients (5 values, order 4 -> 0) for insulation thermal conductivity, units W/(m.K) */
62
- insulationMaterialCoefficients: number[];
63
-
64
- /** Frees the underlying resource; must be called when finished with the instance */
65
- delete(): void;
64
+ insulationMaterialCoefficients: DoubleVector;
66
65
  }
67
66
 
68
67
  /**
@@ -76,9 +75,6 @@ export interface InsulatedPipeOutput {
76
75
  heatLossPerLength: number;
77
76
  /** Annual heat loss for the full pipe, units Wh/year */
78
77
  annualHeatLoss: number;
79
-
80
- /** Frees the underlying resource; must be called when finished with the instance */
81
- delete(): void;
82
78
  }
83
79
 
84
80
  // ---------------------------------------------------------------------------
@@ -239,8 +235,6 @@ export function insulatedPipeConvectiveHeatTransferCoeff(
239
235
  ): number;
240
236
 
241
237
  export type InsulatedPipeReductionModule = {
242
- InsulatedPipeInput: InsulatedPipeInput;
243
- InsulatedPipeOutput: InsulatedPipeOutput;
244
238
  insulatedPipeReduction: typeof insulatedPipeReduction;
245
239
  insulatedPipeHeatLoss: typeof insulatedPipeHeatLoss;
246
240
  bareInsulatedPipeHeatLoss: typeof bareInsulatedPipeHeatLoss;
@@ -60,9 +60,6 @@ export interface InsulatedTankInput {
60
60
  jacketEmissivity: number;
61
61
  /** Outer surface temperature (jacket or bare tank outer wall), units Rankine */
62
62
  surfaceTemperature: number;
63
-
64
- /** Frees the underlying resource; must be called when finished with the instance */
65
- delete(): void;
66
63
  }
67
64
 
68
65
  /**
@@ -76,9 +73,6 @@ export interface InsulatedTankOutput {
76
73
  heatLoss: number;
77
74
  /** Annual heat loss (scaled, efficiency-adjusted), units BTU per 10^6 */
78
75
  annualHeatLoss: number;
79
-
80
- /** Frees the underlying resource; must be called when finished with the instance */
81
- delete(): void;
82
76
  }
83
77
 
84
78
  // ---------------------------------------------------------------------------
@@ -158,8 +152,6 @@ export function insulatedTankNaturalConvectionCoeff(
158
152
  ): number;
159
153
 
160
154
  export type InsulatedTankReductionModule = {
161
- InsulatedTankInput: InsulatedTankInput;
162
- InsulatedTankOutput: InsulatedTankOutput;
163
155
  insulatedTankReduction: typeof insulatedTankReduction;
164
156
  insulatedTankHeatLoss: typeof insulatedTankHeatLoss;
165
157
  bareTankHeatLoss: typeof bareTankHeatLoss;
@@ -42,9 +42,6 @@ export enum NaturalGasMeasurementMethod {
42
42
  export interface NaturalGasFlowMeterMethodData {
43
43
  /** Gas flow rate measured by the flow meter, units ft^3/hr */
44
44
  flowRate: number;
45
-
46
- /** Frees the underlying resource; must be called when finished with the instance */
47
- delete(): void;
48
45
  }
49
46
 
50
47
  /**
@@ -58,9 +55,6 @@ export interface NaturalGasFlowMeterMethodData {
58
55
  export interface NaturalGasOtherMethodData {
59
56
  /** Annual natural gas consumption, units MMBtu/year */
60
57
  consumption: number;
61
-
62
- /** Frees the underlying resource; must be called when finished with the instance */
63
- delete(): void;
64
58
  }
65
59
 
66
60
  /**
@@ -77,9 +71,6 @@ export interface AirMassFlowMeasuredData {
77
71
  areaOfDuct: number;
78
72
  /** Air velocity measured in the duct, units ft/min */
79
73
  airVelocity: number;
80
-
81
- /** Frees the underlying resource; must be called when finished with the instance */
82
- delete(): void;
83
74
  }
84
75
 
85
76
  /**
@@ -93,9 +84,6 @@ export interface AirMassFlowMeasuredData {
93
84
  export interface AirMassFlowNameplateData {
94
85
  /** Nameplate air flow rate, units ft^3/min */
95
86
  airFlow: number;
96
-
97
- /** Frees the underlying resource; must be called when finished with the instance */
98
- delete(): void;
99
87
  }
100
88
 
101
89
  /**
@@ -124,9 +112,6 @@ export interface AirMassFlowData {
124
112
  outletTemperature: number;
125
113
  /** System efficiency (dimensionless, 0-1) */
126
114
  systemEfficiency: number;
127
-
128
- /** Frees the underlying resource; must be called when finished with the instance */
129
- delete(): void;
130
115
  }
131
116
 
132
117
  /**
@@ -149,9 +134,6 @@ export interface WaterMassFlowData {
149
134
  outletTemperature: number;
150
135
  /** System efficiency (dimensionless, 0-1) */
151
136
  systemEfficiency: number;
152
-
153
- /** Frees the underlying resource; must be called when finished with the instance */
154
- delete(): void;
155
137
  }
156
138
 
157
139
  // ---------------------------------------------------------------------------
@@ -191,9 +173,6 @@ export interface NaturalGasReductionInput {
191
173
  waterMassFlowData: WaterMassFlowData;
192
174
  /** Unit conversion multiplier applied to flow rates */
193
175
  units: number;
194
-
195
- /** Frees the underlying resource; must be called when finished with the instance */
196
- delete(): void;
197
176
  }
198
177
 
199
178
  /**
@@ -217,9 +196,6 @@ export interface NaturalGasReductionOutput {
217
196
  heatFlow: number;
218
197
  /** Total gas or fluid flow, units ft^3/hr */
219
198
  totalFlow: number;
220
-
221
- /** Frees the underlying resource; must be called when finished with the instance */
222
- delete(): void;
223
199
  }
224
200
 
225
201
  // ---------------------------------------------------------------------------
@@ -312,14 +288,6 @@ export function naturalGasOtherMethodReduction(
312
288
 
313
289
  export type NaturalGasReductionModule = {
314
290
  NaturalGasMeasurementMethod: typeof NaturalGasMeasurementMethod;
315
- NaturalGasFlowMeterMethodData: NaturalGasFlowMeterMethodData;
316
- NaturalGasOtherMethodData: NaturalGasOtherMethodData;
317
- AirMassFlowMeasuredData: AirMassFlowMeasuredData;
318
- AirMassFlowNameplateData: AirMassFlowNameplateData;
319
- AirMassFlowData: AirMassFlowData;
320
- WaterMassFlowData: WaterMassFlowData;
321
- NaturalGasReductionInput: NaturalGasReductionInput;
322
- NaturalGasReductionOutput: NaturalGasReductionOutput;
323
291
  naturalGasReduction: typeof naturalGasReduction;
324
292
  flowMeterMethodReduction: typeof flowMeterMethodReduction;
325
293
  airMassFlowMethodReduction: typeof airMassFlowMethodReduction;
@@ -59,9 +59,6 @@ export enum SteamUtilityType {
59
59
  export interface SteamFlowMeterMethodData {
60
60
  /** Flow rate (water m^3/min, steam kg/hr) */
61
61
  flowRate: number;
62
-
63
- /** Frees the underlying resource; must be called when finished with the instance */
64
- delete(): void;
65
62
  }
66
63
 
67
64
  /**
@@ -75,9 +72,6 @@ export interface SteamFlowMeterMethodData {
75
72
  export interface SteamMassFlowNameplateData {
76
73
  /** Nameplate flow rate (water m^3/min, steam kg/hr) */
77
74
  flowRate: number;
78
-
79
- /** Frees the underlying resource; must be called when finished with the instance */
80
- delete(): void;
81
75
  }
82
76
 
83
77
  /**
@@ -93,9 +87,6 @@ export interface SteamMassFlowMeasuredData {
93
87
  areaOfDuct: number;
94
88
  /** Measured air velocity in the duct, units m/min */
95
89
  airVelocity: number;
96
-
97
- /** Frees the underlying resource; must be called when finished with the instance */
98
- delete(): void;
99
90
  }
100
91
 
101
92
  /**
@@ -122,9 +113,6 @@ export interface SteamMassFlowMethodData {
122
113
  inletTemperature: number;
123
114
  /** Outlet temperature, units degC */
124
115
  outletTemperature: number;
125
-
126
- /** Frees the underlying resource; must be called when finished with the instance */
127
- delete(): void;
128
116
  }
129
117
 
130
118
  /**
@@ -138,9 +126,6 @@ export interface SteamMassFlowMethodData {
138
126
  export interface SteamOffsheetMethodData {
139
127
  /** Total annual energy consumption, units kJ/year */
140
128
  consumption: number;
141
-
142
- /** Frees the underlying resource; must be called when finished with the instance */
143
- delete(): void;
144
129
  }
145
130
 
146
131
  // ---------------------------------------------------------------------------
@@ -202,9 +187,6 @@ export interface SteamReductionInput {
202
187
  steamVariable: number;
203
188
  /** Feedwater temperature, units K */
204
189
  feedWaterTemperature: number;
205
-
206
- /** Frees the underlying resource; must be called when finished with the instance */
207
- delete(): void;
208
190
  }
209
191
 
210
192
  /**
@@ -224,9 +206,6 @@ export interface SteamReductionOutput {
224
206
  energyUse: number;
225
207
  /** Annual energy cost, units $/year */
226
208
  energyCost: number;
227
-
228
- /** Frees the underlying resource; must be called when finished with the instance */
229
- delete(): void;
230
209
  }
231
210
 
232
211
  // ---------------------------------------------------------------------------
@@ -248,12 +227,5 @@ export function steamReduction(input_vec: SteamReductionInputV): SteamReductionO
248
227
  export type SteamReductionModule = {
249
228
  SteamMeasurementMethod: typeof SteamMeasurementMethod;
250
229
  SteamUtilityType: typeof SteamUtilityType;
251
- SteamFlowMeterMethodData: SteamFlowMeterMethodData;
252
- SteamMassFlowNameplateData: SteamMassFlowNameplateData;
253
- SteamMassFlowMeasuredData: SteamMassFlowMeasuredData;
254
- SteamMassFlowMethodData: SteamMassFlowMethodData;
255
- SteamOffsheetMethodData: SteamOffsheetMethodData;
256
- SteamReductionInput: SteamReductionInput;
257
- SteamReductionOutput: SteamReductionOutput;
258
230
  steamReduction: typeof steamReduction;
259
231
  };
@@ -42,9 +42,6 @@ export enum WaterReductionMeasurementMethod {
42
42
  export interface MeteredFlowMethodData {
43
43
  /** Instantaneous flow rate from the meter, units gal/min */
44
44
  meterReading: number;
45
-
46
- /** Frees the underlying resource; must be called when finished with the instance */
47
- delete(): void;
48
45
  }
49
46
 
50
47
  /**
@@ -65,9 +62,6 @@ export interface VolumeMeterMethodData {
65
62
  initialMeterReading: number;
66
63
  /** Duration of the measurement interval, units min */
67
64
  elapsedTime: number;
68
-
69
- /** Frees the underlying resource; must be called when finished with the instance */
70
- delete(): void;
71
65
  }
72
66
 
73
67
  /**
@@ -84,9 +78,6 @@ export interface BucketMethodData {
84
78
  bucketVolume: number;
85
79
  /** Time required to fill the bucket, units s */
86
80
  bucketFillTime: number;
87
-
88
- /** Frees the underlying resource; must be called when finished with the instance */
89
- delete(): void;
90
81
  }
91
82
 
92
83
  /**
@@ -100,9 +91,6 @@ export interface BucketMethodData {
100
91
  export interface WaterOtherMethodData {
101
92
  /** Annual water consumption, units gal/year */
102
93
  consumption: number;
103
-
104
- /** Frees the underlying resource; must be called when finished with the instance */
105
- delete(): void;
106
94
  }
107
95
 
108
96
  // ---------------------------------------------------------------------------
@@ -139,9 +127,6 @@ export interface WaterReductionInput {
139
127
  bucketMethodData: BucketMethodData;
140
128
  /** Data for the other method */
141
129
  otherMethodData: WaterOtherMethodData;
142
-
143
- /** Frees the underlying resource; must be called when finished with the instance */
144
- delete(): void;
145
130
  }
146
131
 
147
132
  /**
@@ -158,9 +143,6 @@ export interface WaterReductionOutput {
158
143
  waterUse: number;
159
144
  /** Annual water cost, units $/year */
160
145
  waterCost: number;
161
-
162
- /** Frees the underlying resource; must be called when finished with the instance */
163
- delete(): void;
164
146
  }
165
147
 
166
148
  // ---------------------------------------------------------------------------
@@ -244,13 +226,6 @@ export function otherReduction(
244
226
 
245
227
  export type WaterReductionModule = {
246
228
  WaterReductionMeasurementMethod: typeof WaterReductionMeasurementMethod;
247
- MeteredFlowMethodData: MeteredFlowMethodData;
248
- VolumeMeterMethodData: VolumeMeterMethodData;
249
- BucketMethodData: BucketMethodData;
250
- WaterOtherMethodData: WaterOtherMethodData;
251
- WaterReductionInput: WaterReductionInput;
252
- WaterReductionOutput: WaterReductionOutput;
253
- WaterReductionInputV: WaterReductionInputV;
254
229
  waterReduction: typeof waterReduction;
255
230
  meteredFlowReduction: typeof meteredFlowReduction;
256
231
  volumeMeterReduction: typeof volumeMeterReduction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "measur-tools-suite",
3
- "version": "1.2.1-beta.3",
3
+ "version": "1.2.1-beta.4",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"
@@ -40,9 +40,6 @@ export interface CompressedAirPressureReductionInput {
40
40
  atmosphericPressure: number;
41
41
  /** Rated compressor pressure, units psi */
42
42
  pressureRated: number;
43
-
44
- /** Frees the underlying resource; must be called when finished with the instance */
45
- delete(): void;
46
43
  }
47
44
 
48
45
  /**
@@ -56,9 +53,6 @@ export interface CompressedAirPressureReductionOutput {
56
53
  energyUse: number;
57
54
  /** Annual energy cost, units $/year */
58
55
  energyCost: number;
59
-
60
- /** Frees the underlying resource; must be called when finished with the instance */
61
- delete(): void;
62
56
  }
63
57
 
64
58
  // ---------------------------------------------------------------------------
@@ -76,7 +70,5 @@ export function compressedAirPressureReduction(
76
70
  ): CompressedAirPressureReductionOutput;
77
71
 
78
72
  export type CompressedAirPressureReductionModule = {
79
- CompressedAirPressureReductionInput: CompressedAirPressureReductionInput;
80
- CompressedAirPressureReductionOutput: CompressedAirPressureReductionOutput;
81
73
  compressedAirPressureReduction: typeof compressedAirPressureReduction;
82
- };
74
+ };
@@ -57,9 +57,6 @@ export enum CompressedAirUtilityType {
57
57
  export interface FlowMeterMethodData {
58
58
  /** Instantaneous flow rate from the installed meter, units scfm (scf/min) */
59
59
  meterReading: number;
60
-
61
- /** Frees the underlying resource; must be called when finished with the instance */
62
- delete(): void;
63
60
  }
64
61
 
65
62
  /**
@@ -77,9 +74,6 @@ export interface BagMethodData {
77
74
  bagFillTime: number;
78
75
  /** Internal volume of the bag, units scf */
79
76
  bagVolume: number;
80
-
81
- /** Frees the underlying resource; must be called when finished with the instance */
82
- delete(): void;
83
77
  }
84
78
 
85
79
  /**
@@ -101,9 +95,6 @@ export interface PressureMethodData {
101
95
  numberOfNozzles: number;
102
96
  /** Compressed air supply pressure, units psi */
103
97
  supplyPressure: number;
104
-
105
- /** Frees the underlying resource; must be called when finished with the instance */
106
- delete(): void;
107
98
  }
108
99
 
109
100
  /**
@@ -117,9 +108,6 @@ export interface PressureMethodData {
117
108
  export interface OtherMethodData {
118
109
  /** Annual compressed air consumption, units scf/year */
119
110
  consumption: number;
120
-
121
- /** Frees the underlying resource; must be called when finished with the instance */
122
- delete(): void;
123
111
  }
124
112
 
125
113
  // ---------------------------------------------------------------------------
@@ -167,9 +155,6 @@ export interface CompressedAirReductionInput {
167
155
  compressorElectricityData: CompressorElectricityData;
168
156
  /** Quantity multiplier (not applied to pressure method) */
169
157
  units: number;
170
-
171
- /** Frees the underlying resource; must be called when finished with the instance */
172
- delete(): void;
173
158
  }
174
159
 
175
160
  /**
@@ -195,9 +180,6 @@ export interface CompressedAirReductionOutput {
195
180
  singleNozzleFlowRate: number;
196
181
  /** Annual compressed air consumption, units scf/year */
197
182
  consumption: number;
198
-
199
- /** Frees the underlying resource; must be called when finished with the instance */
200
- delete(): void;
201
183
  }
202
184
 
203
185
  // ---------------------------------------------------------------------------
@@ -290,12 +272,6 @@ export function otherMethodReduction(data: OtherMethodData): CompressedAirReduct
290
272
  export type CompressedAirReductionModule = {
291
273
  CompressedAirMeasurementMethod: typeof CompressedAirMeasurementMethod;
292
274
  CompressedAirUtilityType: typeof CompressedAirUtilityType;
293
- FlowMeterMethodData: FlowMeterMethodData;
294
- BagMethodData: BagMethodData;
295
- PressureMethodData: PressureMethodData;
296
- OtherMethodData: OtherMethodData;
297
- CompressedAirReductionInput: CompressedAirReductionInput;
298
- CompressedAirReductionOutput: CompressedAirReductionOutput;
299
275
  compressedAirReduction: typeof compressedAirReduction;
300
276
  flowMeterReduction: typeof flowMeterReduction;
301
277
  bagMethodReduction: typeof bagMethodReduction;
@@ -52,9 +52,6 @@ export interface MultimeterData {
52
52
  averageCurrent: number;
53
53
  /** Power factor of the load (dimensionless, 0-1) */
54
54
  powerFactor: number;
55
-
56
- /** Frees the underlying resource; must be called when finished with the instance */
57
- delete(): void;
58
55
  }
59
56
 
60
57
  /**
@@ -84,9 +81,6 @@ export interface NameplateData {
84
81
  motorAndDriveEfficiency: number;
85
82
  /** Motor load factor (dimensionless, 0-1) */
86
83
  loadFactor: number;
87
-
88
- /** Frees the underlying resource; must be called when finished with the instance */
89
- delete(): void;
90
84
  }
91
85
 
92
86
  /**
@@ -100,9 +94,6 @@ export interface NameplateData {
100
94
  export interface PowerMeterData {
101
95
  /** Direct power reading from the power meter, units kW */
102
96
  power: number;
103
-
104
- /** Frees the underlying resource; must be called when finished with the instance */
105
- delete(): void;
106
97
  }
107
98
 
108
99
  /**
@@ -116,9 +107,6 @@ export interface PowerMeterData {
116
107
  export interface ElectricityOtherMethodData {
117
108
  /** Annual energy consumption, units kWh/year */
118
109
  energy: number;
119
-
120
- /** Frees the underlying resource; must be called when finished with the instance */
121
- delete(): void;
122
110
  }
123
111
 
124
112
  // ---------------------------------------------------------------------------
@@ -159,9 +147,6 @@ export interface ElectricityReductionInput {
159
147
  otherMethodData: ElectricityOtherMethodData;
160
148
  /** Quantity multiplier (number of identical loads) */
161
149
  units: number;
162
-
163
- /** Frees the underlying resource; must be called when finished with the instance */
164
- delete(): void;
165
150
  }
166
151
 
167
152
  /**
@@ -182,9 +167,6 @@ export interface ElectricityReductionOutput {
182
167
  energyCost: number;
183
168
  /** Power draw per load (single unit), units kW */
184
169
  power: number;
185
-
186
- /** Frees the underlying resource; must be called when finished with the instance */
187
- delete(): void;
188
170
  }
189
171
 
190
172
  // ---------------------------------------------------------------------------
@@ -283,12 +265,6 @@ export function electricityOtherReduction(
283
265
 
284
266
  export type ElectricityReductionModule = {
285
267
  ElectricityReductionMeasurementMethod: typeof ElectricityReductionMeasurementMethod;
286
- MultimeterData: MultimeterData;
287
- NameplateData: NameplateData;
288
- PowerMeterData: PowerMeterData;
289
- ElectricityOtherMethodData: ElectricityOtherMethodData;
290
- ElectricityReductionInput: ElectricityReductionInput;
291
- ElectricityReductionOutput: ElectricityReductionOutput;
292
268
  electricityReduction: typeof electricityReduction;
293
269
  multimeterReduction: typeof multimeterReduction;
294
270
  nameplateReduction: typeof nameplateReduction;
@@ -8,6 +8,8 @@
8
8
  * tabulated data.
9
9
  */
10
10
 
11
+ import type { DoubleVector } from "../binding/registered_vectors";
12
+
11
13
  // ---------------------------------------------------------------------------
12
14
  // Input / Output value objects
13
15
  // ---------------------------------------------------------------------------
@@ -57,12 +59,9 @@ export interface InsulatedPipeInput {
57
59
  /** Emissivity of the insulation jacket outer surface (dimensionless, 0-1) */
58
60
  jacketEmissivity: number;
59
61
  /** 4th-order polynomial fit coefficients (5 values, order 4 -> 0) for pipe thermal conductivity, units W/(m.K) */
60
- pipeMaterialCoefficients: number[];
62
+ pipeMaterialCoefficients: DoubleVector;
61
63
  /** 4th-order polynomial fit coefficients (5 values, order 4 -> 0) for insulation thermal conductivity, units W/(m.K) */
62
- insulationMaterialCoefficients: number[];
63
-
64
- /** Frees the underlying resource; must be called when finished with the instance */
65
- delete(): void;
64
+ insulationMaterialCoefficients: DoubleVector;
66
65
  }
67
66
 
68
67
  /**
@@ -76,9 +75,6 @@ export interface InsulatedPipeOutput {
76
75
  heatLossPerLength: number;
77
76
  /** Annual heat loss for the full pipe, units Wh/year */
78
77
  annualHeatLoss: number;
79
-
80
- /** Frees the underlying resource; must be called when finished with the instance */
81
- delete(): void;
82
78
  }
83
79
 
84
80
  // ---------------------------------------------------------------------------
@@ -239,8 +235,6 @@ export function insulatedPipeConvectiveHeatTransferCoeff(
239
235
  ): number;
240
236
 
241
237
  export type InsulatedPipeReductionModule = {
242
- InsulatedPipeInput: InsulatedPipeInput;
243
- InsulatedPipeOutput: InsulatedPipeOutput;
244
238
  insulatedPipeReduction: typeof insulatedPipeReduction;
245
239
  insulatedPipeHeatLoss: typeof insulatedPipeHeatLoss;
246
240
  bareInsulatedPipeHeatLoss: typeof bareInsulatedPipeHeatLoss;
@@ -60,9 +60,6 @@ export interface InsulatedTankInput {
60
60
  jacketEmissivity: number;
61
61
  /** Outer surface temperature (jacket or bare tank outer wall), units Rankine */
62
62
  surfaceTemperature: number;
63
-
64
- /** Frees the underlying resource; must be called when finished with the instance */
65
- delete(): void;
66
63
  }
67
64
 
68
65
  /**
@@ -76,9 +73,6 @@ export interface InsulatedTankOutput {
76
73
  heatLoss: number;
77
74
  /** Annual heat loss (scaled, efficiency-adjusted), units BTU per 10^6 */
78
75
  annualHeatLoss: number;
79
-
80
- /** Frees the underlying resource; must be called when finished with the instance */
81
- delete(): void;
82
76
  }
83
77
 
84
78
  // ---------------------------------------------------------------------------
@@ -158,8 +152,6 @@ export function insulatedTankNaturalConvectionCoeff(
158
152
  ): number;
159
153
 
160
154
  export type InsulatedTankReductionModule = {
161
- InsulatedTankInput: InsulatedTankInput;
162
- InsulatedTankOutput: InsulatedTankOutput;
163
155
  insulatedTankReduction: typeof insulatedTankReduction;
164
156
  insulatedTankHeatLoss: typeof insulatedTankHeatLoss;
165
157
  bareTankHeatLoss: typeof bareTankHeatLoss;
@@ -42,9 +42,6 @@ export enum NaturalGasMeasurementMethod {
42
42
  export interface NaturalGasFlowMeterMethodData {
43
43
  /** Gas flow rate measured by the flow meter, units ft^3/hr */
44
44
  flowRate: number;
45
-
46
- /** Frees the underlying resource; must be called when finished with the instance */
47
- delete(): void;
48
45
  }
49
46
 
50
47
  /**
@@ -58,9 +55,6 @@ export interface NaturalGasFlowMeterMethodData {
58
55
  export interface NaturalGasOtherMethodData {
59
56
  /** Annual natural gas consumption, units MMBtu/year */
60
57
  consumption: number;
61
-
62
- /** Frees the underlying resource; must be called when finished with the instance */
63
- delete(): void;
64
58
  }
65
59
 
66
60
  /**
@@ -77,9 +71,6 @@ export interface AirMassFlowMeasuredData {
77
71
  areaOfDuct: number;
78
72
  /** Air velocity measured in the duct, units ft/min */
79
73
  airVelocity: number;
80
-
81
- /** Frees the underlying resource; must be called when finished with the instance */
82
- delete(): void;
83
74
  }
84
75
 
85
76
  /**
@@ -93,9 +84,6 @@ export interface AirMassFlowMeasuredData {
93
84
  export interface AirMassFlowNameplateData {
94
85
  /** Nameplate air flow rate, units ft^3/min */
95
86
  airFlow: number;
96
-
97
- /** Frees the underlying resource; must be called when finished with the instance */
98
- delete(): void;
99
87
  }
100
88
 
101
89
  /**
@@ -124,9 +112,6 @@ export interface AirMassFlowData {
124
112
  outletTemperature: number;
125
113
  /** System efficiency (dimensionless, 0-1) */
126
114
  systemEfficiency: number;
127
-
128
- /** Frees the underlying resource; must be called when finished with the instance */
129
- delete(): void;
130
115
  }
131
116
 
132
117
  /**
@@ -149,9 +134,6 @@ export interface WaterMassFlowData {
149
134
  outletTemperature: number;
150
135
  /** System efficiency (dimensionless, 0-1) */
151
136
  systemEfficiency: number;
152
-
153
- /** Frees the underlying resource; must be called when finished with the instance */
154
- delete(): void;
155
137
  }
156
138
 
157
139
  // ---------------------------------------------------------------------------
@@ -191,9 +173,6 @@ export interface NaturalGasReductionInput {
191
173
  waterMassFlowData: WaterMassFlowData;
192
174
  /** Unit conversion multiplier applied to flow rates */
193
175
  units: number;
194
-
195
- /** Frees the underlying resource; must be called when finished with the instance */
196
- delete(): void;
197
176
  }
198
177
 
199
178
  /**
@@ -217,9 +196,6 @@ export interface NaturalGasReductionOutput {
217
196
  heatFlow: number;
218
197
  /** Total gas or fluid flow, units ft^3/hr */
219
198
  totalFlow: number;
220
-
221
- /** Frees the underlying resource; must be called when finished with the instance */
222
- delete(): void;
223
199
  }
224
200
 
225
201
  // ---------------------------------------------------------------------------
@@ -312,14 +288,6 @@ export function naturalGasOtherMethodReduction(
312
288
 
313
289
  export type NaturalGasReductionModule = {
314
290
  NaturalGasMeasurementMethod: typeof NaturalGasMeasurementMethod;
315
- NaturalGasFlowMeterMethodData: NaturalGasFlowMeterMethodData;
316
- NaturalGasOtherMethodData: NaturalGasOtherMethodData;
317
- AirMassFlowMeasuredData: AirMassFlowMeasuredData;
318
- AirMassFlowNameplateData: AirMassFlowNameplateData;
319
- AirMassFlowData: AirMassFlowData;
320
- WaterMassFlowData: WaterMassFlowData;
321
- NaturalGasReductionInput: NaturalGasReductionInput;
322
- NaturalGasReductionOutput: NaturalGasReductionOutput;
323
291
  naturalGasReduction: typeof naturalGasReduction;
324
292
  flowMeterMethodReduction: typeof flowMeterMethodReduction;
325
293
  airMassFlowMethodReduction: typeof airMassFlowMethodReduction;
@@ -59,9 +59,6 @@ export enum SteamUtilityType {
59
59
  export interface SteamFlowMeterMethodData {
60
60
  /** Flow rate (water m^3/min, steam kg/hr) */
61
61
  flowRate: number;
62
-
63
- /** Frees the underlying resource; must be called when finished with the instance */
64
- delete(): void;
65
62
  }
66
63
 
67
64
  /**
@@ -75,9 +72,6 @@ export interface SteamFlowMeterMethodData {
75
72
  export interface SteamMassFlowNameplateData {
76
73
  /** Nameplate flow rate (water m^3/min, steam kg/hr) */
77
74
  flowRate: number;
78
-
79
- /** Frees the underlying resource; must be called when finished with the instance */
80
- delete(): void;
81
75
  }
82
76
 
83
77
  /**
@@ -93,9 +87,6 @@ export interface SteamMassFlowMeasuredData {
93
87
  areaOfDuct: number;
94
88
  /** Measured air velocity in the duct, units m/min */
95
89
  airVelocity: number;
96
-
97
- /** Frees the underlying resource; must be called when finished with the instance */
98
- delete(): void;
99
90
  }
100
91
 
101
92
  /**
@@ -122,9 +113,6 @@ export interface SteamMassFlowMethodData {
122
113
  inletTemperature: number;
123
114
  /** Outlet temperature, units degC */
124
115
  outletTemperature: number;
125
-
126
- /** Frees the underlying resource; must be called when finished with the instance */
127
- delete(): void;
128
116
  }
129
117
 
130
118
  /**
@@ -138,9 +126,6 @@ export interface SteamMassFlowMethodData {
138
126
  export interface SteamOffsheetMethodData {
139
127
  /** Total annual energy consumption, units kJ/year */
140
128
  consumption: number;
141
-
142
- /** Frees the underlying resource; must be called when finished with the instance */
143
- delete(): void;
144
129
  }
145
130
 
146
131
  // ---------------------------------------------------------------------------
@@ -202,9 +187,6 @@ export interface SteamReductionInput {
202
187
  steamVariable: number;
203
188
  /** Feedwater temperature, units K */
204
189
  feedWaterTemperature: number;
205
-
206
- /** Frees the underlying resource; must be called when finished with the instance */
207
- delete(): void;
208
190
  }
209
191
 
210
192
  /**
@@ -224,9 +206,6 @@ export interface SteamReductionOutput {
224
206
  energyUse: number;
225
207
  /** Annual energy cost, units $/year */
226
208
  energyCost: number;
227
-
228
- /** Frees the underlying resource; must be called when finished with the instance */
229
- delete(): void;
230
209
  }
231
210
 
232
211
  // ---------------------------------------------------------------------------
@@ -248,12 +227,5 @@ export function steamReduction(input_vec: SteamReductionInputV): SteamReductionO
248
227
  export type SteamReductionModule = {
249
228
  SteamMeasurementMethod: typeof SteamMeasurementMethod;
250
229
  SteamUtilityType: typeof SteamUtilityType;
251
- SteamFlowMeterMethodData: SteamFlowMeterMethodData;
252
- SteamMassFlowNameplateData: SteamMassFlowNameplateData;
253
- SteamMassFlowMeasuredData: SteamMassFlowMeasuredData;
254
- SteamMassFlowMethodData: SteamMassFlowMethodData;
255
- SteamOffsheetMethodData: SteamOffsheetMethodData;
256
- SteamReductionInput: SteamReductionInput;
257
- SteamReductionOutput: SteamReductionOutput;
258
230
  steamReduction: typeof steamReduction;
259
231
  };
@@ -42,9 +42,6 @@ export enum WaterReductionMeasurementMethod {
42
42
  export interface MeteredFlowMethodData {
43
43
  /** Instantaneous flow rate from the meter, units gal/min */
44
44
  meterReading: number;
45
-
46
- /** Frees the underlying resource; must be called when finished with the instance */
47
- delete(): void;
48
45
  }
49
46
 
50
47
  /**
@@ -65,9 +62,6 @@ export interface VolumeMeterMethodData {
65
62
  initialMeterReading: number;
66
63
  /** Duration of the measurement interval, units min */
67
64
  elapsedTime: number;
68
-
69
- /** Frees the underlying resource; must be called when finished with the instance */
70
- delete(): void;
71
65
  }
72
66
 
73
67
  /**
@@ -84,9 +78,6 @@ export interface BucketMethodData {
84
78
  bucketVolume: number;
85
79
  /** Time required to fill the bucket, units s */
86
80
  bucketFillTime: number;
87
-
88
- /** Frees the underlying resource; must be called when finished with the instance */
89
- delete(): void;
90
81
  }
91
82
 
92
83
  /**
@@ -100,9 +91,6 @@ export interface BucketMethodData {
100
91
  export interface WaterOtherMethodData {
101
92
  /** Annual water consumption, units gal/year */
102
93
  consumption: number;
103
-
104
- /** Frees the underlying resource; must be called when finished with the instance */
105
- delete(): void;
106
94
  }
107
95
 
108
96
  // ---------------------------------------------------------------------------
@@ -139,9 +127,6 @@ export interface WaterReductionInput {
139
127
  bucketMethodData: BucketMethodData;
140
128
  /** Data for the other method */
141
129
  otherMethodData: WaterOtherMethodData;
142
-
143
- /** Frees the underlying resource; must be called when finished with the instance */
144
- delete(): void;
145
130
  }
146
131
 
147
132
  /**
@@ -158,9 +143,6 @@ export interface WaterReductionOutput {
158
143
  waterUse: number;
159
144
  /** Annual water cost, units $/year */
160
145
  waterCost: number;
161
-
162
- /** Frees the underlying resource; must be called when finished with the instance */
163
- delete(): void;
164
146
  }
165
147
 
166
148
  // ---------------------------------------------------------------------------
@@ -244,13 +226,6 @@ export function otherReduction(
244
226
 
245
227
  export type WaterReductionModule = {
246
228
  WaterReductionMeasurementMethod: typeof WaterReductionMeasurementMethod;
247
- MeteredFlowMethodData: MeteredFlowMethodData;
248
- VolumeMeterMethodData: VolumeMeterMethodData;
249
- BucketMethodData: BucketMethodData;
250
- WaterOtherMethodData: WaterOtherMethodData;
251
- WaterReductionInput: WaterReductionInput;
252
- WaterReductionOutput: WaterReductionOutput;
253
- WaterReductionInputV: WaterReductionInputV;
254
229
  waterReduction: typeof waterReduction;
255
230
  meteredFlowReduction: typeof meteredFlowReduction;
256
231
  volumeMeterReduction: typeof volumeMeterReduction;