mkgeo_grid(1rheolef)
π mkgeo_grid β structured mesh of a parallelepiped π
okay bestie, welcome to the rheolef manual, section 1rheolef β yes we're doing the whole "mkgeo_grid(1rheolef)" thing but cute β¨
β¨ NAME β¨
mkgeo_grid β a structured mesh of a parallelepiped, brought to you by rheolef-7.2 π§
π¦ SYNOPSIS π¦
mkgeo_grid [options] [nx [ny [nz]]]
π EXAMPLES π
okay so the classic move: build a triangular-based 2d 10x10 grid of the unit square, like this:
mkgeo_grid -t 10 > square-10.geo
geo square-10.geo
orrr you can just do it all in one command line, main character energy:
mkgeo_grid -t 10 | geo -
πΈ DESCRIPTION πΈ
This command is so useful when you're testing programs on simple geometries. It literally skips the whole "prepare an input file for a mesh generator" saga. No cap. π
The optional nx, ny and nz arguments are integers that specify the subdivision in each direction. Defaults? nx=10, ny=nx and nz=ny. The mesh files go on standard output β pipe away, queen π
And it supports all the possible element types: edges, triangles, rectangles, tetrahedra, prisms and hexahedra. the range. we love to see it π«Ά
π ELEMENT TYPE OPTION π
-eβ 1d mesh using edges πͺ‘-tβ 2d mesh using triangles πΊ-qβ 2d mesh using quadrangles (rectangles) π¦-Tβ 3d mesh using tetrahedra π»-Pβ 3d mesh using prisms π-Hβ 3d mesh using hexahedra π²
π THE GEOMETRY π
-afloat-bfloat-cfloat-dfloat-ffloat-gfloat
The geometry can be any [a,b] segment, [a,b]x[c,d] rectangle or [a,b]x[c,d]x[f,g] parallelepiped. By default a=c=f=0 and b=d=g=1, so we're vibing with the unit boxes π¦
For instance, this command meshes the [-2,2]x[-1.5, 1.5] rectangle:
mkgeo_grid -t 10 -a -2 -b 2 -c -1.5 -d 1.5 | geo -
π BOUNDARY DOMAINS π
-[no]sidesβ the boundary sides are represented by domains:left,right,top,bottom,frontandbackπ§-[no]boundaryβ this option defines a domain namedboundarythat groups all sides π«
By default, both sides and the whole boundary are defined as domains:
mkgeo_grid -t 10 -nosides | geo -
mkgeo_grid -t 10 -noboundary | geo -
mkgeo_grid -t 10 -noboundary -nosides | geo -
π§ REGIONS π§
-[no]regionβ the whole domain is split into two subdomains:eastandwest. Also, the separating domain is namedinterfacein the mesh. This option is used for testing computations with subdomains (e.g. transmission problem; seeusersguide) π
Example:
mkgeo_grid -t 10 -region | geo -
β CORNERS β
-[no]cornerβ the corners (four in 2D and eight in 3D) are defined asOD-domains. This could be useful for some special boundary conditions π©
Example:
mkgeo_grid -t 10 -corner | geo -
mkgeo_grid -T 5 -corner | geo -
π COORDINATE SYSTEM OPTIONS π
-cartesian-rz-zr
Specifies the coordinate system. The default is cartesian while -rz and -zr denote some axisymmetric coordinate systems π Recall that most of Rheolef codes are coordinate-system independent and the coordinate system is specified in the geometry file .geo. iykyk π
π₯ IMPLEMENTATION π₯
This documentation has been generated from file main/sbin/mkgeo_grid.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. β οΈ
okay that's the whole page bestie, mwah π this was rheolef, Version 7.2, and the page itself is mkgeo_grid(1rheolef) β go mesh something iconic π¦β¨
π¦ 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