Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
stokes-darcy.geo

This file on gitlab

The stokes-darcy.geo file given below, describes the domain for the Stokes-Darcy equation example problem. It can be used to generate the respective mesh using the following command:

gmsh stokes-darcy.geo -1 -2 -o stokes-darcy.msh
1// SPDX-FileCopyrightText: Copyright © DUNE-FUFEM Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3
4// Generate msh file with $ gmsh stokes-darcy.geo -1 -2 -o stokes-darcy.msh
5
6Point(1) = {0, 0, 0};
7Point(2) = {5, 0, 0};
8Point(3) = {5, 2, 0};
9Point(4) = {4.5, 2, 0};
10Point(5) = {3.5, 1, 0};
11Point(6) = {1.5, 1, 0};
12Point(7) = {0.5, 2, 0};
13Point(8) = {0, 2, 0};
14
15
16Line(1) = {1, 2};
17Line(2) = {2, 3};
18Line(3) = {3, 4};
19Line(4) = {4, 5};
20Line(5) = {5, 6};
21Line(6) = {6, 7};
22Line(7) = {7, 8};
23Line(8) = {8, 1};
24Line(9) = {7, 4};
25
26// Stokes subdomain
27Curve Loop(1) = {4, 5, 6, 9};
28Plane Surface(1) = {1};
29Physical Surface(1) = {1};
30
31// Darcy subdomain
32Curve Loop(2) = {1, 2, 3, 4, 5, 6, 7, 8};
33Plane Surface(2) = {2};
34Physical Surface(2) = {2};
35
36// Stokes Dirichlet boundary
37Physical Curve(1) = {9};
38
39// Darcy Dirichlet boundary
40Physical Curve(2) = {1};
41
42Mesh.MshFileVersion = 2.2;
43Mesh.MeshSizeMax = 0.5;
44Mesh 2;