Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ver 1jb to TMAP8's V&V suite #185

Open
wants to merge 14 commits into
base: devel
Choose a base branch
from
Open

Add Ver 1jb to TMAP8's V&V suite #185

wants to merge 14 commits into from

Conversation

simopier
Copy link
Collaborator

Ref. #12
Ref. #145

@moosebuild
Copy link

moosebuild commented Oct 13, 2024

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

View the site here

This comment will be updated on new commits.

@simopier
Copy link
Collaborator Author

simopier commented Oct 13, 2024

EDIT:

this issue was solved. It came from the fact that both tests added in this case were writing checkpoint files with the same name. Hence, depending on the timeline in which part 1 and recover happened, one test could end up using the checkpoint results from the other test.

This PR is fully ready for review.


Somehow, the recover test for the basic ver-1jb csv diff case fails.

in the normal test, I locally get:

Time Step 54, time = 1.60944e+09, dt = 3.15576e+07
 0 Nonlinear |R| = 2.411274e-09
      0 Linear |R| = 2.411274e-09
      1 Linear |R| = 7.021067e-25
 1 Nonlinear |R| = 4.598546e-24
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 1
 Solve Converged!

Outlier Variable Residual Norms:
  tritium_trapped_concentration_scaled: 4.275653e-24

but when I run in recover mode, I get:

Time Step 54, time = 1.60944e+09, dt = 3.15576e+07
 0 Nonlinear |R| = 2.412682e-09
      0 Linear |R| = 2.412682e-09
      1 Linear |R| = 3.107300e-24
 1 Nonlinear |R| = 1.280678e-12
      0 Linear |R| = 1.280678e-12
      1 Linear |R| = 2.833365e-28
 2 Nonlinear |R| = 4.801294e-14
      0 Linear |R| = 4.801294e-14
      1 Linear |R| = 2.043024e-29
 3 Nonlinear |R| = 1.800018e-15
      0 Linear |R| = 1.800018e-15
      1 Linear |R| = 3.814858e-31
 4 Nonlinear |R| = 6.748313e-17
      0 Linear |R| = 6.748313e-17
      1 Linear |R| = 1.430223e-32
 5 Nonlinear |R| = 2.529960e-18
      0 Linear |R| = 2.529960e-18
      1 Linear |R| = 5.706847e-34
 6 Nonlinear |R| = 9.484888e-20
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 6
 Solve Converged!

Outlier Variable Residual Norms:
  tritium_mobile_concentration_scaled: 9.484888e-20

and the time step ends up being different.

To be even more confusing, the case with equivalent concentrations of mobile and trapped tritium runs well in recover mode, when the only difference is the initial concentration of mobile tritium and trap_per_free value.

Any ideas or suggestions @cticenhour, @chaibhave, @lin-yang-ly?

Despite this issue, this PR is ready for review.

@moosebuild
Copy link

moosebuild commented Oct 15, 2024

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

Coverage

Coverage did not change

Full coverage report

This comment will be updated on new commits.

Copy link
Collaborator

@chaibhave chaibhave left a comment

Choose a reason for hiding this comment

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

Basically good to go except for some documentation and python code changes.

test/tests/ver-1jb/ver-1jb.i Outdated Show resolved Hide resolved
test/tests/ver-1jb/ver-1jb.i Outdated Show resolved Hide resolved
test/tests/ver-1jb/ver-1jb.i Outdated Show resolved Hide resolved
test/tests/ver-1jb/ver-1jb.i Show resolved Hide resolved
test/tests/ver-1jb/ver-1jb.i Outdated Show resolved Hide resolved
doc/content/verification_and_validation/ver-1jb.md Outdated Show resolved Hide resolved
test/tests/ver-1jb/comparison_ver-1jb.py Outdated Show resolved Hide resolved
test/tests/ver-1jb/comparison_ver-1jb.py Outdated Show resolved Hide resolved
Co-authored-by: Chaitanya Bhave <65254651+chaibhave@users.noreply.github.com>
Copy link
Collaborator Author

@simopier simopier left a comment

Choose a reason for hiding this comment

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

This is not a review, just responses to @chaibhave's comments.

test/tests/ver-1jb/ver-1jb.i Show resolved Hide resolved
Comment on lines 339 to 340
nl_rel_tol = 1e-10
nl_abs_tol = 1e-30
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think 1e-10 is absolutely needed here. I'll go back to the default if that works fine.

