Skip to content

Commit 65d60a5

Browse files
committed
Documentation for validation cases 1-3 idaholab#12
1 parent bdf9e6c commit 65d60a5

22 files changed

+3562
-124
lines changed

doc/content/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ effectively changing the concentration of the trapped specie from being measured
2727
in #/volume to k#/volume where 'k' indicates kilo. After this transformation,
2828
the numerical concentrations of the trapped and mobile species are on the same
2929
order of magnitude.
30+
31+
## [Validation](verification/val-list.md)
32+
33+
Several problems originally developed for the TMAP4 code have been used for the
34+
validation of the TMAP8 code. These validation cases can be found
35+
[here](verification/val-list.md).

doc/content/verification/bibfile.bib

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@techreport{longhurst1992verification,
2+
title={Verification and Validation of TMAP4},
3+
author={Longhurst, GR and Harms, SL and Marwil, ES and Miller, BG},
4+
year={1992},
5+
institution={EG and G Idaho, Inc., Idaho Falls, ID (United States)}
6+
}
30.2 KB
Loading
32.4 KB
Loading
35.9 KB
Loading
31.6 KB
Loading
50.4 KB
Loading

doc/content/verification/val-1a.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# val-1a
2+
3+
# Depleting Source Problem
4+
5+
## Test Description
6+
7+
This validation problem is taken from [!cite](longhurst1992verification). The model consists of an enclosure containing a finite concentration of atoms which are allowed to diffuse into a SiC layer over time. No solubility or trapping effects are included. The fractional release from the outside of the shell in a depleting source model in a slab geometry is given by:
8+
9+
\begin{equation}
10+
FR = 1.0 - \sum_{n=1}^{\infty} \frac{2\ L sec \ \alpha_{n} - \exp\left(\frac{-\alpha_{n}^2 D T}{l^{2}}\right)}{L(L+1) + \alpha_n^{2}}
11+
\end{equation}
12+
13+
where
14+
15+
\begin{equation}
16+
L = \frac{lA}{V \phi}
17+
\end{equation}
18+
19+
\begin{equation}
20+
\phi = \frac{source \ concentration}{layer \ concentration}
21+
\end{equation}
22+
23+
where the layer concentration is that at the interface with the source ($\phi$ is constant in time),
24+
25+
$A$ = surface area
26+
27+
$V$ = source volume
28+
29+
$l$ = layer thickness
30+
31+
and the $\alpha_n$ are the roots of
32+
33+
\begin{equation}
34+
\alpha_n = \frac{L}{tan \ \alpha_n}
35+
\end{equation}
36+
37+
## Results
38+
39+
40+
[val-1a_comparison] shows the comparison of the TMAP8 calculation and the analytical solution. There is good agreement between the two plots.
41+
42+
43+
!media figures/val-1a_comparison.png
44+
style=width:50%;margin-bottom:2%
45+
id=val-1a_comparison
46+
caption=Comparison of TMAP8 calculation with the analytical solution
47+
48+
!bibtex bibliography

