Skip to content

Conversation

@dschwen
Copy link
Member

@dschwen dschwen commented Jan 9, 2026

Reason

In #30853 we introduced a capability to offload residual calculations to NEML2 for fast explicit dynamics simulations (NEML2CentralDifference). This works by clearing the algebraic range (the list of elements initialized and processed by MOOSE). However this effectively disables calculation of integrated boundary conditions.

Also, for stateful materials we should advance teh state from current -> old on device, without the roundtrip via MOOSE materials (which we added to ensure correct restepping / failed timestep rollback). We're not going to evaluate the materials with a cleared out algebraic range, and this would add substantial overhead.

Design

Use the integrated boundary condition warehouse to compile a list of all boundaries which have BCs applied. Then filter the boundary element range to get all elements touching one of those boundaries and add them back to the algebraic range.

Add an option to retain state on device to minimize communication.

Impact

Integrated BCs are available again with NEML2 residual calculation, stateful property support for NEML2CentralDifference.

dschwen added a commit to dschwen/moose that referenced this pull request Jan 9, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from 7426340 to a5eb298 Compare January 9, 2026 16:51
@moosebuild
Copy link
Contributor

Job Precheck, step Clang format on a5eb298 wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/32198/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 2c1be390f5ea10cbad2cb74e2518abb47afd7292

libmesh Outdated
@@ -1 +1 @@
Subproject commit c144a6e3ae9d721c0b780ac0035cff984c742ea1
Subproject commit a9f56e9ed51a235edbcfecb00522389977663817

This comment was marked as outdated.

@moosebuild

This comment was marked as outdated.

@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from a5eb298 to 610beb6 Compare January 9, 2026 17:14
@moosebuild
Copy link
Contributor

moosebuild commented Jan 9, 2026

Job Coverage, step Generate coverage on 348fc8a wanted to post the following:

Framework coverage

5eee4e #32198 348fc8
Total Total +/- New
Rate 85.81% 85.81% -0.01% 100.00%
Hits 126281 126283 +2 18
Misses 20876 20887 +11 0

Diff coverage report

Full coverage report

Modules coverage

Coverage did not change

Full coverage reports

Reports

This comment will be updated on new commits.

dschwen added a commit to dschwen/moose that referenced this pull request Jan 10, 2026
dschwen added a commit to dschwen/moose that referenced this pull request Jan 10, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from 9cb0f3f to f1c6794 Compare January 10, 2026 00:39
dschwen added a commit to dschwen/moose that referenced this pull request Jan 10, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from f1c6794 to 420c8c4 Compare January 10, 2026 01:49
dschwen added a commit to dschwen/moose that referenced this pull request Jan 10, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from 420c8c4 to a1eb364 Compare January 10, 2026 05:35
dschwen added a commit to dschwen/moose that referenced this pull request Jan 10, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch from a1eb364 to deb2ce5 Compare January 10, 2026 17:10
dschwen added a commit to dschwen/moose that referenced this pull request Jan 11, 2026
@dschwen dschwen force-pushed the moose-neml2-explicit-bcs branch 2 times, most recently from ff34e75 to 348fc8a Compare January 12, 2026 16:23
@moosebuild
Copy link
Contributor

Job Test, step Results summary on 348fc8a wanted to post the following:

Framework test summary

Compared against 5eee4e5 in job civet.inl.gov/job/3497366.

No change

Modules test summary

Compared against 5eee4e5 in job civet.inl.gov/job/3497366.

No change

@moosebuild
Copy link
Contributor

Job Documentation, step Docs: sync website on 348fc8a wanted to post the following:

View the site here

This comment will be updated on new commits.

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