-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (27 loc) · 740 Bytes
/
index.js
File metadata and controls
37 lines (27 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var libOpenFLUID = require("bindings")("libOpenFLUIDjs");
module.exports = {
getVersion: function() {
return libOpenFLUID.getVersion()
},
newBlob: function() {
return libOpenFLUID.newBlob();
},
deleteBlob: function(blob) {
libOpenFLUID.deleteBlob(blob);
},
printSimulationInfo: function(blob) {
libOpenFLUID.printSimulationInfo(blob);
},
openDataset: function(path) {
return libOpenFLUID.openDataset(path);
},
openProject: function(path) {
return libOpenFLUID.openProject(path);
},
setCurrentOutputDir: function(path) {
libOpenFLUID.setCurrentOutputDir(path);
},
runSimulation: function(blob,verbose=false) {
libOpenFLUID.runSimulation(blob,Boolean(verbose));
},
};