Skip to content

Commit

Permalink
Merge pull request #19 from bcube-project/dev_stokes
Browse files Browse the repository at this point in the history
Addition of a Stokes flow example (steady and unsteady)
  • Loading branch information
lokmanb authored Nov 13, 2024
2 parents e5ef3e2 + 1b9d21b commit f9ad529
Show file tree
Hide file tree
Showing 8 changed files with 3,296 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ for name in (
"transport_supg",
"heat_equation_sphere",
"transport_hypersurface",
"stokes_flow",
)
gen_markdown_with_literate(joinpath(example_src, name), "$(name).jl", example_dir)
end
Expand Down Expand Up @@ -119,6 +120,7 @@ makedocs(;
"example/heat_equation_sphere.md",
"example/heat_equation_two_layers.md",
"example/transport_hypersurface.md",
"example/stokes_flow.md",
],
],
# remotes = nothing, # tmp fix for bmxam windows
Expand Down
Binary file added docs/src/assets/Stokes_flow_Moffat_vortices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/Stokes_flow_unsteady.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions input/mesh/domainTriangle_tri.geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//+
//L = 10.0;
//a = 3.25;
//b = 13.5;
//x1 = L*a/b;
//y1 = Sqrt(L*L-x1*x1);
y1 = 1.0;
x1 = Tan(Pi*14./180.);
Point(1) = {0, 0, 0, 1.0};
//+
Point(2) = {x1, y1, 0, 1.0};
//+
Point(3) = {-x1, y1, 0, 1.0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 3};
//+
Line(3) = {3, 1};
//+
Curve Loop(1) = {1, 2, 3};
//+
Plane Surface(1) = {1};
//+
Physical Curve("edge_right") = {1};
//+
Physical Curve("edge_top") = {2};
//+
Physical Curve("edge_left") = {3};
//+
Physical Surface("Domain") = {1};
//+
Transfinite Curve {1, 3} = 51 Using Progression 1;
Transfinite Curve {2} = 21 Using Progression 1;
Loading

0 comments on commit f9ad529

Please sign in to comment.