measur-tools-suite 1.2.1 → 1.2.2-beta.1

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",
3
+ "version": "1.2.2-beta.1",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"
@@ -4,6 +4,8 @@
4
4
  * Chiller Efficiency (Temperature Reset Capacity, Staging).
5
5
  */
6
6
 
7
+ import type { DoubleVector } from '../binding/registered_vectors';
8
+
7
9
  // ---------------------------------------------------------------------------
8
10
  // Enumerations
9
11
  // ---------------------------------------------------------------------------
@@ -103,10 +105,16 @@ export interface PowerEnergyConsumptionOutput {
103
105
  * @property savingsEnergy double, units kWh
104
106
  */
105
107
  export interface StagingPowerConsumptionOutput {
106
- /** Power consumption for each baseline chiller load, units kW */
107
- baselinePowerList: number[];
108
- /** Power consumption for each modification chiller load, units kW */
109
- modPowerList: number[];
108
+ /**
109
+ * Registered WASM vector of baseline chiller power values, units kW.
110
+ * Call `delete()` when finished.
111
+ */
112
+ baselinePowerList: DoubleVector;
113
+ /**
114
+ * Registered WASM vector of modification chiller power values, units kW.
115
+ * Call `delete()` when finished.
116
+ */
117
+ modPowerList: DoubleVector;
110
118
  /** Total baseline power, units kW */
111
119
  baselineTotalPower: number;
112
120
  /** Total baseline energy, units kWh */
@@ -328,8 +336,8 @@ export function ChillerCapacityEfficiency(
328
336
  * @param operatingHours double, operating hours, units hours
329
337
  * @param waterSupplyTemp double, chilled water supply temperature, units F
330
338
  * @param waterEnteringTemp double, condenser water entering temperature, units F
331
- * @param baselineLoadList list of doubles for each baseline chiller load, units ton
332
- * @param modLoadList list of doubles for each modification chiller load, units ton
339
+ * @param baselineLoadList Registered WASM vector of baseline chiller loads, units ton
340
+ * @param modLoadList Registered WASM vector of modification chiller loads, units ton
333
341
  * @returns {@link StagingPowerConsumptionOutput}
334
342
  */
335
343
  export function ChillerStagingEfficiency(
@@ -342,8 +350,8 @@ export function ChillerStagingEfficiency(
342
350
  operatingHours: number,
343
351
  waterSupplyTemp: number,
344
352
  waterEnteringTemp: number,
345
- baselineLoadList: number[],
346
- modLoadList: number[]
353
+ baselineLoadList: DoubleVector,
354
+ modLoadList: DoubleVector
347
355
  ): StagingPowerConsumptionOutput;
348
356
 
349
357
  export type ChillersModule = {
@@ -14,6 +14,7 @@ import type {
14
14
  Solve,
15
15
  TurbineProperty,
16
16
  } from './ssmtEnum';
17
+ import type { InletVector } from '../binding/registered_vectors';
17
18
 
18
19
  export type { ThermodynamicQuantity, Solve, TurbineProperty };
19
20
 
@@ -564,9 +565,10 @@ export declare class Inlet {
564
565
  export declare class Header {
565
566
  /**
566
567
  * @param headerPressure Header pressure, units MPa
567
- * @param inletVec Array of {@link Inlet} objects
568
+ * @param inletVec Registered WASM vector of {@link Inlet} objects. Call
569
+ * `delete()` when finished with the vector.
568
570
  */
569
- constructor(headerPressure: number, inletVec: Inlet[]);
571
+ constructor(headerPressure: number, inletVec: InletVector);
570
572
 
571
573
  /** @returns {@link SteamPropertiesOutput} combined header steam properties */
572
574
  getHeaderProperties(): SteamPropertiesOutput;
@@ -576,8 +578,11 @@ export declare class Header {
576
578
  getInletEnergyFlow(): number;
577
579
  /** @returns Total inlet mass flow, units kg/hr */
578
580
  getInletMassFlow(): number;
579
- /** @returns Array of {@link Inlet} objects */
580
- getInlets(): Inlet[];
581
+ /**
582
+ * @returns Registered WASM vector of {@link Inlet} objects. Call `delete()`
583
+ * when finished with the vector.
584
+ */
585
+ getInlets(): InletVector;
581
586
 
582
587
  /** Frees the underlying resource; must be called when finished with the instance */
583
588
  delete(): void;
@@ -5,7 +5,7 @@
5
5
  * process outputs with and without the full iteration calculations table.
6
6
  */
7
7
 
8
- import { CalculationsTableV } from "../binding/registered_vectors";
8
+ import type { CalculationsTableV, DoubleVector } from "../binding/registered_vectors";
9
9
 
10
10
  /**
11
11
  * Iteration row of intermediate wastewater-treatment calculations.
@@ -67,8 +67,11 @@ export declare class CalculationsTable {
67
67
  /** Solids retention time, units days. */
68
68
  SRT: number;
69
69
 
70
- /** @returns Numeric array view of this row in model-defined order */
71
- getArray(): number[];
70
+ /**
71
+ * @returns Registered WASM vector of row values in model-defined order.
72
+ * Call `delete()` when finished.
73
+ */
74
+ getArray(): DoubleVector;
72
75
 
73
76
  /** Frees the underlying resource; must be called when finished with the instance */
74
77
  delete(): void;
@@ -33,7 +33,7 @@ CMAKE_BUILD_TYPE:STRING=Release
33
33
  CMAKE_COLOR_MAKEFILE:BOOL=ON
34
34
 
35
35
  //No help, variable specified on the command line.
36
- CMAKE_CROSSCOMPILING_EMULATOR:UNINITIALIZED=/home/runner/work/_temp/42c67993-a051-433a-9d32-d340d9130d92/emsdk-main/node/22.16.0_64bit/bin/node
36
+ CMAKE_CROSSCOMPILING_EMULATOR:UNINITIALIZED=/home/runner/work/MEASUR-Tools-Suite/MEASUR-Tools-Suite/emsdk-cache/emsdk-main/node/22.16.0_64bit/bin/node
37
37
 
38
38
  //Flags used by the CXX compiler during all build types.
39
39
  CMAKE_CXX_FLAGS:STRING=
@@ -93,7 +93,7 @@ CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
93
93
  CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/home/runner/work/MEASUR-Tools-Suite/MEASUR-Tools-Suite/build-wasm/CMakeFiles/pkgRedirects
94
94
 
95
95
  //Install path prefix, prepended onto install directories.
96
- CMAKE_INSTALL_PREFIX:PATH=/home/runner/work/_temp/42c67993-a051-433a-9d32-d340d9130d92/emsdk-main/upstream/emscripten/cache/sysroot
96
+ CMAKE_INSTALL_PREFIX:PATH=/home/runner/work/MEASUR-Tools-Suite/MEASUR-Tools-Suite/emsdk-cache/emsdk-main/upstream/emscripten/cache/sysroot
97
97
 
98
98
  //Path to a program.
99
99
  CMAKE_LINKER:FILEPATH=/usr/bin/ld
@@ -193,7 +193,7 @@ CMAKE_STRIP:FILEPATH=/usr/bin/strip
193
193
  CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND
194
194
 
195
195
  //The CMake toolchain file
196
- CMAKE_TOOLCHAIN_FILE:FILEPATH=/home/runner/work/_temp/42c67993-a051-433a-9d32-d340d9130d92/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
196
+ CMAKE_TOOLCHAIN_FILE:FILEPATH=/home/runner/work/MEASUR-Tools-Suite/MEASUR-Tools-Suite/emsdk-cache/emsdk-main/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
197
197
 
198
198
  //If this value is on, makefiles will be generated without the
199
199
  // .SILENT directive, and all commands will be echoed to the console
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Set the install prefix
4
4
  if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5
- set(CMAKE_INSTALL_PREFIX "/home/runner/work/_temp/42c67993-a051-433a-9d32-d340d9130d92/emsdk-main/upstream/emscripten/cache/sysroot")
5
+ set(CMAKE_INSTALL_PREFIX "/home/runner/work/MEASUR-Tools-Suite/MEASUR-Tools-Suite/emsdk-cache/emsdk-main/upstream/emscripten/cache/sysroot")
6
6
  endif()
7
7
  string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "measur-tools-suite",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-beta.1",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"
@@ -4,6 +4,8 @@
4
4
  * Chiller Efficiency (Temperature Reset Capacity, Staging).
5
5
  */
6
6
 
7
+ import type { DoubleVector } from '../binding/registered_vectors';
8
+
7
9
  // ---------------------------------------------------------------------------
8
10
  // Enumerations
9
11
  // ---------------------------------------------------------------------------
@@ -103,10 +105,16 @@ export interface PowerEnergyConsumptionOutput {
103
105
  * @property savingsEnergy double, units kWh
104
106
  */
105
107
  export interface StagingPowerConsumptionOutput {
106
- /** Power consumption for each baseline chiller load, units kW */
107
- baselinePowerList: number[];
108
- /** Power consumption for each modification chiller load, units kW */
109
- modPowerList: number[];
108
+ /**
109
+ * Registered WASM vector of baseline chiller power values, units kW.
110
+ * Call `delete()` when finished.
111
+ */
112
+ baselinePowerList: DoubleVector;
113
+ /**
114
+ * Registered WASM vector of modification chiller power values, units kW.
115
+ * Call `delete()` when finished.
116
+ */
117
+ modPowerList: DoubleVector;
110
118
  /** Total baseline power, units kW */
111
119
  baselineTotalPower: number;
112
120
  /** Total baseline energy, units kWh */
@@ -328,8 +336,8 @@ export function ChillerCapacityEfficiency(
328
336
  * @param operatingHours double, operating hours, units hours
329
337
  * @param waterSupplyTemp double, chilled water supply temperature, units F
330
338
  * @param waterEnteringTemp double, condenser water entering temperature, units F
331
- * @param baselineLoadList list of doubles for each baseline chiller load, units ton
332
- * @param modLoadList list of doubles for each modification chiller load, units ton
339
+ * @param baselineLoadList Registered WASM vector of baseline chiller loads, units ton
340
+ * @param modLoadList Registered WASM vector of modification chiller loads, units ton
333
341
  * @returns {@link StagingPowerConsumptionOutput}
334
342
  */
335
343
  export function ChillerStagingEfficiency(
@@ -342,8 +350,8 @@ export function ChillerStagingEfficiency(
342
350
  operatingHours: number,
343
351
  waterSupplyTemp: number,
344
352
  waterEnteringTemp: number,
345
- baselineLoadList: number[],
346
- modLoadList: number[]
353
+ baselineLoadList: DoubleVector,
354
+ modLoadList: DoubleVector
347
355
  ): StagingPowerConsumptionOutput;
348
356
 
349
357
  export type ChillersModule = {
@@ -14,6 +14,7 @@ import type {
14
14
  Solve,
15
15
  TurbineProperty,
16
16
  } from './ssmtEnum';
17
+ import type { InletVector } from '../binding/registered_vectors';
17
18
 
18
19
  export type { ThermodynamicQuantity, Solve, TurbineProperty };
19
20
 
@@ -564,9 +565,10 @@ export declare class Inlet {
564
565
  export declare class Header {
565
566
  /**
566
567
  * @param headerPressure Header pressure, units MPa
567
- * @param inletVec Array of {@link Inlet} objects
568
+ * @param inletVec Registered WASM vector of {@link Inlet} objects. Call
569
+ * `delete()` when finished with the vector.
568
570
  */
569
- constructor(headerPressure: number, inletVec: Inlet[]);
571
+ constructor(headerPressure: number, inletVec: InletVector);
570
572
 
571
573
  /** @returns {@link SteamPropertiesOutput} combined header steam properties */
572
574
  getHeaderProperties(): SteamPropertiesOutput;
@@ -576,8 +578,11 @@ export declare class Header {
576
578
  getInletEnergyFlow(): number;
577
579
  /** @returns Total inlet mass flow, units kg/hr */
578
580
  getInletMassFlow(): number;
579
- /** @returns Array of {@link Inlet} objects */
580
- getInlets(): Inlet[];
581
+ /**
582
+ * @returns Registered WASM vector of {@link Inlet} objects. Call `delete()`
583
+ * when finished with the vector.
584
+ */
585
+ getInlets(): InletVector;
581
586
 
582
587
  /** Frees the underlying resource; must be called when finished with the instance */
583
588
  delete(): void;
@@ -5,7 +5,7 @@
5
5
  * process outputs with and without the full iteration calculations table.
6
6
  */
7
7
 
8
- import { CalculationsTableV } from "../binding/registered_vectors";
8
+ import type { CalculationsTableV, DoubleVector } from "../binding/registered_vectors";
9
9
 
10
10
  /**
11
11
  * Iteration row of intermediate wastewater-treatment calculations.
@@ -67,8 +67,11 @@ export declare class CalculationsTable {
67
67
  /** Solids retention time, units days. */
68
68
  SRT: number;
69
69
 
70
- /** @returns Numeric array view of this row in model-defined order */
71
- getArray(): number[];
70
+ /**
71
+ * @returns Registered WASM vector of row values in model-defined order.
72
+ * Call `delete()` when finished.
73
+ */
74
+ getArray(): DoubleVector;
72
75
 
73
76
  /** Frees the underlying resource; must be called when finished with the instance */
74
77
  delete(): void;