Skip to content

Feature/complete grains at shape edge#335

Merged
JonathanMaes merged 7 commits into3.11from
feature/CompleteGrainsAtShapeEdge
Oct 4, 2024
Merged

Feature/complete grains at shape edge#335
JonathanMaes merged 7 commits into3.11from
feature/CompleteGrainsAtShapeEdge

Conversation

@JLeliaert
Copy link
Copy Markdown
Contributor

Adds a variable to ext_make3dgrains to complete all voronoi grains whose centre lies within the shape. This also cuts away parts of the shape whose closest voronoi centre lies outside the shape.

This allows e.g. to make polycrystalline geometries consisting of clustered individual grains.

clusterparticle

@JLeliaert JLeliaert requested a review from JonathanMaes October 3, 2024 15:07
@JLeliaert
Copy link
Copy Markdown
Contributor Author

One of the functions (shufflecells) in make3dgrains used rand.perm to shuffle the cells around before assigning them a region number. This function used the global random generator, which as of go 1.20 is seeded automatically and therefore gives a different output for every run. I've replaced this with the seeded generator of the tessellation to have a deterministic output. I've adapted the test problem to reflect the newly obtained values (the previous test values were obtained with a go version <1.20 which was still deterministic)

@JonathanMaes JonathanMaes merged commit 5e89278 into 3.11 Oct 4, 2024
@JonathanMaes JonathanMaes deleted the feature/CompleteGrainsAtShapeEdge branch October 4, 2024 08:34
MathieuMoalic added a commit to MathieuMoalic/amumax that referenced this pull request Oct 4, 2024
@JonathanMaes JonathanMaes mentioned this pull request Oct 14, 2024
MathieuMoalic added a commit to MathieuMoalic/amumax that referenced this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants