Debian Codegraph @

demo/documented/subdomains/common.txt

raw
1
2 This demo illustrates:
3
4 * How to mark subdomains of a mesh
5 * How to store subdomain markers as a mesh function to DOLFIN XML files and VTK files
6
7 Problem definition
8 ------------------
9
10 In this demo, we focus on how to mark subdomains, so we do not have
11 any equations to solve. The mesh we will work on is a unit square
12 where the shape of a dolphin is removed from the middle of the square.
13 This mesh and the subdomain markers produced by this demo program are
14 the ones used for the Stokes demo programs. We will mark the
15 boundaries so that the boundary to the right (:math:`x = 1`) is
16 inflow, the boundary to the left (:math:`x = 0`) is outflow, and the
17 top, bottom and the interior boundary around the dolphin will be
18 noslip. We thus have
19
20 .. math::
21 \partial \Omega &= \Gamma_{\mathrm{inflow}} \cup \Gamma_{\mathrm{outflow}} \cup \Gamma_{\mathrm{noslip}}, \\
22 \Gamma_{\mathrm{inflow}} &= (1, y), \\
23 \Gamma_{\mathrm{outflow}} &= (0, y), \\
24 \Gamma_{\mathrm{noslip}} &= \partial \Omega \backslash (\Gamma_{\mathrm{inflow}} \cup \Gamma_{\mathrm{outflow}}). \\
25
26 The mesh with marked boundaries looks as follows:
27
28 .. image:: ../plot_subdomains.png
29 :scale: 75%