neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
198 stars 53 forks source link

Meshing failed for transform cut cylinder command #500

Closed Abhayekr closed 2 years ago

Abhayekr commented 2 years ago

The following bug is shown when trying to mesh the following tessellation.

neper -T -dim 2 -domain "square(150,150)" -n from_morpho -morpho "diameq:dirac(8),1-circularity:lognormal(0.145,0.03)" -transform "cut(ecylinder(0,75,0,0,0,1,1,0,0,0,1,0,60,4))” -o test212

neper -M test212.tess -dim 2

======================== N e p e r ======================= Info : A software package for polycrystal generation and meshing. Info : Version 4.4.1 Info : Built with: gsl|muparser|opengjk|openmp|nlopt|libscotch (full) Info : Running on 1 threads. Info : https://neper.info Info : Copyright (C) 2003-2022, and GNU GPL'd, by Romain Quey. Info : No initialization file found (/home/ubuntu/.neperrc'). Info : --------------------------------------------------------------- Info : MODULE -M loaded with arguments: Info : [ini file] (none) Info : [com line] test212.tess -dim 2 Info : --------------------------------------------------------------- Info : Reading input data... Info : - Reading arguments... Info : Loading input data... Info : - Loading tessellation... Info : [i] Parsing filetest212.tess'... Info : [i] Parsed file `test212.tess'. Info : Meshing... Info : - Preparing... (cl = -5.041-55.58) Info : - 0d meshing... 100% Info : - 1d meshing... 0% Bad meshing parameters for edge 1: cl = 0.000000 pl = 2.000000 Error : You have discovered a bug in Neper! Please file an issue at https://github.com/rquey/neper/issues. Thank you.

Aborted (core dumped)

Abhayekr commented 2 years ago

Solved! It works when both tessellation and meshing is done using 4.4.1 version of neper.