neperfepx / neper

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

Is it possible to control the area fraction and distribution of grains ? #773

Closed 123fgh123 closed 7 months ago

123fgh123 commented 8 months ago

Dear colleagues,

I want to generate a “duplex mophology” using Neper, which consists of grain A with size of 1 and area fraction of 90%,and grain B with size of 2 and area fraction of 10%.

I have tried the following command to achieve this goal:

` neper -T -n 222 -morpho "diameq:0.9lognormal(1,0.1)+0.1lognormal(2,0.2),1-sphericity:lognormal(0.1,0.03)" -dim 2 -periodicity all -o hs-2d1

`

img-hs-2d1

An issue of the result above is that the distribution of grain B is not uniform, they have gathered together. It would be perfect if grain B could distribute more uniform.

rquey commented 7 months ago

There is no such capability at the moment. It would take to define a new property in -morpho (alongside diameq, sphericity, etc.).