mkgeo_obstacle(1rheolef)
π mkgeo_obstacle β mesh of the obstacle-in-channel π
okay bestie, so this is the rheolef-7.2 version of this page, and it's literally about building meshes of that classic obstacle-in-channel thing. you're gonna eat this up, i promise. π¦
β¨ NAME β¨
mkgeo_obstacle β mesh of the obstacle-in-channel (rheolef-7.2)
πΈ SYNOPSIS πΈ
mkgeo_obstacle [options] [nx [ny]]
π EXAMPLE π
so like, this command right here builds a triangle-based 2d unstructured mesh of the [-L,L]x[0,c] with a unit circle hole at origin. iconic geometry tbh.
mkgeo_obstacle > obstacle.geo
geo obstacle.geo
π DESCRIPTION π
bestie. this command is the convenient way to build a mesh for the obstacle-in-channel geometry, because it's a super classical benchmark in complex fluid flow problems. it calls the bamg unstructured mesh generator with the anisotropy feature. π₯
the mesh files go on name.geo where name is the basename for the output (peep the -name option below, she's important).
and not just that β the three auxiliary files required for automatic mesh generation with Rheolef combined with bamg are also provided:
name.bamg
name.bamgcad
name.dmn
no cap, all three. you're welcome. π
π THE GEOMETRY π
-cfloat-Lfloat
these options control the geometry parameters. default is c=2 and L=2*c. β¨
-cartesian-zr
these options control the geometry coordinate system. default is Cartesian. π§
-quarter-half
when the quarter option is activated, the upstream-downstream symmetry is assumed and only one quarter of the geometry is considered. otherwise, with the half option, the upstream-downstream geometry is generated. default is the quarter option. πΈ
-Nint
the number of elements around the half of the circular obstacle. when the quarter option is activated, only a quarter of the circular obstacle is considered. default is N=100. π
π¦ THE DISCRETIZATION π¦
-hminfloat
controls the edge length on the obstacle. default is hmin=0.1. changing the density by the previous options applies the factor 1/n to hmin also. β
π BOUNDARY DOMAINS π
the boundary sides are represented by domains: obstacle, axis, wall, upstream and downstream. periodt. π
π«Ά OTHERS OPTIONS π«Ά
-namestring
set the basename for the output files. by default, the basename is obstacle. π
-[no]split
split each triangle in three subtriangles by inserting the barycenter as an additional node. this is useful for using the Scott and Vogelius incompressible mixed finite element P2-P1d for velocity-pressure approximation. default is no split. π
-[no]clean
clear temporary files (this is the default). π§Ή
-[no]verbose
in verbose mode, print to stderr all commands and logs. π’
π₯ IMPLEMENTATION π₯
this documentation has been generated from file main/sbin/mkgeo_obstacle.sh
π AUTHOR π
Pierre Saramito <Pierre.Saramito@imag.fr>
β COPYRIGHT β
Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr> GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
ok so the no-warranty part is real, bestie, don't come for me π
and that's the whole vibe check β this was rheolef, Version 7.2, page mkgeo_obstacle(1rheolef). go build some slay meshes, you got this ππ
π¦ where this page comes from
- debian trixie: rheolef 7.2-4 Β· GPL-3.0-or-later
- ubuntu noble: rheolef 7.2-3build5 Β· GPL-3.0-or-later
- ubuntu questing: rheolef 7.2-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms