You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OpenFOAM-SmartSim coupling functions over a connection that OpenFOAM as a client maintains with the SmartRedis database. This means that OpenFOAM elements (application, solver, function object, boundary condition, etc.) must be able to include SmartRedis source folders and link with a SmartRedis library. To facilitate this, a Bash script is provided:
35
+
The OpenFOAM-SmartSim coupling functions over a connection that OpenFOAM as a client maintains with the SmartRedis database. This means that OpenFOAM elements (application, solver, function object, boundary condition, etc.) must be able to include SmartRedis source folders and link with a SmartRedis library. To facilitate this, an `./Allrun`Bash script is provided.
36
36
37
-
```Bash
38
-
# This will set up your environment, get smartredis, and compile all libs and apps
39
-
source SOURCEME.sh
37
+
To build the project, you need to have a working OpenFOAM environment:
38
+
39
+
```
40
+
openfoam-smartsim > ./Allwmake
40
41
```
41
42
42
-
## How to use it
43
+
- This will fetch and compile the latest-n-greatest [SmartRedis](https://github.com/CrayLabs/SmartRedis) for you.
44
+
- SmartRedis libraries will be installed into `$FOAM_USER_LIBBIN`.
45
+
- OpenFOAM+SmartSim libraries and applictaions will also be installed into `$FOAM_USER_LIBBIN`.
46
+
47
+
## Running
48
+
49
+
OpenFOAM+SmartSim workflows are implemented in Python programs where SmartSim "governs" the computational workflow. The workflows can be implemented in Jupyter Notebooks or as Python programs.
50
+
51
+
Examples that use Jupyter Notebooks set some requirements:
43
52
44
-
- Run `source SOURCEME.sh`
45
-
- This will fetch latest-n-greatest (and compile) [SmartRedis](https://github.com/CrayLabs/SmartRedis) for you
46
-
- It will compile the OpenFOAM libs provided in `src` into your `$FOAM_USER_LIBBIN`
47
53
- Make sure port 8000 is free. `ss -plant | grep 8000` should return nothing!
48
-
- Head to one of the tutorials, and run the python script you find there
54
+
55
+
Head to one of the tutorials, and run the jupyter notebook or a python program you find there.
49
56
50
57
## Authors / Contributors
51
58
@@ -70,4 +77,4 @@ source SOURCEME.sh
70
77
71
78
## References
72
79
73
-
80
+
Maric, T., Fadeli, M. E., Rigazzi, A., Shao, A., & Weiner, A. (2024). Combining Machine Learning with Computational Fluid Dynamics using OpenFOAM and SmartSim. arXiv preprint [arXiv:2402.16196](https://doi.org/10.48550/arXiv.2402.16196).
0 commit comments