Skip to content

Commit 0188da3

Browse files
Merge pull request #931 from festim-dev/update-docs
Update docs on fenicsx
2 parents effcbac + 57683e2 commit 0188da3

File tree

89 files changed

+1557
-626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1557
-626
lines changed

.github/workflows/doctest.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Documentation test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
docbuild:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Conda
14+
uses: conda-incubator/setup-miniconda@v2
15+
with:
16+
activate-environment: festim2-docs
17+
environment-file: docs/environment.yml
18+
19+
- name: Doc Tests
20+
shell: bash -l {0}
21+
run: sphinx-build -b doctest docs/source docs/_build/doctest

.readthedocs.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
version: 2
77

88
conda:
9-
environment: docs/source/environment.yaml
9+
environment: docs/environment.yml
1010

1111
build:
1212
os: "ubuntu-20.04"
@@ -16,13 +16,11 @@ build:
1616
# Build documentation in the docs/ directory with Sphinx
1717
sphinx:
1818
configuration: docs/source/conf.py
19-
2019
# If using Sphinx, optionally build your docs in additional formats such as PDF
2120
# formats:
2221
# - pdf
2322

2423
# # Optionally declare the Python requirements required to build your docs
25-
python:
26-
install:
27-
- method: pip
28-
path: .
24+
# python:
25+
# install:
26+
# - requirements: docs/requirements.txt

docs/environment.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: festim2-docs
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- fenics-dolfinx
7+
- matplotlib==3.7.1
8+
- pip>=20.1
9+
- sphinx<8 # sphinxcontrib-images is not compatible with sphinx 8
10+
- folium
11+
- numpy==1.24
12+
- tqdm
13+
- scifem>=0.2.8
14+
- sphinx-design
15+
- sphinxcontrib-bibtex
16+
- sphinxcontrib-images
17+
- sympy
18+
- sphinx-book-theme
19+
- sphinx-copybutton
20+
- pillow

docs/source/Makefile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Minimal makefile for Sphinx documentation
2-
#
3-
4-
# You can set these variables from the command line, and also
5-
# from the environment for the first two.
6-
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
10-
11-
# Put it first so that "make" without argument is like "make help".
12-
help:
13-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14-
15-
.PHONY: help Makefile
16-
17-
# Catch-all target: route all unknown targets to Sphinx using the new
18-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19-
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/_static/style.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
2+
3+
body {
4+
font-family: 'Open Sans', sans-serif;
5+
}
6+
7+
h1 {
8+
font-family: "Lato", sans-serif;
9+
}
10+
11+
pre,
12+
code {
13+
font-size: 100%;
14+
line-height: 155%;
15+
}
16+
17+
/* Main page overview cards */
18+
19+
.sd-card {
20+
border-radius: 0;
21+
padding: 30px 10px 20px 10px;
22+
margin: 10px 0px;
23+
}
24+
25+
.sd-card .sd-card-header {
26+
text-align: center;
27+
}
28+
29+
.sd-card .sd-card-title {
30+
text-align: center;
31+
}
32+
33+
.sd-card .sd-card-header .sd-card-text {
34+
margin: 0px;
35+
}
36+
37+
.sd-card .sd-card-img-top {
38+
height: 52px;
39+
width: 52px;
40+
margin-left: auto;
41+
margin-right: auto;
42+
}
43+
44+
.sd-card .sd-card-header {
45+
border: none;
46+
font-size: var(--pst-font-size-h5);
47+
font-weight: bold;
48+
padding: 2.5rem 0rem 0.5rem 0rem;
49+
}
50+
51+
52+
/*
53+
SPHINX-BOOK-THEME HOTFIX (top-right icons):
54+
https://github.com/executablebooks/sphinx-book-theme/issues/879
55+
*/
56+
.header-article__inner .header-article-items__end,
57+
.header-article__inner .header-article-items__start {
58+
align-items: start;
59+
display: flex;
60+
gap: .5rem;
61+
}
62+
63+
/*
64+
SPHINX-BOOK-THEME HOTFIX (right column vertical stretching fix):
65+
https://github.com/executablebooks/sphinx-book-theme/issues/879
66+
*/
67+
.toc-entry a.nav-link {
68+
padding: .125rem 0 .125rem 1rem;
69+
}
70+
71+
/*
72+
h3 font weight fix (from extra heavy to normal):
73+
https://github.com/executablebooks/sphinx-book-theme/issues/879
74+
*/
75+
h3 {
76+
font-size: 125%;
77+
font-weight: normal;
78+
}

docs/source/api/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
FESTIM API
22
==========
33

4+
.. warning::
5+
6+
🔨 This page is under construction. 🔨
7+
48

