Skip to content

Help about digging spherical porous in polycrystals to draw meshes #928

Closed Answered by rquey
mdlbyc asked this question in Q&A
Discussion options

You must be logged in to vote

-transform cut is an "experimental" feature and is not 100% reliable. The strategy is to try different -id values. It also helps to decrease the value of -rsel.

#!/bin/bash

id=1

while [ ! -f d.msh ]
do
  neper -T -n 1000 -id $id -domain "cube(1.0,1.0,1.0):translate(-0.5,-0.5,-0.5)" \
           -transform "cut(sphere(0.0,0.0,0.0,0.4))"  -morpho voronoi -regularization 1 -rsel 0.5 -o d
  neper -M d.tess -pl 10
  id=$[$id+1]
done

neper -V d.tess,d.msh -showelt "y>0" -print img

exit 0

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rquey
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