https://github.com/airshaper/adaptive-mesh-refinement
this here could be interesting, as you can just run ./Allrun but I don't use the ESi version, so I can't comment more on that
from my understanding, you need to run an initial simulation and then use the U/p fields to guide refinement for future iterations or whatnot