Copy link
Collaborator

@chaibhave chaibhave left a comment

Choose a reason for hiding this comment

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

@cticenhour ready for your review, I'm done with all reviews. The comments left unresolved you can resolve, I'm not on the CCB yet so I don't have permissions for it.

Copy link
Member

@cticenhour cticenhour left a comment

Choose a reason for hiding this comment

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

Found a few items I'd like addressed, and I resolved the remaining comments from @chaibhave that were marked as completed.

The first ([ver-1ja](ver-1ja.md)) is simple decay of mobile species in a slab.
The second (ver-1jb) is decay of trapped atoms in a similar slab but with a distributed trap concentration.
The first ([ver-1ja](ver-1ja.md)) models simple decay of mobile species in a slab.
The second (ver-1jb) models decay of trapped atoms in a similar slab but with a distributed trap concentration.
This page presents ver-1jb.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This page presents ver-1jb.
This page presents ver-1jb, based on the case published in the TMAP7 verification and validation suite [!citep](ambrosek2008verification).

Comment on lines +12 to +14
This verification case is an extension of[ver-1ja](ver-1ja.md), which tests the first order radioactive decay capabilities of TMAP8.
In ver-1jb, however, tritium decay is coupled with trapping, which was verified in several verification cases, including [ver-1d](ver-1d.md).
As [ver-1ja](ver-1ja.md), ver-1jb is based on the case published in the TMAP7 V&V suite [!citep](ambrosek2008verification).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This verification case is an extension of[ver-1ja](ver-1ja.md), which tests the first order radioactive decay capabilities of TMAP8.
In ver-1jb, however, tritium decay is coupled with trapping, which was verified in several verification cases, including [ver-1d](ver-1d.md).
As [ver-1ja](ver-1ja.md), ver-1jb is based on the case published in the TMAP7 V&V suite [!citep](ambrosek2008verification).
This verification case is an extension of[ver-1ja](ver-1ja.md), which tests the first order radioactive decay capabilities of TMAP8.
In ver-1jb, tritium decay is coupled with trapping, which itself was verified in several TMAP8 verification cases including [ver-1d](ver-1d.md).

This verification case is an extension of[ver-1ja](ver-1ja.md), which tests the first order radioactive decay capabilities of TMAP8.
In ver-1jb, however, tritium decay is coupled with trapping, which was verified in several verification cases, including [ver-1d](ver-1d.md).
As [ver-1ja](ver-1ja.md), ver-1jb is based on the case published in the TMAP7 V&V suite [!citep](ambrosek2008verification).
Similarly to [ver-1ja](ver-1ja.md), the model assumes pre-charging of an $l=1.5$ m long slab with tritium (with an assumed width and thickness of 1 m). Further complexity is added to the problem by introducing traps with a normal distribution centered at the mid-plane of the slab and a standard deviation of $l/4$, and mobile tritium.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Similarly to [ver-1ja](ver-1ja.md), the model assumes pre-charging of an $l=1.5$ m long slab with tritium (with an assumed width and thickness of 1 m). Further complexity is added to the problem by introducing traps with a normal distribution centered at the mid-plane of the slab and a standard deviation of $l/4$, and mobile tritium.
Similarly to [ver-1ja](ver-1ja.md), the model assumes pre-charging of an $l=1.5$ m long slab (with an assumed width and thickness of 1 m) with tritium. Further complexity is added to the problem by introducing mobile tritium and trapping sites whose locations follow a normal distribution centered at the mid-plane of the slab with a standard deviation of $l/4$.

In ver-1jb, however, tritium decay is coupled with trapping, which was verified in several verification cases, including [ver-1d](ver-1d.md).
As [ver-1ja](ver-1ja.md), ver-1jb is based on the case published in the TMAP7 V&V suite [!citep](ambrosek2008verification).
Similarly to [ver-1ja](ver-1ja.md), the model assumes pre-charging of an $l=1.5$ m long slab with tritium (with an assumed width and thickness of 1 m). Further complexity is added to the problem by introducing traps with a normal distribution centered at the mid-plane of the slab and a standard deviation of $l/4$, and mobile tritium.
The peak atomic fraction of traps is $C_{trap} = 0.001$, and the trap energy is $E=4.2$ eV. The material density used to calculate the number of traps is based on tungsten, and defined as 6.34 $\times 10^{28}$ atoms/m$^3$. The traps are initially filled with trapped tritium to 50% of trap concentration.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The peak atomic fraction of traps is $C_{trap} = 0.001$, and the trap energy is $E=4.2$ eV. The material density used to calculate the number of traps is based on tungsten, and defined as 6.34 $\times 10^{28}$ atoms/m$^3$. The traps are initially filled with trapped tritium to 50% of trap concentration.
The peak atomic fraction of traps is $C_{trap} = 0.001$, and the trap energy is $E=4.2$ eV. The material density used to calculate the number of traps is based on tungsten, and is defined as 6.34 $\times 10^{28}$ atoms/m$^3$. The traps are initially filled with trapped tritium to 50% of trap concentration.

