Skip to content

Increase val-2f/val-2c reproducibility - #385

Merged
simopier merged 78 commits into
idaholab:develfrom
lindsayad:try-some-regularization
Apr 10, 2026
Merged

Increase val-2f/val-2c reproducibility#385
simopier merged 78 commits into
idaholab:develfrom
lindsayad:try-some-regularization

Conversation

@lindsayad

@lindsayad lindsayad commented Mar 13, 2026

Copy link
Copy Markdown
Member

This has failed thus far as CI will show

EDIT:
(Ref. #380)
(Ref. #382)

@lindsayad
lindsayad force-pushed the try-some-regularization branch from 13317be to 4b7c29c Compare March 23, 2026 20:21
@lindsayad lindsayad changed the title Try some regularization in reaction kernels to increase val-2f reproducibility Increase val-2f reproducibility Mar 23, 2026
@lindsayad
lindsayad force-pushed the try-some-regularization branch 2 times, most recently from fe6789b to 1f52004 Compare March 23, 2026 20:46
@moosebuild

moosebuild commented Mar 23, 2026

Copy link
Copy Markdown

Job Documentation, step Sync to remote on d6906cb wanted to post the following:

View the site here

This comment will be updated on new commits.

A working case for all three phases of the simulation

Probably all four of these are important components

- Nondimensionalization with different reference concentrations for
  all species so that active set numerics are decent for all
- nl_rel_tol = 1e-9 with no nl_abs_tol
- Reduce growth factor to 1.05 (1.1 was too high ... led to diffs)
- Refine the light case twice (once refined was still not refined enough,
  it led to diffs)

Sometimes you need a sufficient amount of accuracy in order for the
test to be robust, especially in problems like this where for most of the
simulation only like 1/20th of the simulation domain has non-trivial
concentrations

Refs idaholab#200
@moosebuild

Copy link
Copy Markdown

Job Precheck, step Format Check Clang on e28b7c8 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/tmap8/docs/PRs/385/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 7d1a0b5b28a8af593cadf654a8165c44ffd14bc6

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this is still a work in progress @lin-yang-ly, but here are some minor comments.

Comment thread test/tests/val-2c/val-2c_base.i Outdated
Comment thread test/tests/val-2c/val-2c_base.i Outdated
Comment thread test/tests/val-2c/val-2c_base.i Outdated
Comment thread test/tests/val-2c/val-2c_base.i Outdated
@lin-yang-ly

Copy link
Copy Markdown
Collaborator

@simopier, this PR is ready for your review. For val-2c and heavy tests of val-2f, we have two versions in gold folder: one using scheme = 'implicit-euler' for test checks across different environments, and another using scheme = 'bdf2' retained as a gold file for plotting in the documentation.

In the corresponding tests, I also include two versions, one use CSVDiff and ExoDiff for the tests with scheme = 'implicit-euler', another one use RunApp for tests with scheme = 'bdf2' since we only need to ensure these simulations can still run under current parameters.

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lin-yang-ly, let's have a discussion about the requirements for the tests for (1) stability, (2) making sure the gold files used in the documentation remain up to date.

Also, investigate the possibility of having csv of outputs at regular, specific sync times to avoid some of the issues we've seen with bdf2 across environments and number of cores.

Comment thread doc/content/verification_and_validation/val-2c.md Outdated
Comment thread test/tests/val-2c/tests Outdated
Comment thread test/tests/val-2c/tests Outdated
Comment thread test/tests/val-2f/tests
Comment thread test/tests/val-2f/tests Outdated
@lin-yang-ly

Copy link
Copy Markdown
Collaborator

@simopier The PR is ready for your review. It currently includes both schemes to ensure each gold file is covered by a corresponding test.

In addition, the abs_zero values in val-2f_heavy_csv_bdf2 and val-2f_heavy_csv_inf_recombination_bdf2 may appear large, but they are reasonable when compared to the typical magnitudes observed during the simulations. The variation of each parameter in these cases are shown below:
val2f_heavy_csv_bdf2_value_ranges
val2f_heavy_csv_inf_recombination_bdf2_value_ranges

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @lin-yang-ly for finalizing this!

I have very minor comments left. Could you address those and update the moose submodule, as discussed. This will be good to go after that.

Comment thread doc/content/verification_and_validation/val-2c.md Outdated
Comment thread doc/content/verification_and_validation/val-2f.md Outdated
Comment thread test/tests/val-2c/tests Outdated
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
@lin-yang-ly

lin-yang-ly commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Thank you @lin-yang-ly for finalizing this!

I have very minor comments left. Could you address those and update the moose submodule, as discussed. This will be good to go after that.

@simopier Thank you for these comments! I have updated the MOOSE submodule already, currently, the MOOSE version is "76a12d39d8", which is the latest MOOSE version in master branch.

@moosebuild

Copy link
Copy Markdown

Job Build test summary, step Build test summary on d6906cb wanted to post the following:

Test summary

Compared against c94cbdd in job civet.inl.gov/job/3717731.

Removed tests

Test Time (s) Memory (MB)
test:val-2c.val-2c_immediate_injection_csv 12.73 218.51
test:val-2c.val-2c_delay_csv 3.15 93.18
test:val-2c.val-2c_delay_calibrated_csv 2.90 67.47
test:val-2f.val-2f_heavy_csv_inf_recombination SKIP 0.00
test:val-2f.val-2f_heavy_exodus SKIP 0.00
test:val-2f.val-2f_heavy_csv SKIP 0.00
test:val-2c.val-2c_immediate_injection_exodus 0.00
test:val-2c.val-2c_delay_exodus 0.00

Added tests

Test Time (s) Memory (MB)
test:val-2c.val-2c_immediate_injection_csv_implicit-euler 13.26 212.38
test:val-2c.val-2c_delay_csv_implicit-euler 3.43 94.02
test:val-2c.val-2c_delay_csv_bdf2 3.23 101.00
test:val-2c.val-2c_immediate_injection_csv_bdf2 3.22 117.77
test:val-2c.val-2c_delay_calibrated_csv_implicit-euler 3.15 75.58
test:val-2c.val-2c_delay_calibrated_csv_bdf2 3.10 115.13
test:physics/more_species_on_component.trapping_dimensionless_other_trap 0.62 41.83
test:val-2f.val-2f_heavy_csv_inf_recombination_bdf2 SKIP 0.00
test:val-2f.val-2f_heavy_csv_bdf2 SKIP 0.00
test:val-2f.val-2f_heavy_csv_inf_recombination_implicit-euler SKIP 0.00
test:val-2f.val-2f_heavy_exodus_implicit-euler SKIP 0.00
test:val-2f.val-2f_heavy_csv_implicit-euler SKIP 0.00
test:val-2c.val-2c_immediate_injection_exodus_implicit-euler 0.00
test:val-2c.val-2c_delay_exodus_implicit-euler 0.00

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @lindsayad, @loganharbour, and @lin-yang-ly!
A follow up PR will re-organize the tests/verification/validation/examples to help select the tests to run on MOOSE's CI, and which ones to run only on TMAP8's.

@simopier
simopier merged commit 5ce6c4f into idaholab:devel Apr 10, 2026
11 checks passed
@lindsayad

Copy link
Copy Markdown
Member Author

Thanks for finishing up the work @lin-yang-ly !

@lindsayad

Copy link
Copy Markdown
Member Author

Doesn't this close #200?

@simopier

Copy link
Copy Markdown
Collaborator

Doesn't this close #200?

You are absolutely right! Thank you for catching this! I just closed it.

simopier added a commit to simopier/TMAP8 that referenced this pull request May 4, 2026
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.

5 participants