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 +1 -1
- package/bin/ts_def_modules/processCooling/chillers.d.ts +16 -8
- package/bin/ts_def_modules/steamModeler/ssmt.d.ts +9 -4
- package/bin/ts_def_modules/wasteWater/wasteWater.d.ts +6 -3
- package/build-wasm/CMakeCache.txt +3 -3
- package/build-wasm/cmake_install.cmake +1 -1
- package/package.json +1 -1
- package/ts_def/ts_def_modules/processCooling/chillers.d.ts +16 -8
- package/ts_def/ts_def_modules/steamModeler/ssmt.d.ts +9 -4
- package/ts_def/ts_def_modules/wasteWater/wasteWater.d.ts +6 -3
package/bin/package.json
CHANGED
|
@@ -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
|
-
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
332
|
-
* @param modLoadList
|
|
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:
|
|
346
|
-
modLoadList:
|
|
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
|
|
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:
|
|
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
|
-
/**
|
|
580
|
-
|
|
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
|
-
/**
|
|
71
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
@@ -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
|
-
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
332
|
-
* @param modLoadList
|
|
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:
|
|
346
|
-
modLoadList:
|
|
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
|
|
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:
|
|
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
|
-
/**
|
|
580
|
-
|
|
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
|
-
/**
|
|
71
|
-
|
|
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;
|