|
| 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 |
0 commit comments