Skip to content

Commit ee94ffc

Browse files
committed
Website build
1 parent 3051f3b commit ee94ffc

59 files changed

Lines changed: 4461 additions & 3082 deletions

Some content is hidden

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

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 082ecbcbbeeaf13a176965b05301a940
3+
config: 1d9ec47504949a59bed1ee2b0baa1f42
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

1_quadrature.html

Lines changed: 182 additions & 98 deletions
Large diffs are not rendered by default.

2_finite_elements.html

Lines changed: 166 additions & 160 deletions
Large diffs are not rendered by default.

3_meshes.html

Lines changed: 74 additions & 151 deletions
Large diffs are not rendered by default.

4_function_spaces.html

Lines changed: 93 additions & 115 deletions
Large diffs are not rendered by default.

5_functions.html

Lines changed: 112 additions & 115 deletions
Large diffs are not rendered by default.

6_finite_element_problems.html

Lines changed: 118 additions & 120 deletions
Large diffs are not rendered by default.

7_boundary_conditions.html

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
21
<!DOCTYPE html>
32

4-
<html>
3+
<html lang="en" data-content_root="./">
54
<head>
65
<meta charset="utf-8" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
87

9-
<title>7. Dirichlet boundary conditions &#8212; Finite element course 2021.0 documentation</title>
10-
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
11-
<link rel="stylesheet" type="text/css" href="_static/fenics.css" />
8+
<title>7. Dirichlet boundary conditions &#8212; Finite element course 2024.0 documentation</title>
9+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b76e3c8a" />
10+
<link rel="stylesheet" type="text/css" href="_static/fenics.css?v=7793b76c" />
1211
<link rel="stylesheet" type="text/css" href="_static/proof.css" />
13-
<link rel="stylesheet" type="text/css" href="_static/panels-main.c949a650a448cc0ae9fd3441c0e17fb0.css" />
14-
<link rel="stylesheet" type="text/css" href="_static/panels-bootstrap.5fd3999ee7762ccc51105388f4a9d115.css" />
15-
<link rel="stylesheet" type="text/css" href="_static/panels-variables.06eb56fa6e07937060861dad626602ad.css" />
16-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
17-
<script src="_static/jquery.js"></script>
18-
<script src="_static/underscore.js"></script>
19-
<script src="_static/doctools.js"></script>
12+
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />
13+
<script src="_static/documentation_options.js?v=7ff0cb77"></script>
14+
<script src="_static/doctools.js?v=888ff710"></script>
15+
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
2016
<script src="_static/proof.js"></script>
17+
<script src="_static/design-tabs.js?v=36754332"></script>
2118
<script async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
2219
<link rel="index" title="Index" href="genindex.html" />
2320
<link rel="search" title="Search" href="search.html" />
@@ -52,7 +49,7 @@
5249
<div class="body" role="main">
5350

