Skip to content

Feature: GeometryEdgeFinder#386

Merged
JonathanMaes merged 8 commits into
mumax:3.11.2from
jplauzie:Geom_edgefinder
Apr 8, 2026
Merged

Feature: GeometryEdgeFinder#386
JonathanMaes merged 8 commits into
mumax:3.11.2from
jplauzie:Geom_edgefinder

Conversation

@jplauzie

@jplauzie jplauzie commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

This PR adds a helper function that makes edges of the geometry (1 cell thick) into Shapes, allowing the user to easily define things for e.g. custom fields boundary conditions. By default, there are 6 Shapes corresponding to: +/- X, Y, Z edges.

  • 2s permutations (corners such as +/- XY, etc) can be done by using existing Shape method .intersect(). 3s as well.
  • Treats the edge of the simulation box as geometry edge. Does not currently check if PBC are enabled.
  • example file attached: geomedgefinder_example.txt

JonathanMaes and others added 2 commits March 12, 2026 15:12
Helper function that makes edges into Shapes
A helper function that makes edges (1 cell thick) into Shapes, allowing the user to easily define things for e.g. custom fields boundary conditions. By default, 6 shapes: +/- X,Y, Z

 2s permutations (corners such as +/- XY, etc) can be done by using existing shape method .intersect(). 3s as well. e.g.:

(+X/+Y corner)

plusXplusY := plusX.Intersect(plusY)

or

(+X/+Y/+Z corner)

plusX.Intersect(plusY).Intersect(plusZ)

Does *not* check if PBC are enabled.
@JonathanMaes
JonathanMaes changed the base branch from master to 3.11.2 March 18, 2026 15:26
Comment thread engine/ext_geomedgefinder.go Outdated
Comment thread engine/ext_geomedgefinder.go Outdated
Comment thread engine/ext_geomedgefinder.go Outdated
Comment thread engine/ext_geomedgefinder.go Outdated
@JonathanMaes JonathanMaes added this to the 3.12 milestone Mar 25, 2026
jplauzie and others added 4 commits March 27, 2026 02:06
add ext_ to name since it may not play well with mesh/geom changes. clarify description

use string switches instead of 6 functions for each direction

move d outside func()
Comment thread engine/ext_geomedgefinder.go Outdated
@JonathanMaes
JonathanMaes merged commit 549b07c into mumax:3.11.2 Apr 8, 2026
@JonathanMaes JonathanMaes mentioned this pull request Apr 8, 2026
4 tasks
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.

3 participants