doc/content/verification/val-1b.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# val-1b
2+
3+
# Diffusion Problem with Constant Source Boundary Condition
4+
5+
This validation problem is taken from [!cite](longhurst1992verification). Diffusion of tritium through a semi-infinite SiC layer is modeled with a constant
6+
source located on one boundary. No solubility or traping is included. The
7+
concentration as a function of time and position is given by:
8+
9+
\begin{equation}
10+
C = C_o \; erfc \left(\frac{x}{2\sqrt{Dt}}\right)
11+
\end{equation}
12+
13+
Comparison of the TMAP8 results and the analytical solution is shown in
14+
[val-1b_comparison_time] as a function of time at
15+
x = 0.2 mm. For simplicity, both the diffusion coefficient and the initial
16+
concentration were set to unity. The TMAP8 code predictions match very well with
17+
the analytical solution.
18+
19+
!media figures/val-1b_comparison_time.png
20+
style=width:50%;margin-bottom:2%
21+
id=val-1b_comparison_time
22+
caption=Comparison of concentration as function of time at x\=0.2m calculated
23+
through TMAP8 and analytically
24+
25+
As a second check, the concentration as a function of position at a given time
26+
t = 25s, from TMAP8 was compared with the analytical solution as shown in
27+
[val-1b_comparison_dist]. The predicted concentration profile from TMAP8 is in
28+
good agreement with the analytical solution.
29+
30+
!media figures/val-1b_comparison_dist.png
31+
style=width:50%;margin-bottom:2%
32+
id=val-1b_comparison_dist
33+
caption=Comparison of concentration as function of distance from the source
34+
at t\=25sec calculated through TMAP8 and analytically
35+
36+
Finally, the diffusive flux ($J$) was compared with the analytic solution where the
37+
flux is proportional to the derivative of the concentration with respect to x and
38+
is given by:
39+
40+
\begin{equation}
41+
J = C_o \; \sqrt{\frac{D}{t\pi}} \; exp \left(\frac{x}{2\sqrt{Dt}}\right)
42+
\end{equation}
43+
44+
The flux as given by Equation (?) is compared with values calculated by TMAP8 in
45+
Table ?. The diffusivity, D, and the initial concentration, C$_o$, were both
46+
taken as unity, and the distance, x, was taken as 0.5 in this comparison.
47+
TMAP8 initially under predicts but the results match well subsequently. Comparison
48+
results are shown in []
49+
50+
!media figures/val-1b_comparison_flux.png
51+
style=width:50%;margin-bottom:2%
52+
id=val-1b_comparison_flux
53+
caption=Comparison of flux as function of time at x\=0.5m calculated through
54+
TMAP8 and analytically
55+
56+
### Notes
57+
58+
The trapping test features some oscillations in the solution for whatever
59+
reason. In order for the oscillations to not take over the simulation, it seems
60+
that the ratio of the **inverse of the Fourier number** must be kept
61+
sufficiently high, e.g. `h^2 / (D * dt)`. Included in this directory are three
62+
`png` files that show the permeation for different `h` and `dt` values. They are
63+
summarized below:
64+
65+
- `nx-80.png`: `nx = 80` and `dt = .0625`
66+
- `nx-40.png`: `nx = 40` and `dt = .25`
67+
- `nx-20.png`: `nx = 20` and `dt = 1`
68+
69+
The oscillations in the permeation graph go away with increasing fineness in the
70+
mesh and in `dt`.
71+
72+
!bibtex bibliography

doc/content/verification/val-1c.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# val-1c
2+
3+
# Diffusion Problem with Partially Preloaded Slab
4+
5+
This validation problem is taken from [!cite](longhurst1992verification). Diffusion of tritium through a semi-infinite SiC layer is modeled with an initial
6+
loading of 1 atom/m{^3} in the first 10 m of a 2275-m slab. Solubility is unity
7+
and no traping is included. The analytical solution is given by:
8+
9+
\begin{equation}
10+
C = \frac{C_o}{2} \left( erf \left( \frac{h-x}{2} \sqrt{Dt} \right) + erf \left( \frac{h+x}{2\sqrt{Dt}}) \right) \right)
11+
\end{equation}
12+
13+
14+
where h is the thickness of the pre-loaded portion of the layer.
15+
16+
At the surface (x = 0) the concentration is given by:
17+
18+
\begin{equation}
19+
C = \frac{C_o}{2} \; erf \left( \frac{h}{2\sqrt{Dt}} \right)
20+
\end{equation}
21+
22+
while at x = h its value is described by
23+
24+
\begin{equation}
25+
C = \frac{C_o}{2} \; erf \left( \frac{h}{\sqrt{Dt}} \right)
26+
\end{equation}
27+
28+
A comparison of the mobile species concentration values at x = 0 m, 10 m and
29+
12.5 m calculated through TMAP8 and analytically is shown in
30+
[val-1c_comparison_time]. The TMAP8 calculations are found to be in good agreement
31+
with the analytical solution.
32+
33+
!media figures/val-1c_comparison_time.png
34+
style=width:50%;margin-bottom:2%
35+
id=val-1c_comparison_time
36+
caption=Comparison of concentration as function of time at x\=0 m, 10 m and 12 m
37+
calculated through TMAP8 and analytically
38+
39+
!bibtex bibliography

0 commit comments

Comments
 (0)