Closed xajezade closed 4 years ago
Here is how I would proceed for this microstructure.
Due to the high aspect ratio, scale 1 is nearly lamellar; so, generate like this:
neper -T -dim 2 -domain "square(1024,1024)" -n from_morpho -id 1 -morpho "lamellar(w=6.85,v=(0,1,0))" -statcell modeid -statseed x,y -o lam
lamqty=`wc -l lam.stseed | awk '{print $1}'`
neper -T -dim 2 -domain "square(1024,1024)" -n $lamqty -id 1 -morpho "diameq:0.3*lognormal(70,25,from=1)+0.7*lognormal(70,25,from=1)" -tesrsize "2048,2048" -statcell modeid -for vtk,tess,tesr -morphooptidof y -morphooptiini "coo:file(lam.stseed)" -o 2DScale1
Run your awk:
awk '{if ($1==1) {print NR,"diameq:lognormal(2.624,1.29,from=0.5),diameq:interval(0.5,5),1-sphericity:lognormal(0.145,0.03)"} else {print NR,"diameq:lognormal(2.4,1.49,from=0.5),diameq:interval(0.5,5),1-sphericity:lognormal(0.145,0.03)"}}' 2DScale1.stcell > scale2-morpho
Generate scale 2:
neper -T -dim 2 -domain "square(1024,1024)" -n $lamqty::from_morpho -morphooptiini "file(2DScale1.tess)" -morpho "voronoi::file(scale2-morpho)" -morphooptialgo "subplex::subplex" -morphooptistop "::val=0.01" -tesrsize 2048:2048 -o scale2 -tesrformat "ascii" -format tess,tesr,vtk -statcell ncells_samedomain
I've tested the last command with val=1,
and it runs fine. Let me know if there is a problem with val=0.01
.
Hi Romain,
I have tried this and I think this should work fine for me. However, I think there's something wrong with "-statcell ncells_samedomain". While the generated VTK file reads 141015 grain IDs, the stat file is 141010 lines. 5 less. I believe some of the grain IDs are wrong. I have done some post-processing on the data and I found out there are some IDs that are recorded as the neighbors but they cannot be inside the parent cell. I am saying this as the end of the tess file doesn't have those IDs!
I'll redo the generation to make sure of it. But I am 99% sure.
Kindest Regards, Ali
Hi Romain, The following steps prompt a SIGABRT() in the flattening process.
backtrace of dgb of the core file gives me:
Please let me know if there is a quick fix for this. Thanks, Ali