\begin{equation}
D_T = 1.58 \times 10^{-4} \exp \left(- \frac{308 \times 10^{3}}{RT}\right),
\end{equation}
where $R$ is the ideal gas constant in J/K/mol from [Physical Constants](https://mooseframework.inl.gov/tmap8/source/utils/PhysicalConstants.html) and $T=300$ K is the temperature of the domain.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
where $R$ is the ideal gas constant in J/K/mol from [Physical Constants](https://mooseframework.inl.gov/tmap8/source/utils/PhysicalConstants.html) and $T=300$ K is the temperature of the domain.
where $R$ is the ideal gas constant in J/K/mol from [Physical Constants](utils/PhysicalConstants.md) and $T=300$ K is the temperature of the domain.

\end{equation}

where $I_{tot}^0 = I_M^0 + I_T^0$ atoms/m is the initial total inventory of tritium
($I_M^0$ and $I_T^0$ are the initial mobile and trapped tritium inventories).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
($I_M^0$ and $I_T^0$ are the initial mobile and trapped tritium inventories).
($I_M^0$ and $I_T^0$ are the initial mobile and trapped tritium inventories, respectively).

#### With a small concentration of mobile tritium compared to trapped tritium

[ver-1jb_results_comparison_analytical_time_evolution_1] shows the TMAP8 predictions and how they compare to the analytical solution
for the decay of tritium and associated growth of $^3$He in a distributed trap.
Copy link
Member

Choose a reason for hiding this comment

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

Here, $^3$He is used, but earlier in the document, helium-3 is used. Stylistically, we should be consistent. I leave it to you to decide which form you want.

caption=Comparison of TMAP8 predictions against the analytical solution for the decay of tritium and associated growth of $^3$He in a distributed trap with a small concentration of mobile tritium compared to trapped tritium.

[ver-1jb_results_profile_1] shows the depth profile of the initial trapped atoms of tritium, the concentration of trapped atoms of
tritium after 45 years, and the distribution of $^3$He at the end of that time across the distributed trap as predicted by TMAP8. The concentration of mobile tritium remains very low.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tritium after 45 years, and the distribution of $^3$He at the end of that time across the distributed trap as predicted by TMAP8. The concentration of mobile tritium remains very low.
tritium after 45 years, and the distribution of $^3$He at the end of that time period across the distributed trapping sites as predicted by TMAP8. The concentration of mobile tritium remains very low.

[ver-1jb_results_profile_1] shows the depth profile of the initial trapped atoms of tritium, the concentration of trapped atoms of
tritium after 45 years, and the distribution of $^3$He at the end of that time across the distributed trap as predicted by TMAP8. The concentration of mobile tritium remains very low.

Note that because of $^3$He is given a null diffusivity in this verification problem, the shape of the $^3$He does not broaden.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Note that because of $^3$He is given a null diffusivity in this verification problem, the shape of the $^3$He does not broaden.
Note that because $^3$He is given a null diffusivity in this verification problem, the shape of the $^3$He concentration does not broaden.

caption=Comparison of TMAP8 predictions against the analytical solution for the decay of tritium and associated growth of $^3$He in a distributed trap with equivalent initial concentrations of mobile and trapped tritium.

[ver-1jb_results_profile_2] shows the depth profile of the initial trapped atoms of tritium, the concentration of mobile and trapped atoms of
tritium after 45 years, and the distribution of $^3$He at the end of that time across the distributed trap as predicted by TMAP8.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tritium after 45 years, and the distribution of $^3$He at the end of that time across the distributed trap as predicted by TMAP8.
tritium after 45 years, and the distribution of $^3$He at the end of that time period across the distributed trapping sites as predicted by TMAP8.

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.

4 participants