.TH "mkgeo_grid" 1rheolef "Version 7.2" "rheolef" \" -*- nroff -*- .ad l .nh .SH NAME mkgeo_grid \- structured mesh of a parallelepiped (rheolef-7\&.2) .PP .SH "SYNOPSIS" .PP .nf mkgeo_grid [options] [nx [ny [nz]]] .fi .PP .SH "EXAMPLES" The following command build a triangular based 2d 10x10 grid of the unit square: .PP .nf mkgeo_grid -t 10 > square-10\&.geo geo square-10\&.geo .fi .PP or in one command line: .PP .nf mkgeo_grid -t 10 | geo - .fi .PP .SH "DESCRIPTION" This command is useful when testing programs on simple geometries\&. It avoid the preparation of an input file for a mesh generator\&. The optional nx, ny and nz arguments are integer that specifies the subdivision in each direction\&. By default nx=10, ny=nx and nz=ny\&. The mesh files goes on standard output\&. .PP The command supports all the possible element types: edges, triangles, rectangles, tetrahedra, prisms and hexahedra\&. .SH "ELEMENT TYPE OPTION" \fC-e\fP .PP .RS 4 1d mesh using edges\&. .RE .PP \fC-t\fP .PP .RS 4 2d mesh using triangles\&. .RE .PP \fC-q\fP .PP .RS 4 2d mesh using quadrangles (rectangles)\&. .RE .PP \fC-T\fP .PP .RS 4 3d mesh using tetrahedra\&. .RE .PP \fC-P\fP .PP .RS 4 3d mesh using prisms\&. .RE .PP \fC-H\fP .PP .RS 4 3d mesh using hexahedra\&. .RE .PP .SH "THE GEOMETRY" \fC-a\fP \fIfloat\fP .br \fC-b\fP \fIfloat\fP .br \fC-c\fP \fIfloat\fP .br \fC-d\fP \fIfloat\fP .br \fC-f\fP \fIfloat\fP .br \fC-g\fP \fIfloat\fP .PP .RS 4 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, thus, the unit boxes are considered\&. .RE .PP For instance, the following command meshes the [-2,2]x[-1\&.5, 1\&.5] rectangle: .PP .nf mkgeo_grid -t 10 -a -2 -b 2 -c -1\&.5 -d 1\&.5 | geo - .fi .PP .SH "BOUNDARY DOMAINS" \fC-[no]sides\fP .PP .RS 4 The boundary sides are represented by domains: \fCleft\fP, \fCright\fP, \fCtop\fP, \fCbottom\fP, \fCfront\fP and \fCback\fP\&. .RE .PP \fC-[no]boundary\fP .PP .RS 4 This option defines a domain named \fCboundary\fP that groups all sides\&. .RE .PP By default, both sides and the whole boundary are defined as domains: .PP .nf mkgeo_grid -t 10 -nosides | geo - mkgeo_grid -t 10 -noboundary | geo - mkgeo_grid -t 10 -noboundary -nosides | geo - .fi .PP .SH "REGIONS" \fC-[no]region\fP .PP .RS 4 The whole domain is split into two subdomains: \fCeast\fP and \fCwest\fP\&. Also, the separating domain is named \fCinterface\fP in the mesh\&. This option is used for testing computations with subdomains (e\&.g\&. transmission problem; see \fBusersguide\fP )\&. .RE .PP Example: .PP .nf mkgeo_grid -t 10 -region | geo - .fi .PP .SH "CORNERS" \fC-[no]corner\fP .PP .RS 4 The corners (four in 2D and eight in 3D) are defined as OD-domains\&. This could be useful for some special boundary conditions\&. .RE .PP Example: .PP .nf mkgeo_grid -t 10 -corner | geo - mkgeo_grid -T 5 -corner | geo - .fi .PP .SH "COORDINATE SYSTEM OPTIONS" .PP \fC-cartesian\fP .br \fC-rz\fP .br \fC-zr\fP .PP .RS 4 Specifies the coordinate system\&. The default is \fCcartesian\fP while \fC-rz\fP and \fC-zr\fP denotes some axisymmetric coordinate systems\&. Recall that most of Rheolef codes are coordinate-system independent and the coordinate system is specified in the geometry file \fC\&.geo\fP\&. .RE .PP .SH "IMPLEMENTATION" This documentation has been generated from file main/sbin/mkgeo_grid\&.sh .SH AUTHOR Pierre Saramito .SH COPYRIGHT Copyright (C) 2000-2018 Pierre Saramito GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.