Skip to content

Feature: GeometryEdgeFinder#386

Open
jplauzie wants to merge 2 commits intomumax:3.11.2from
jplauzie:Geom_edgefinder
Open

Feature: GeometryEdgeFinder#386
jplauzie wants to merge 2 commits intomumax:3.11.2from
jplauzie:Geom_edgefinder

Conversation

@jplauzie
Copy link

@jplauzie jplauzie commented Mar 18, 2026

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
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