5451
<section id="dirichlet-boundary-conditions">
55-
<span id="secdirichlet"></span><h1><span class="section-number">7. </span>Dirichlet boundary conditions<a class="headerlink" href="#dirichlet-boundary-conditions" title="Permalink to this headline"></a></h1>
52+
<span id="secdirichlet"></span><h1><span class="section-number">7. </span>Dirichlet boundary conditions<a class="headerlink" href="#dirichlet-boundary-conditions" title="Link to this heading"></a></h1>
5653
<p>The Helmholtz problem we solved in the previous part was chosen to
5754
have homogeneous Neumann or <em>natural</em> boundary conditions, which can
5855
be implemented simply by cancelling the zero surface integral. We can
@@ -61,11 +58,11 @@
6158
now specify a Poisson problem with homogeneous Dirichlet conditions, find <span class="math notranslate nohighlight">\(u\)</span> in
6259
some finite element space <span class="math notranslate nohighlight">\(V\)</span> such that:</p>
6360
<div class="math notranslate nohighlight" id="equation-poisson">
64-
<span class="eqno">(7.1)<a class="headerlink" href="#equation-poisson" title="Permalink to this equation"></a></span>\[ \begin{align}\begin{aligned}-\nabla^2 u = f\\u = 0 \textrm{ on }\Gamma\end{aligned}\end{align} \]</div>
61+
<span class="eqno">(7.1)<a class="headerlink" href="#equation-poisson" title="Link to this equation"></a></span>\[ \begin{align}\begin{aligned}-\nabla^2 u = f\\u = 0 \textrm{ on }\Gamma\end{aligned}\end{align} \]</div>
6562
<p>In order to implement the Dirichlet conditions, we need to decompose
6663
<span class="math notranslate nohighlight">\(V\)</span> into two parts:</p>
6764
<div class="math notranslate nohighlight" id="equation-7-boundary-conditions-0">
68-
<span class="eqno">(7.2)<a class="headerlink" href="#equation-7-boundary-conditions-0" title="Permalink to this equation"></a></span>\[V = V_0 \oplus V_\Gamma\]</div>
65+
<span class="eqno">(7.2)<a class="headerlink" href="#equation-7-boundary-conditions-0" title="Link to this equation"></a></span>\[V = V_0 \oplus V_\Gamma\]</div>
6966
<p>where <span class="math notranslate nohighlight">\(V_\Gamma\)</span> is the space spanned by those functions in the basis
7067
of <span class="math notranslate nohighlight">\(V\)</span> which are non-zero on <span class="math notranslate nohighlight">\(\Gamma\)</span>, and <span class="math notranslate nohighlight">\(V_0\)</span> is the space spanned
7168
by the remaining basis functions (i.e. those basis functions which
@@ -76,7 +73,7 @@
7673
<p>We now write the weak form of <a class="reference internal" href="#equation-poisson">(7.1)</a>, find <span class="math notranslate nohighlight">\(u=u_0 + u_\Gamma\)</span>
7774
with <span class="math notranslate nohighlight">\(u_0 \in V_0\)</span> and <span class="math notranslate nohighlight">\(u_\Gamma \in V_\Gamma\)</span> such that:</p>
7875
<div class="math notranslate nohighlight" id="equation-7-boundary-conditions-1">
79-
<span class="eqno">(7.3)<a class="headerlink" href="#equation-7-boundary-conditions-1" title="Permalink to this equation"></a></span>\[ \begin{align}\begin{aligned}\int_\Omega \nabla v_0 \cdot \nabla (u_0+u_\Gamma) \, \mathrm{d} x
76+
<span class="eqno">(7.3)<a class="headerlink" href="#equation-7-boundary-conditions-1" title="Link to this equation"></a></span>\[ \begin{align}\begin{aligned}\int_\Omega \nabla v_0 \cdot \nabla (u_0+u_\Gamma) \, \mathrm{d} x
8077
- \underbrace{\int_\Gamma v_0 \nabla (u_0+u_\Gamma) \cdot
8178
\mathbf{n}\, \mathrm{d} s}_{=0} = \int_\Omega v_0\, f\, \mathrm{d} x
8279
\qquad \forall v_0 \in V_0\\u_\Gamma = 0 \qquad \textrm{ on } \Gamma\end{aligned}\end{align} \]</div>
@@ -93,11 +90,11 @@
9390
</ol>
9491
<p>This means that the weak form is actually:</p>
9592
<div class="math notranslate nohighlight" id="equation-weakpoisson">
96-
<span class="eqno">(7.4)<a class="headerlink" href="#equation-weakpoisson" title="Permalink to this equation"></a></span>\[ \begin{align}\begin{aligned}\int_\Omega \nabla v_0 \cdot \nabla u \, \mathrm{d} x
93+
<span class="eqno">(7.4)<a class="headerlink" href="#equation-weakpoisson" title="Link to this equation"></a></span>\[ \begin{align}\begin{aligned}\int_\Omega \nabla v_0 \cdot \nabla u \, \mathrm{d} x
9794
= \int_\Omega v_0\, f\, \mathrm{d} x
9895
\qquad \forall v_0 \in V_0\\u_\Gamma = 0\end{aligned}\end{align} \]</div>
9996
<section id="an-algorithm-for-homogeneous-dirichlet-conditions">
100-
<h2><span class="section-number">7.1. </span>An algorithm for homogeneous Dirichlet conditions<a class="headerlink" href="#an-algorithm-for-homogeneous-dirichlet-conditions" title="Permalink to this headline"></a></h2>
97+
<h2><span class="section-number">7.1. </span>An algorithm for homogeneous Dirichlet conditions<a class="headerlink" href="#an-algorithm-for-homogeneous-dirichlet-conditions" title="Link to this heading"></a></h2>
10198
<p>The implementation of homogeneous Dirichlet conditions is actually
10299
rather straightforward.</p>
103100
<ol class="arabic simple">
@@ -120,7 +117,7 @@ <h2><span class="section-number">7.1. </span>An algorithm for homogeneous Dirich
120117
</div>
121118
</section>
122119
<section id="implementing-boundary-conditions">
123-
<h2><span class="section-number">7.2. </span>Implementing boundary conditions<a class="headerlink" href="#implementing-boundary-conditions" title="Permalink to this headline"></a></h2>
120+
<h2><span class="section-number">7.2. </span>Implementing boundary conditions<a class="headerlink" href="#implementing-boundary-conditions" title="Link to this heading"></a></h2>
124121
<p>Let:</p>
125122
<div class="math notranslate nohighlight">
126123
\[f = \left(16 \pi^2 (x_1 - 1)^2 x_1^2 - 2 (x_1 - 1)^2 - 8 (x_1 - 1) x_1 - 2 x_1^2\right) \sin(4 \pi x_0)\]</div>
@@ -138,7 +135,7 @@ <h2><span class="section-number">7.2. </span>Implementing boundary conditions<a
138135
function. You should base your implementation on your
139136
<code class="docutils literal notranslate"><span class="pre">fe_utils/solvers/helmholtz.py</span></code> but take into account the difference
140137
in the equation, and the boundary conditions. The
141-
<code class="xref py py-func docutils literal notranslate"><span class="pre">fe_utils.solvers.poisson.boundary_nodes()</span></code> function in <code class="docutils literal notranslate"><span class="pre">fe_utils/solvers/poisson.py</span></code> is
138+
<a class="reference internal" href="fe_utils.solvers.html#fe_utils.solvers.poisson.boundary_nodes" title="fe_utils.solvers.poisson.boundary_nodes"><code class="xref py py-func docutils literal notranslate"><span class="pre">fe_utils.solvers.poisson.boundary_nodes()</span></code></a> function in <code class="docutils literal notranslate"><span class="pre">fe_utils/solvers/poisson.py</span></code> is
142139
likely to be helpful in implementing the boundary conditions. As
143140
before, run:</p>
144141
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="n">fe_utils</span><span class="o">/</span><span class="n">solvers</span><span class="o">/</span><span class="n">poisson</span><span class="o">.</span><span class="n">py</span> <span class="o">--</span><span class="n">help</span>
@@ -150,7 +147,7 @@ <h2><span class="section-number">7.2. </span>Implementing boundary conditions<a
150147
for this problem.</p>
151148
</div></div></section>
152149
<section id="inhomogeneous-dirichlet-conditions">
153-
<h2><span class="section-number">7.3. </span>Inhomogeneous Dirichlet conditions<a class="headerlink" href="#inhomogeneous-dirichlet-conditions" title="Permalink to this headline"></a></h2>
150+
<h2><span class="section-number">7.3. </span>Inhomogeneous Dirichlet conditions<a class="headerlink" href="#inhomogeneous-dirichlet-conditions" title="Link to this heading"></a></h2>
154151
<p>The algorithm described here can be extended to inhomogeneous systems
155152
by setting the entries in the global vector to the value of the
156153
boundary condition at the corresponding boundary node. This additional
@@ -167,8 +164,8 @@ <h2><span class="section-number">7.3. </span>Inhomogeneous Dirichlet conditions<
167164
<div class="clearer"></div>
168165
</div>
169166
<div class="footer" role="contentinfo">
170-
&#169; Copyright 2014-2021, David A. Ham and Colin J. Cotter.
171-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.5.0.
167+
&#169; Copyright 2014-2024, David A. Ham and Colin J. Cotter.
168+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
172169
</div>
173170
</body>
174171
</html>

0 commit comments

Comments
 (0)