This is a simple code, which can convert the geo file generated by neper to the suitable file for multi-grains simulation.
@MISC{Bai2020Np2m, author = "Bai, Y.", title = "np2m: a simple CPP code for converting neper generated geo file to the parametric geo file for Gmsh", year = "2020", journal={URL https://github.com/yangbai90/np2m Release} }
cmake CMakeLists.txt && make
then run:
./np2m your.geo -options
then a new geo file named 'new'+your.geo==>'newyour.geo' file will be generated. Then you can use Gmsh for the mesh generation.
for cirlce domain:
./np2m your_circle.geo -tol 0.1 -print
for sphere domain:
./np2m your_sphere.geo -domain sphere -tol 0.1 -print
for more options
./np2m -help