Skip to content

Add Verification cases ver-1n and ver-1o#428

Open
lin-yang-ly wants to merge 7 commits into
idaholab:develfrom
lin-yang-ly:add_ver1n_and_ver1o
Open

Add Verification cases ver-1n and ver-1o#428
lin-yang-ly wants to merge 7 commits into
idaholab:develfrom
lin-yang-ly:add_ver1n_and_ver1o

Conversation

@lin-yang-ly

Copy link
Copy Markdown
Collaborator

- Add tests files
- Add input files
- Add python scripts
- Add documentations
Ref. idaholab#426
@moosebuild

moosebuild commented Jun 25, 2026

Copy link
Copy Markdown

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

View the site here

This comment will be updated on new commits.

@moosebuild

Copy link
Copy Markdown

Job Precheck on 10ef7ea : invalidated by @lin-yang-ly

@moosebuild

moosebuild commented Jun 26, 2026

Copy link
Copy Markdown

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

Coverage

Coverage did not change

Full coverage report

This comment will be updated on new commits.

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

@simopier, the PR is ready for your review. Current failure in Test Heavy is because of "divertor_monoblock".

@simopier simopier self-assigned this Jun 29, 2026
@simopier simopier added the V&V Relevant to V&V label Jun 29, 2026

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

Looks great to me, I just have some relatively minor comments throughout.

Comment thread doc/content/bib/tmap8.bib Outdated
Comment thread doc/content/verification_and_validation/ver-1n.md Outdated
Comment thread doc/content/verification_and_validation/index.md Outdated
Comment thread doc/content/verification_and_validation/ver-1n.md Outdated
Comment on lines +25 to +32
\begin{equation}
\label{eq:Nernst_Plank}
\frac{\partial C}{\partial t}
=
\frac{\partial}{\partial x}\left(D\frac{\partial C}{\partial x}\right)
+
\frac{\partial}{\partial x}\left(\frac{CDF}{RT}\frac{\partial \phi}{\partial x}\right),
\end{equation}

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.

Update to a more general expression (not only for x axis).

Comment thread test/tests/ver-1n/comparison_ver-1n.py Outdated
Comment on lines +76 to +80
R = 8.31446261815324 # J/mol/K
eV_to_J = 1.602176634e-19 # eV/J
N_a = 6.02214076e23 # at/mol
q = 1.602176634e-19 # C quantity of charge
F = N_a * q

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.

Look at what I have done for val-2k. You can actually read these values from the input file directly. This way, they are defined once and always consistent.

Comment thread test/tests/ver-1o/comparison_ver-1o.py Outdated
Comment on lines +17 to +25
HALF_LENGTH = 5.0e-3 # m, half-slab thickness (symmetry domain)
FULL_LENGTH = 10.0e-3 # m, full PCC slab thickness
SURFACE_TEMPERATURE = 773.0 # K, prescribed left-surface temperature
THERMAL_CONDUCTIVITY = 0.014 # W/m/K
SIGMA_REF = 1e-03 # S/m, electrical conductivity
VOLTAGE_TOTAL = 20.0 # V, voltage drop across the full 10 mm slab
DENSITY = 6.154e3 # kg/m^3
SPECIFIC_HEAT_MOLAR = 120.0 # J/mol/K
MOLAR_MASS_BCY20 = 283.42e-3 # kg/mol

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.

Look at what I have done for val-2k. You can actually read these values from the input file directly. This way, they are defined once and always consistent.

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.

This exodus is small, that's good!

Comment thread test/tests/ver-1n/comparison_ver-1n.py Outdated
Comment on lines +82 to +89
Temperature = 773 # K
Pressure_high = 100 # Pa
V = 20 # V
L = 10e-3 # m
diffusivity = (
np.sqrt(3) * 1.41e-6 * np.exp(-0.74 * eV_to_J * N_a / R / Temperature)
) # m^2/s
solubility = 1.06 * N_a * np.exp(-7726.21 / R / Temperature) # atom/m^3/Pa^0.5

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.

Same here about extracting values from input file. Make sure to check both python script for opportunities to do that.

Comment thread test/tests/ver-1o/comparison_ver-1o.py Outdated
@simopier

Copy link
Copy Markdown
Collaborator

@simopier, the PR is ready for your review. Current failure in Test Heavy is because of "divertor_monoblock".

working on this here: #434

@simopier

Copy link
Copy Markdown
Collaborator

@simopier, the PR is ready for your review. Current failure in Test Heavy is because of "divertor_monoblock".

working on this here: #434

Merged now, this should pass once you push a new commit.

lin-yang-ly and others added 2 commits June 30, 2026 10:19
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
@moosebuild

Copy link
Copy Markdown

Job Precheck, step Python: black format on 6676f7d wanted to post the following:

Python black formatting

Your code requires style changes.

A patch was generated and copied here.

You can directly apply the patch by running the following at the top level of your repository:

curl -s https://mooseframework.inl.gov/tmap8/docs/PRs/428/black/black.patch | git apply -v

Alternatively, you can run the following at the top level of your repository:

black --config pyproject.toml --workers 1 .

@moosebuild

Copy link
Copy Markdown

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

Test summary

Compared against c35f84b in job civet.inl.gov/job/3943508.

Added tests

Test Time (s) Memory (MB)
test:ver-1n.ver-1n 6.24 203.58
test:ver-1n.ver-1n_comparison 3.77 156.21
test:ver-1o.ver-1o_comparison 3.54 176.94
test:ver-1o.ver-1o 3.04 195.77
test:ver-1n.ver-1n_lineplot1 0.00
test:ver-1n.ver-1n_csvdiff 0.00
test:ver-1n.ver-1n_lineplot2 0.00
test:ver-1o.ver-1o_csvdiff 0.00

@lin-yang-ly

lin-yang-ly commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

@simopier The PR is ready for your review again!

P.S. "test:divertor_monoblock.initial/Shimada2024_run" with min_cpus=2 failed again, which is a little strange. I saw that all tests in #434 had passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V&V Relevant to V&V

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants