Description

Description#

When hydrogen being transported through a piping network, some may permeate through the pipe walls. For this challenge you will need to evaluate how much hydrogen permeates from the outer surface at steady-state.

Consider a Eurofer pipe with an outer diameter of 25mm and inner diameter of 20mm at a fixed temperature of 600K. The hydrogen within the pipe is kept at a constant pressure of 50 MPa and the outer surface can be modelled by fixing a recombination coefficient.

📖 Task: Evaluate the hydrogen surface flux from the outer surface of the pipe

💡Hint: consider the type argument when defining the mesh.

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]
Recomb_eurofer = htm.recombination_coeffs.filter(material="steel").filter(
    author="grant"
)[2]

print(f"Diffusivity of Eurofer: \n {D_eurofer}")
print(f"Solubility of Eurofer: \n {S_eurofer}")
print(f"Hydrogen recombination on Eurofer: \n {Recomb_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(author="chen")[0]

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'
import festim as F

# YOUR CODE GOES HERE ...