mkgeo_ugrid(1rheolef) | rheolef-7.0 | mkgeo_ugrid(1rheolef) |
mkgeo_ugrid -- build an unstructured mesh of a parallelotope, in 1d, 2d or 3d
mkgeo_ugrid options [n]
The following command build a triangle based 2d unstructured mesh of the unit square:
or in one command line:
mkgeo_ugrid -t 10 > square-10.geo
geo -mayavi square-10.geo
mkgeo_ugrid -t 10 | geo -mayavi -
This command is useful when testing programs on simple geometries. Invocation is similar to mkgeo_grid (see mkgeo_grid(1)). It calls gmsh as unstructured mesh generator. It avoid the preparation of an input file for a mesh generator. The optional n argument is an integer that specifies the subdivision in each direction. By default n=10. The mesh files goes on standard output.
The command supports all the possible element types: edges, triangles, rectangles, tetraedra, prisms and hexahedra. It supports also mixed 2D with triangles and quadrangles:
and mixed 3D with tetraedra, prisms and/or hjexaedra:
mkgeo_ugrid -tq 10 | geo -mayavi -
mkgeo_ugrid -TP 10 | geo -mayavi -
mkgeo_ugrid -PH 10 | geo -mayavi -
mkgeo_ugrid -TPH 10 | geo -mayavi -
The geometry can be any [a,b] segment, [a,b]x[c,d] rectangle or [a,b]x[c,d]x[f,g] parallelotope. By default a=c=f=0 and b=d=g=1, thus, the unit boxes are considered. For instance, the following command meshes the [-2,2]x[-1.5, 1.5] rectangle:
mkgeo_ugrid -t 10 -a -2 -b 2 -c -1.5 -d 1.5 | geo -
mkgeo_ugrid -t 10 > square.geo
geo square.geo
mkgeo_ugrid -t 10 -nosides > square.geo
geo square.geo
mkgeo_ugrid -t 10 -noboundary > square.geo
geo square.geo
mkgeo_ugrid -t 10 -noboundary -nosides > square.geo
geo square.geo
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.
rheolef-7.0 | rheolef-7.0 |