Skip to content

Add NEML2 material plugin - #162

Merged
sanathkeshav merged 13 commits into
developfrom
feat-neml2
Oct 3, 2026
Merged

sanathkeshav merged 13 commits into
developfrom
feat-neml2

Conversation

@sanathkeshav

@sanathkeshav sanathkeshav commented Sep 28, 2026 •

Copy link
Copy Markdown
Member
  • NEML2 materials ("matmodel": "NEML2") in thermal, small- and large-strain problems: any model compiled with neml2-compile, on CPU or GPU, with history variables and per-voxel or per-phase fields read from the microstructure file.
  • Separate plugin library: NEML2 and libtorch never reach the FANS build. The material lives in libfans_neml2.so (-DFANS_NEML2=ON), loaded at run time through a small C interface (include/fans_plugin.h).
  • Batched evaluation: plugin materials are evaluated for all their Gauss points before each sweep over the elements.
  • pixi: dev-neml2 environment with build-fans_neml2 and neml2-compile tasks.

Checklist:

  • I made sure that the CI passed before I ask for a review.
  • I added a summary of the changes (compared to the last release) in the CHANGELOG.md.
  • If necessary, I made changes to the documentation and/or added new content.
  • I will remember to squash-and-merge, providing a useful summary of the changes of this PR.

@sanathkeshav
sanathkeshav marked this pull request as ready for review October 3, 2026 22:22
@sanathkeshav
sanathkeshav merged commit bf1a0cc into develop Oct 3, 2026
8 checks passed
@sanathkeshav
sanathkeshav deleted the feat-neml2 branch October 3, 2026 22:24
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