Need help about my neper #929
-
Hi All I want to generate a model with a given cell size distribution (volume). But I cannot get a model owing a close distribution and the total number of grains is not correct. best Changhao |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The correct command is
I've also made a fix in version 4.10.2-1. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. However, I copied your code and used the same txt file. But i only got 1025 cells which is not so correct. Your result owning 2943 cells is almost correct. Did you make modifications on the txt file? Or is there any possible mistakes I made? $ neper -T -n from_morpho -morpho "size:custom(volume.txt),1-sphericity:lognormal(0.145,0.03)" -dim 3 -domain "cube(2154.3,2154.3,2154.3)" -o mytess
======================== N e p e r =======================
Info : A software package for polycrystal generation and meshing.
Info : Version 4.10.2-1
Info : Built with: gsl|muparser|opengjk|openmp|nlopt|libscotch (full)
Info : Running on 16 threads.
Info : <https://neper.info>
Info : Copyright (C) 2003-2024, and GNU GPL'd, by Romain Quey.
Info : Loading initialization file `/home/changhao/.neperrc'...
Info : ---------------------------------------------------------------
Info : MODULE -T loaded with arguments:
Info : [ini file] (none)
Info : [com line] -n from_morpho -morpho
size:custom(volume.txt),1-sphericity:lognormal(0.145,0.03) -dim
3 -domain cube(2154.3,2154.3,2154.3) -o mytess
Info : ---------------------------------------------------------------
Info : Reading input data...
Info : Creating domain...
Info : Creating tessellation...
Info : [i] Parsing file `volume.txt'...
Info : [i] Parsed file `volume.txt'.
Info : . Number of cells: 1025
Info : - Setting seeds... 100%
Info : - Running tessellation...
Info : > Initial solution: f =1.087495701
Info : > Iteration 119093: fmin=0.894542185 f=0.894542185
Info : > Final solution : f =0.894542185 (1193 iterations)
Warning: > Stopping on Ctrl+C invocation.
Info : Generating crystal orientations...
Info : Writing results... |
Beta Was this translation helpful? Give feedback.
The correct command is
-morpho "size:file(volume.txt)"
loads discrete values for the cells (which does not make sense with your file), while-morpho "size:custom(volume.txt)"
reads a custom frequency distribution from the file.I've also made a fix in version 4.10.2-1.