Generating grains based on pdf or cdf #925
-
I am not sure how to build model based on grain volumes and the probability of the certain volumes. Below part is the tutorial on the web. But I don't understand the code and I am not sure how to write it. Firstly, what is the kind of 'mydistrib'. And is it possible to put volumes and probabilities in the file? If the sum of the probabilities is not 1, what will happen? if I want to set volums, diameq should be replaced by size. Is there any way to speed up the generation. Thank you very much. Specifying an Experimental Cell Size Distribution Experimental or, more generally, numerical distributions defined from a file can be specified by using option -morpho :custom(<file_name>) (instead of analytical distributions). Consider a cell-size (diameq) distribution defined from a file, mydistrib, that contains: 0.2 10.0 Note In contrast to analytical distributions, numerical distributions do not need to be normalized to 1. As for an analytical distribution, if -morpho from_morpho is used, Neper determines the number of cells from the cell size distribution and the domain size. The corresponding tessellation can be generated as follows: neper -T -n from_morpho |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can find an example in #929. |
Beta Was this translation helpful? Give feedback.
You can find an example in #929.