Extended PCT capabilities to low pressure for YHx#292
Extended PCT capabilities to low pressure for YHx#292Anthony-Bowers08 wants to merge 318 commits into
Conversation
|
Job Documentation, step Sync to remote on 4d11a94 wanted to post the following: View the site here This comment will be updated on new commits. |
simopier
left a comment
There was a problem hiding this comment.
Thank you for this @Anthony-Bowers08!
I have several high level requests/suggestions:
- Instead of adding a new material class, you should instead apply this in the existing
ADMatInterfaceReactionYHxPCTclass. There, you will see this if statement:
if (!_silence_warnings && ((neighbor_pressure < limit_pressure) || (neighbor_pressure > 1.e6)))
You should edit this if statement so that if the neighbor_pressure is above 1.e6 or lower than ~2.e2 (the lower pressure at which we have data if I remember properly), then an error is provided, if it is between 1.e6 and limit_pressure, then the current calculations for the high pressure regime is applied, and if it is between 2.e2 and limit_pressure, then it calculates the atomic fraction at the surface following the new equation you are proposing.
I think that should do it, and capture the plateau region. My concern is that we might see some oscillations around the plateau region, but we can test that and deploy a solution once we observe that.
-
I see that you have created an input file and submitted gold file, which is great. However, you need to also edit the
testfile related to this capability and add tests for all the configurations in the if statement above, with a particular focus on the new cases you are creating. The reason why thecoveragecurrently fails is because despite adding a new input file, no additional test is being run.
Note also that rather than create a brand new input file, you should instead use thecli_argsoption in thetestfile to utilize the existing file, but in the regime of interest to you. You will find example of that in thetestfile. -
You will also need to update the documentation page (format in
.md) to detail your new contribution to the existing capabilities. -
Your python script should be merged with the existing one for
ADMatInterfaceReactionYHxPCT. Do it all in there.
Let me know if you have any questions.
f0140fa to
05b1c7c
Compare
|
The prechecks are failing due to the white spaces: I thought you had applied the changes I had suggested to get rid of those. Did it not work? |
8dad514 to
6a315c7
Compare
|
@Anthony-Bowers08, you will need to fix the conflict with the python script. |
|
@simopier , think python script is an updated one from your prior .py yttrium script. I essentially added the low pressure plotting and made into a function based filed. I can revert to your prior .py file and just add the low pressure plotting there. |
Please do. Also, the conflicts means that the files have been updated in your branch and in a recent merge of TMAP8. So it's less about the nature of the change, and more about the fact that several changes from different origins are in conflict. We have recently deployed a formatting script for TMAP8, which affected many of the python scripts. That is probably the culprit. |
502a728 to
b70b205
Compare
simopier
left a comment
There was a problem hiding this comment.
You need an issue number in your commit message:
#########################################################################
ERROR: Your patch does not contain a valid ticket reference! (i.e. #1234)
Merge branch 'yttrium_hydride_lowpressure' of https://github.com/Anthony-Bowers08/TMAP8 into test
Modifications, reformatting, and cleaning YHX #Ref 262
##########################################################################
simopier
left a comment
There was a problem hiding this comment.
Thank you for this extension!
I added comments for you to incorporate.
Let me know if you have any questions.
| id=YHx_PCT_Data | ||
| caption=PCT data for YHx from [!cite](Lundin_1962). | ||
|
|
||
| !media comparison_YHx_PCT.py |
There was a problem hiding this comment.
Why do you cut the low pressure data at an atomic fraction of 0.5? It can/should go further than that, especially for higher temperatures.
There was a problem hiding this comment.
The fit becomes severely offset to the PCT data for values above 0.5. Please schedule a meeting to discuss if interested.
| [YHx_PCT_Data] shows the data used in this interface kernel. The experimental data originates from [!cite](Lundin_1962). | ||
| The [YHx_PCT_fit_2D] shows high and low pressure fit with the high pressure fit from [!cite](Matthews2021SWIFT) and the low-pressure is a newly fitted curve. | ||
|
|
||
| !media comparison_YHx_PCT.py |
There was a problem hiding this comment.
Please use the same colors as for the following figure. You use the same type of color palette, but it would be easier for the reader if you used the same color for the same temperature in both figures.
| nl_rel_tol = 1e-4 | ||
| nl_abs_tol = 4e-9 |
There was a problem hiding this comment.
Lin is making changes to these cases, and you should be ready to use his options, which will be merged soon. See #382
There was a problem hiding this comment.
Do not completely re-write this python script.
Add what you need and want to add by expanding what is already there.
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
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Add V&V case based on Kobayashi et al. (2015) modeling tritium thermal desorption spectroscopy from Li2TiO3 with irradiation-induced defects and O-center trapping with defect annihilation (Sample E). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Triggered by CIVET job https://civet.inl.gov/job/3807014
Add val-2k: deuterium desorption from self irradiated tungsten with thin film oxide
Remove empty slide from TMAP8 tutorial
Triggered by CIVET job https://civet.inl.gov/job/3814167
…ion. I still need to update the documentation. (Ref. idaholab#415)
Triggered by CIVET job https://civet.inl.gov/job/3817584
Triggered by CIVET job https://civet.inl.gov/job/3826647
- Update TMAP4 solution on lines 307-308 in comparison file. - Add citation on line 11 of doc file - Add alert to doc file to explain why the TMAP8 and TMAP4 analytical solutions were not used. (ref. idaholab#416)
Triggered by CIVET job https://civet.inl.gov/job/3839366
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Correcting steady state analytical solution in ver-1e
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
Co-authored-by: Pierre-Clement Simon <pierreclement.simon@gmail.com>
…rs08/tmap8 into yttrium_hydride_lowpressure
|
This PR needs to be properly rebased. |
(Ref. #261)