Skip to content

Can Neper be used to generate a magnetic microstructure based on anisotropy or coercivity? Also, can it simulate diffusion? #409

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

You must be logged in to vote

This may be indicated in the paper, but the microstructure was probably generated using -morpho gg (grain-growth polycrystal):

neper -T -n 1000 -morpho gg -o gg

You can determine if a grain is on a domain face or edge from its xmin, xmax, ymin, ymax, zmin and zmax. Such grains can define groups using option -group:

  • Faces (group 1 = surface, group 2 = others):
# define groups
neper -T -loadtess gg.tess -group "(zmin<0.001||zmax>0.999)?1:2"

# visualize (red/green)
neper -V gg.tess -datacellcol group -print img1

# visualize (gray/light gray)
neper -T -loadtess gg.tess -statcell group
awk '{if ($1==1) {print "gray"} else {print "lightgray"}}' gg.stcell > col
neper -V gg.tess -datacellcol…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mikekaylor98
Comment options

@rquey
Comment options

Answer selected by rquey
Comment options

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

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