Skip to content

Commit

Permalink
Merge pull request #76 from festim-dev/structure
Browse files Browse the repository at this point in the history
Better structure for Verification
  • Loading branch information
RemDelaporteMathurin authored Aug 29, 2024
2 parents c51abb8 + 0110e93 commit 24ebd14
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 24 deletions.
36 changes: 20 additions & 16 deletions report/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,27 @@ parts:
- caption: Verification
chapters:
- file: verification/methods
- file: verification/cases
- file: verification/simple_cases
sections:
- file: verification/mes/depleting_source
- file: verification/mms/simple
- file: verification/mms/simple_transient
- file: verification/mms/fluxes
- file: verification/mms/discontinuity
- file: verification/mms/trapping
- file: verification/mms/heat_transfer
- file: verification/mes/radioactive_decay
- file: verification/mms/radioactive_decay
- file: verification/mms/soret
- file: verification/mms/simple_temperature
- file: verification/mes/tmap_1b
- file: verification/mes/tmap_1c
- file: verification/mes/tmap_1da
- file: verification/mes/tmap_1db
- file: verification/mms/simple
- file: verification/mms/simple_transient
- file: verification/mms/simple_temperature
- file: verification/mms/fluxes
- file: verification/mms/heat_transfer
- file: verification/mms/discontinuity
- file: verification/mms/trapping
- file: verification/decay
sections:
- file: verification/mes/radioactive_decay
- file: verification/mms/radioactive_decay
- file: verification/mms/soret
- file: verification/tmap
sections:
- file: verification/mes/depleting_source
- file: verification/mes/tmap_1b
- file: verification/mes/tmap_1c
- file: verification/mes/tmap_1da
- file: verification/mes/tmap_1db
- caption: Validation
chapters:
- file: validation/plasma-driven-permeation/plasma-driven-permeation
Expand Down
1 change: 0 additions & 1 deletion report/verification/cases.md

This file was deleted.

1 change: 1 addition & 0 deletions report/verification/decay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Radioactive decay
2 changes: 1 addition & 1 deletion report/verification/mes/depleting_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:

# Diffusion from a Depleting Source

```{tags} 2D, MES, transient
```{tags} 1D, MES, transient
```

This verification case {cite}`ambrosek_verification_2008` consists of an enclosure containing an initial quantity of hydrogen gas (at an initial pressure $P_0$).
Expand Down
4 changes: 2 additions & 2 deletions report/verification/mes/tmap_1db.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ where

$\lambda \ \mathrm{(m)}$ is the lattice parameter, \
$\nu \ (\mathrm{s}^{-1})$, the Debye frequency \
$n$ is the trapping site fraction, \
$c_m (\text{atom} \ \mathrm{m}^{-3})$ is the mobile atom concentration,
$n \ (\mathrm{s}^{-1})$ is the trapping site fraction, \
$c_\mathrm{m} \ (\text{H} \ \mathrm{m}^{-3})$ is the mobile concentration,

and the effective diffusivity $\mathrm{D_\text{eff}}$ is defined by

Expand Down
4 changes: 3 additions & 1 deletion report/verification/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ For each case, the L2 error $E$ is calculated in the domain $\Omega$:
\end{equation}
where $u_\mathrm{exact}$ and $u_\mathrm{computed}$ are the exact and computed solutions, respectively.

A [detailed example](mms/simple.md) is available in this book.
```{seealso}
[This example](mms/simple.md) details the MMS approach.
```

## Differentiating MES and MMS

Expand Down
6 changes: 5 additions & 1 deletion report/verification/mms/discontinuity.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Two exact solutions for mobile concentration of hydrogen are manufactured for bo
c_\mathrm{right,exact} &= \dfrac{K_{S,\mathrm{right}}}{K_{S,\mathrm{left}}} \ c_\mathrm{left,exact}
\end{align}

Note that the manufactured solutions were chosen so that the particle flux $J = -D \nabla c_\mathrm{m} \cdot \textbf{n}$ is continuous across the materials interface.
````{margin}
```{note}
The manufactured solutions were chosen so that the particle flux $J = -D \nabla c_\mathrm{m} \cdot \textbf{n}$ is continuous across the materials interface.
```
````

MMS sources are derived in each material:

Expand Down
2 changes: 1 addition & 1 deletion report/verification/mms/simple_temperature.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kernelspec:

# Simple diffusion with varying temperature

```{tags} 2D, MMS
```{tags} 2D, MMS, steady state
```

This is an extension of the [simple MMS](./simple.md) example with a non-homogenous temperature gradient.
Expand Down
4 changes: 4 additions & 0 deletions report/verification/mms/simple_transient.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ $$
\end{equation}
$$(c_exact_simple_transient)
```{note}
We use a manufactured solution that varies linearly with time ($t^1$), as the backward Euler scheme provides an exact solution in this case.
```
Injecting {eq}`c_exact_simple_transient` in {eq}`problem_simple_transient`, we obtain the expressions of $S$, $c_0$, and $c_\mathrm{initial}$:
\begin{align}
Expand Down
2 changes: 1 addition & 1 deletion report/verification/mms/soret.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kernelspec:

# Soret Effect

```{tags} 2D, MMS, soret
```{tags} 2D, MMS, soret, steady state
```

This MMS case verifies the implementation of the Soret effect in FESTIM.
Expand Down
1 change: 1 addition & 0 deletions report/verification/simple_cases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Simple cases
1 change: 1 addition & 0 deletions report/verification/tmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TMAP cases

0 comments on commit 24ebd14

Please sign in to comment.