59
.. automodule:: festim.boundary_conditions
610
:members:
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
@article{McNabb1963,
2+
title = {{A New Analysis of the Diffusion of Hydrogen in Iron and Ferritic Steels}},
3+
author = {McNabb, A. and Foster, P. K.},
4+
year = 1963,
5+
journal = {Trans. Metall. Soc. AIME},
6+
volume = 227,
7+
pages = 618
8+
}
9+
@article{Longhurst1985,
10+
title = {{The soret effect and its implications for fusion reactors}},
11+
author = {Longhurst, G. R.},
12+
year = 1985,
13+
journal = {J. Nucl. Mater.},
14+
volume = 131,
15+
number = 1,
16+
pages = {61--69},
17+
issn = {00223115},
18+
url = {https://linkinghub.elsevier.com/retrieve/pii/0022311585904258}
19+
}
20+
@techreport{Pendergrass1976,
21+
title = {{Temperature-dependent ordinary and thermal diffusion of hydrogen isotopes through thermonuclear reactor components}},
22+
author = {Pendergrass, J. H.},
23+
year = 1976,
24+
url = {http://www.osti.gov/servlets/purl/7333557/},
25+
institution = {Los Alamos National Laboratory (LANL)}
26+
}
27+
@article{Delaporte-Mathurin2021,
28+
title = {{Influence of interface conditions on hydrogen transport studies}},
29+
author = {Delaporte-Mathurin, R. and Hodille, E. A. and Mougenot, J. and Charles, Y. and {De Temmerman}, G. and Leblond, F. and Grisolia, C.},
30+
year = 2021,
31+
journal = {Nucl. Fusion},
32+
volume = 61,
33+
number = 3,
34+
pages = {036038},
35+
issn = {0029-5515},
36+
url = {https://iopscience.iop.org/article/10.1088/1741-4326/abd95f}
37+
}
38+
@phdthesis{Delaporte-Mathurin2022,
39+
title = {{Hydrogen transport in tokamaks : Estimation of the ITER divertor tritium inventory and influence of helium exposure}},
40+
author = {Delaporte-Mathurin, R.},
41+
year = 2022,
42+
number = {2022PA131054},
43+
url = {https://theses.hal.science/tel-04004369},
44+
school = {{Universit{\'e} Paris-Nord - Paris XIII}},
45+
keywords = {Hydrogen ; Finite elements ; Numerical modelling ; Hydrog{\`e}ne ; El{\'e}ments finis ; Mod{\'e}lisation num{\'e}rique},
46+
type = {Theses}
47+
}
48+
@article{Schmid2016,
49+
title = {{Diffusion-trapping modelling of hydrogen recycling in tungsten under ELM-like heat loads}},
50+
author = {Schmid, K.},
51+
year = 2016,
52+
journal = {Phys. Scr.},
53+
volume = {T167},
54+
pages = {014025},
55+
issn = {0031-8949},
56+
url = {https://iopscience.iop.org/article/10.1088/0031-8949/T167/1/014025}
57+
}
58+
@article{Guterl2019,
59+
title = {Effects of surface processes on hydrogen outgassing from metal in desorption experiments},
60+
author = {Guterl, Jerome and Smirnov, RD and Snyder, P},
61+
year = 2019,
62+
journal = {Nuclear Fusion},
63+
publisher = {IOP Publishing},
64+
volume = 59,
65+
number = 9,
66+
pages = {096042},
67+
url = {https://iopscience.iop.org/article/10.1088/1741-4326/ab280a/meta}
68+
}
69+
@article{Pick1985,
70+
title = {A model for atomic hydrogen-metal interactions—application to recycling, recombination and permeation},
71+
author = {Pick, MA and Sonnenberg, K},
72+
year = 1985,
73+
journal = {Journal of Nuclear Materials},
74+
publisher = {Elsevier},
75+
volume = 131,
76+
number = {2-3},
77+
pages = {208--220},
78+
url = {https://www.sciencedirect.com/science/article/abs/pii/0022311585904593}
79+
}
80+
@article{Hodille2017,
81+
title = {Simulations of atomic deuterium exposure in self-damaged tungsten},
82+
author = {Hodille, EA and Zalo{\v{z}}nik, A and Markelj, S and Schwarz-Selinger, T and Becquart, CS and Bisson, R{\'e}gis and Grisolia, Christian},
83+
year = 2017,
84+
journal = {Nuclear Fusion},
85+
publisher = {IOP Publishing},
86+
volume = 57,
87+
number = 5,
88+
pages = {056002},
89+
url = {https://iopscience.iop.org/article/10.1088/1741-4326/aa5aa5/meta}
90+
}
91+
@article{Schmid2021,
92+
title = {On the use of recombination rate coefficients in hydrogen transport calculations},
93+
author = {Schmid, K and Zibrov, M},
94+
year = 2021,
95+
journal = {Nuclear Fusion},
96+
publisher = {IOP Publishing},
97+
volume = 61,
98+
number = 8,
99+
pages = {086008},
100+
url = {https://iopscience.iop.org/article/10.1088/1741-4326/ac07b2/meta}
101+
}
102+
@article{Hamamoto2020,
103+
title = {Comprehensive modeling of hydrogen transport and accumulation in titanium and zirconium},
104+
author = {Hamamoto, Yoshiki and Uchikoshi, Takeru and Tanabe, Katsuaki},
105+
year = 2020,
106+
journal = {Nuclear Materials and Energy},
107+
publisher = {Elsevier},
108+
volume = 23,
109+
pages = 100751,
110+
url = {https://www.sciencedirect.com/science/article/pii/S2352179120300272}
111+
}

0 commit comments

Comments
 (0)