Skip to content

Commit 3eec089

Browse files
Create running-example.md
1 parent ca4bb22 commit 3eec089

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/running-example.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Running a example in NEXT
2+
3+
To run a example in NEXT, you need to *cd* to an example path
4+
You aswell need a python interpeter
5+
For this, lets try the ColdCollapseGalaxy
6+
```bash
7+
cd examples
8+
cd ColdCollapseGalaxy
9+
python coldcollapse.py
10+
../../next coldcollapse.txt 8 0.25 0.2 vtu
11+
```
12+
13+
Explaining the flags:
14+
../../next = Go up 2 directories (into project root) and run executable
15+
coldcollapse.txt = The name of the specified "scenario" / "initial condition"
16+
8 = Set openmp threads to 8, if your cpu has more, you can change it
17+
0.25 = Timestep, how fast the simulation will run
18+
0.2 = Caching interval, how fast NEXT would plot caching
19+
vtu = Caching format, there is aswell vtk

0 commit comments

Comments
 (0)