-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: devel
Are you sure you want to change the base?
Conversation
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. |
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 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:
but when I run in recover mode, I get:
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. |
- decay term for trapped tritium - use unit system - update comments
- add case with equivalent concentrations of mobile and trapped tritium
…erate test, increase accuracy, and fix recover failure
This should solve the recover issue
There was a problem hiding this 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.
Co-authored-by: Chaitanya Bhave <65254651+chaibhave@users.noreply.github.com>
There was a problem hiding this 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
Outdated
nl_rel_tol = 1e-10 | ||
nl_abs_tol = 1e-30 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page presents ver-1jb. | |
This page presents ver-1jb, based on the case published in the TMAP7 verification and validation 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, 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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
($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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
Ref. #12
Ref. #145