Description

Description#

Description#

A \(2 \ \mathrm{cm}\)-thick substrate of Eurofer is coated with alumina to reduce hydrogen permeation.

The 2.5 \(\mu \text{m}\)-thick coating is applied to the right-hand side only (\(\Gamma_\mathrm{R}\)).

The left-hand side surface (\(\Gamma_\mathrm{L}\)) is exposed to a partial pressure of \(\mathrm{H}_2\) of 10 bar at a fixed temperature of \(600 \ \mathrm{K}\).

Edge-effects are negligible, therefore the geometry is assumed to be 1D.

📖 Task: Evaluate the effectiveness of this barrier by quantifying the PRF:

\[ \text{PRF} = \frac{\Phi_{\text{uncoated}}}{\Phi_{\text{coated}}} \]

The transport properties for the Eurofer and alumina can be found below:

import h_transport_materials as htm

# eurofer properties
D_eurofer = htm.diffusivities.filter(material="eurofer_97").filter(
    author="chen"
)[0]

S_eurofer = htm.solubilities.filter(material="eurofer_97").filter(
    author="chen"
)[0]

print(f"Diffusivity of Eurofer: \n {D_eurofer}")
print(f"Solubility of Eurofer: \n {S_eurofer}")
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import h_transport_materials as htm
      2 
      3 # eurofer properties
      4 D_eurofer = htm.diffusivities.filter(material="eurofer_97").filter(

File ~/checkouts/readthedocs.org/user_builds/festim-workshop/conda/festim1/lib/python3.11/site-packages/h_transport_materials/__init__.py:25
     22 Rg = 8.314 * ureg.Pa * ureg.m**3 * ureg.mol**-1 * ureg.K**-1
     23 avogadro_nb = 6.022e23 * ureg.particle * ureg.mol**-1
---> 25 from pybtex.database import parse_file
     26 from pathlib import Path
     28 bib_database = parse_file(str(Path(__file__).parent) + "/references.bib")

File ~/checkouts/readthedocs.org/user_builds/festim-workshop/conda/festim1/lib/python3.11/site-packages/pybtex/database/__init__.py:44
     42 from pybtex.errors import report_error
     43 from pybtex.py3compat import fix_unicode_literals_in_doctest, python_2_unicode_compatible
---> 44 from pybtex.plugin import find_plugin
     47 # for python2 compatibility
     48 def indent(text, prefix):

File ~/checkouts/readthedocs.org/user_builds/festim-workshop/conda/festim1/lib/python3.11/site-packages/pybtex/plugin/__init__.py:26
      2 # Copyright (c) 2006-2021  Andrey Golovizin
      3 # Copyright (c) 2014  Matthias C. M. Troffaes
      4 #
   (...)     21 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     22 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     25 import os.path  # splitext
---> 26 import pkg_resources
     28 from pybtex.exceptions import PybtexError
     31 class Plugin(object):

ModuleNotFoundError: No module named 'pkg_resources'
# Al2O3 properties
diffusivity_al2o3 = (
    htm.diffusivities.filter(material="alumina")
    .filter(isotope="h")
    .filter(author="serra")
)[0]

solubility_al2o3 = (
    htm.solubilities.filter(material="alumina")
    .filter(isotope="h")
    .filter(author="serra")
)[0]

print(f"Diffusivity of alumina: \n {diffusivity_al2o3}")
print(f"Solubility of alumina: \n {solubility_al2o3}")
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[2], line 3
      1 # Al2O3 properties
      2 diffusivity_al2o3 = (
----> 3     htm.diffusivities.filter(material="alumina")
      4     .filter(isotope="h")
      5     .filter(author="serra")
      6 )[0]

NameError: name 'htm' is not defined

💡Hint: remember that you don’t have to manually copy-paste these values and you can directly integrate HTM with FESTIM. See Task 09.

Your answer#

import festim as F

# YOUR CODE GOES HERE ...