Skip to content

Add model builder helpers and reliable automatic ID binding - #2

Merged
peteryu0131 merged 12 commits into
mainfrom
model-aware-generated-config
Nov 18, 2026
Merged

peteryu0131 merged 12 commits into
mainfrom
model-aware-generated-config

Conversation

@peteryu0131

Copy link
Copy Markdown
Collaborator

This adds a model builder on top of the generated configuration API. Users can attach materials, loads, and boundary conditions to model objects without managing their IDs by hand.

Changes:

  • Add convenient configuration factories, mesh handles, and whole-boundary helpers.
  • Support shared volume and boundary selections. Reserve existing IDs, reuse repeated selections, and reject references from another model.
  • Save model section settings while preserving existing read methods and configuration calls.
  • Add regression tests, clarify generation and testing instructions, fix Python module resolution, and include the MIT license.

Validation:

This PR changes the Python generator. Native PolyFEM compilation and simulation validation are outside its scope.

@peteryu0131

Copy link
Copy Markdown
Collaborator Author

Done

@peteryu0131
peteryu0131 merged commit 9d0a9b9 into main Nov 18, 2026
18 checks passed
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.

1 participant