Skip to content

Lamellar microstructures with different width values of lames #389

Answered by rquey
J-AKAZ asked this question in Q&A
Discussion options

You must be logged in to vote

See option -morpho.

You can use -morpho "lamellar(w=<val1>:<val2>)" to specify 2 lamella widths (changing from one to the next, as on your image).

Example:

$ neper -T -n 10::from_morpho -morpho "voronoi::lamellar(w=0.1:0.05)" -o d
$ neper -V d.tess -datacellcol "scaleid(1)" -print img

It is not possible to provide a distribution directly, but you can input more than 2 values:

$ string=`gsl-randist 1 100 gaussian 0.02 | awk '{val=$1+0.04; if (val>0) print val}' | sed -z 's/\n/:/g;s/:$/\n/'`
$ echo $string
0.046128:0.0315123:0.0359091:0.0314253:0.0661094:0.0529495:0.0638847:0.0051905:0.0452142:0.0346435:0.0337193:0.0406731:0.0522957:0.0161655:0.0001331:0.0520305:0.0527881:0.0279382:0.0436…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rquey
Comment options

You must be logged in to vote
1 reply
@rquey
Comment options

rquey Mar 7, 2022
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants