Skip to content

Commit

Permalink
update openfoam example
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Feb 22, 2024
1 parent 98a0e6d commit ad4ae48
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/OpenFOAM/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,31 @@ sudo chmod -R 777 motorBike
cd motorBike
./Allrun
```


To run on more cores, the domains needs to be updated including the hierarchy:

```
sudo mount -t cvmfs software.eessi.io /cvmfs/software.eessi.io
source /cvmfs/software.eessi.io/versions/2023.06/init/bash
ml load OpenFOAM
source $FOAM_BASH
export OMP_NUM_THREADS=4
mkdir outputs
cd outputs
# Brute force copy, since this comes from a read-only, non-owned filesystem
sudo cp -r $FOAM_TUTORIALS/incompressibleFluid/motorBike .
sudo chown -R `id -u`:`id -g` motorBike
sudo chmod -R 777 motorBike
cd motorBike
sed -i 's/numberOfSubdomains 8;/numberOfSubdomains 16;/' motorBike/system/decomposeParDict
sed -i 's/ n (4 2 1);/ n (4 4 1);/' motorBike/system/decomposeParDict
./Allrun
```

0 comments on commit ad4ae48

Please sign in to comment.