This module allows to load, parameterize, run and analyze OpenFLUID simulations from Node.js scripts.
It is compatible with Node.js 10.x and requires that the OpenFLUID platform and the CMake tool are already installed.
See the package.json
file for Node.js dependencies.
Currently, this package is in early development stage and has only be tested on Linux system
Run the followind npm command
npm install OpenFLUID/openfluidjs
Add OpenFLUIDjs GitHub repository as a dependency in the package.json
file
{
"name": "my-module",
"version": "1.0.0",
"dependencies": {
"OpenFLUIDjs": "https://github.com/OpenFLUID/openfluidjs"
}
}
Run the following commands from the root of the sources tree.
This command will install dependencies and build the module
npm install
This command will run the tests
npm test
This command will create a .tgz archive
npm pack