Skip to content

Commit 202ef13

Browse files
authored
Merge pull request #18 from OFDataCommittee/hotfix
[README] update for new installation
2 parents 817ed13 + ac93017 commit 202ef13

File tree

2 files changed

+20
-31
lines changed

2 files changed

+20
-31
lines changed

README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The source code license: GPL-3.0-or-later
1919

2020
1. [OpenFOAM-v2312] or newer, or a recent [development version][OpenFOAM-git]
2121
from [OpenFOAM.com][OpenFOAM].
22-
2. [SmartSim] 0.6.0
23-
3. [SmartRedis] N.N.N
22+
2. [SmartSim] 0.6.2 [installation instructions](https://www.craylabs.org/docs/installation_instructions/basic.html)
23+
3. [SmartRedis] latest, installed automatically by `./Allwmake`
2424
4. [PyFoam,pandas,matplotlib]: pip install PyFoam pandas matplotlib
2525

2626
## Building
@@ -30,22 +30,29 @@ The source code license: GPL-3.0-or-later
3030
* `WM_COMPILER=Gcc` , compilers: g++ 11.4.0
3131
* `WM_COMPILER=Icx`, compilers: Intel(R) oneAPI DPC++/C++ Compiler 2023.2.4
3232

33-
### Build script
33+
### Compiling and installation
3434

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, 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.
3636

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
4041
```
4142

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:
4352

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`
4753
- 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.
4956

5057
## Authors / Contributors
5158

@@ -70,4 +77,4 @@ source SOURCEME.sh
7077

7178
## References
7279

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).

tutorials/meshMotion/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)