Open
Milestone
Milestone 4: API to run simulations
At this point, we have everything to describe solvers and create cases (simulation directories) from a solver.
We can then add API and commands to launch the simulations.
Launching simulation can be quite simple with OpenFOAM (for example only blockMesh
and icoFoam
) but it can also be more complex, for example (https://sedfoam.github.io/sedfoam/tutorials_laminar.html#wetvalanche2D):
blockMesh
snappyHexMesh -overwrite
extrudeMesh
# create the initial time folder
cp -r 0_org 200
# Initialize fields
mapFields -sourceTime 200 Reference1D
decomposePar
mpirun -np 18 sedFoam_rbgh -parallel > log&
Therefore, I guess we will need a kind of Makefile
system. A question is do we use SnakeMake as in Snek5000? I guess SnakeMake is a bit too complex for what we need.
Then, there is the question of the API... Do we reproduce what has been done for Snek5000?
sim.make.exec("run_fg", nproc=18)
All issues for this milestone are closed. You may close this milestone now.
Loading
Loading
Loading
Loading