mkgeo_contraction(1rheolef)
β¨ NAME β¨
mkgeo_contraction β mesh of an abrupt contraction, from the rheolef-7.2 era bestie π
πΈ SYNOPSIS πΈ
mkgeo_contraction [options] [nx [ny]]
π¦ EXAMPLE π¦
Okay so this command right here builds a triangle-based 2d unstructured mesh of the [-10,0]x[0,4] u [0,10]x[0,1] mesh, and honestly? iconic:
mkgeo_contraction
geo contraction.geo
π DESCRIPTION π
This command is so convenient for building a mesh for the abrupt contraction, because it's literally a very classical benchmark in complex fluid flow problems β like, the moment of the field, no cap. It calls the bamg unstructured mesh generator with the anisotropy feature turned on. β¨
The mesh files go on name.geo where name is the basename for the output (peep the -name option below, bestie π).
The three auxiliary files required for automatic mesh generation with Rheolef combined with bamg are also provided:
name.bamg
name.bamgcad
name.dmn
π THE GEOMETRY π
The geometry is [-Lu,0]x[0,d] u [0,Ld]x[0,1]. By default c=4 is the contraction ratio and Lu=Ld=10 are the upstream and downstream pipe lengths. π
-cfloat-Lufloat-Ldfloat
These options control the geometry parameters. π«Ά
-cartesian-zr-rz
These options control the geometry coordinate system. Default is Cartesian. π§
π THE DISCRETIZATION π
The optional nx and ny arguments are integers that specify the subdivision in each direction. By default nx=1 and ny=nx. Changing the density applies the factor 1/nx to all the mesh edges lengths. (the way that math just works π)
-hminfloat
Controls the edge length at the re-entrant corner of the contraction. 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: axis, wall, upstream and downstream. Four little queens, each with their own job π
π OTHERS OPTIONS π
-namestring β Set the basename for the output files. By default, the basename iscontraction.-[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 elementP2-P1dfor velocity-pressure approximation. Default is no split.-[no]cleanβ Clear temporary files (this is the default).-[no]verboseβ In verbose mode, print tostderrall commands and logs.
π§ IMPLEMENTATION π§
This documentation has been generated from file main/sbin/mkgeo_contraction.sh β yes bestie, it's a shell script, slay π
π 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.
fr fr, no warranty β read it and weep (lovingly) π
That's the whole vibe check, bestie β this page came from rheolef, Version 7.2 and lives in the mkgeo_contraction(1rheolef) manual. Go build that contraction mesh, you absolute main character πβ¨π¦
π¦ 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