mkgeo_grid(1rheolef)

πŸ“¦
version 7.2 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’… 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 🌈

  • -a float
  • -b float
  • -c float
  • -d float
  • -f float
  • -g float

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, front and back 🧭
  • -[no]boundary β€” this option defines a domain named boundary that 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: east and west. Also, the separating domain is named interface in the mesh. This option is used for testing computations with subdomains (e.g. transmission problem; see usersguide) πŸ“–

Example:

mkgeo_grid -t 10 -region | geo -

⭐ CORNERS ⭐

  • -[no]corner β€” the corners (four in 2D and eight in 3D) are defined as OD-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 (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