MEASUR-Tools-Suite v.1.0.11
Set of tools for calculating energy efficiency in industrial equipment
|
(6/20/25) The MEASUR Tools Suite is currently being updated for better usability by third parties. This includes a refactoring of the current code base to follow consistent practices, better organization and enhanced documentation around the engineering aspects of the calculations. Further details on timeline and implementation will be added shortly. Please check back for updates.
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly. The tool suite web assembly module is used for calculations with the MEASUR application.
For more information about the MEASUR ecosystem visit https://industrialresources.ornl.gov/measur
Hosted documentation can be found at https://industrialresources.ornl.gov/measur/suite/docs
The npm packages can be downloaded and install from registry
cd
into the emsdk directory:./emsdk install latest
followed by ./emsdk activate latest
source ./emsdk_env.sh
or on Windows run emsdk_env.bat
cd
into MEASUR-Tools-Suite directory: build-wasm
and cd into itemcmake cmake -DBUILD_WASM=ON ..
emcmake cmake -D BUILD_WASM=ON .. -G "MinGW Makefiles"
emmake make
cd
into MEASUR-Tools-Suite directory and npm install
followed by npm run test-wasm
BUILD_TESTING
flag is set (which is default) then:build-cpp
and cd into it<br>
- Note: If multiple compilers are present and default environment is not used, use -G "XXX Makefiles", example for windows using MinGW =>cmake .. -G "MinGW Makefiles"
run
'cmake –build .'
execute
cpp_tests.exe
On MacOS or Linux, the test executable can be found under the
bindirectory. On Windows, the executable can be found under either the
Debugor
Release` directories, depending on CMake configuration
BUILD_PACKAGE
flag in the CMakeCache, then cmake ./
then make package
cmake -D BUILD_TESTING:BOOL=OFF ./
and cmake --build . --config Release --target PACKAGE
ccmake.
and set BUILD_TESTING OFF, BUILD_PACKAGE ON, then configure and generate. Then make package
.doxygen Doxyfile
To make it easy for developers local building and testing, it is dockerized. To run it in docker follow this steps.
docker compose up -d
docker compose down
docker exec -it measur-tools-suite-build /bin/bash
and run the executable /home/MEASUR-Tools-Suite/build-cpp/cpp_tests
docker compose logs --tail 5