Geometry sources

The source of a geometry says how it is defined. The form of a geometry node shows the fields below; the key is the one of the source object of the geometry in the model file.

Source

Description

Meshers

box

box

structured, getfem, gmsh, netgen

csg

constructive geometry (csg)

getfem, gmsh, netgen

cad

CAD file (STEP, IGES, BREP)

gmsh, netgen

mesh_file

mesh file (.msh)

import

curve

curve (2D or 3D)

getfem

surface

surface in 3D (flat domain + height)

getfem, gmsh, netgen

swept_surface

surface in 3D swept by a curve

getfem

boundary

boundary of a 3D geometry

those of its solid

box

Meshers: structured, getfem, gmsh, netgen.

Field

Key

Value

Name

geometries.0.name

name

Dimension

size

one of 1 (1D), 2 (2D), 3 (3D)

Origin

origin

numbers or expressions of parameters, one per coordinate, or a vector parameter

Size

size

numbers or expressions of parameters, one per coordinate, or a vector parameter

Built-in selections: all, boundary, xmin, xmax, ymin, ymax.

csg: constructive geometry (csg)

Meshers: getfem, gmsh, netgen.

Field

Key

Value

Name

geometries.0.name

name

Dimension

dim

one of 2 (2D), 3 (3D)

Built-in selections: all, boundary.

cad: CAD file (STEP, IGES, BREP)

Meshers: gmsh, netgen.

Field

Key

Value

Name

geometries.0.name

name

File

file

file name (relative to the model file)

Built-in selections: all, boundary.

mesh_file: mesh file (.msh)

Meshers: import.

Field

Key

Value

Name

geometries.0.name

name

File

file

file name (relative to the model file)

Built-in selections: all, boundary.

curve: curve (2D or 3D)

Meshers: getfem.

Field

Key

Value

Name

geometries.0.name

name

Dimension of the space

dim

one of 2 (2D), 3 (3D)

The curve is the polygon below, drawn and edited in the view as the polygons of a 2D geometry (vertices, fillets, curved sides, constraints, dimensions), open or closed. The ends of an open curve are the built-in selections start and end.

Built-in selections: all, boundary, start, end.

surface: surface in 3D (flat domain + height)

Meshers: getfem, gmsh, netgen.

Field

Key

Value

Name

geometries.0.name

name

Map

parametric

one of false (a plane and a height), true (parametric (x, y, z of u, v))

Origin

origin

numbers or expressions of parameters, one per coordinate, or a vector parameter

Axis x

axes.0

numbers or expressions of parameters, one per coordinate, or a vector parameter

Axis y

axes.1

numbers or expressions of parameters, one per coordinate, or a vector parameter

Height

height

number or GWFL expression. Height along the normal: a number or an expression of the local coordinates x, y and the parameters (“0.2*sqr(x)”).

The flat domain (2D shape below) is drawn and its selections are defined in the local coordinates (x, y).

Built-in selections: all, boundary.

swept_surface: surface in 3D swept by a curve

Meshers: getfem.

Field

Key

Value

Name

geometries.0.name

name

Sweep

sweep

one of extrusion (extrusion along z (curve in the (x, y) plane)), revolution (revolution about z (curve in the (r, z) plane))

From angle to angle (degrees)

angle

numbers or expressions of parameters, one per coordinate, or a vector parameter

The swept curve is the polygon below, drawn and edited in the view as the polygons of a 2D geometry, open or closed, in the plane (r, z): it must not touch the axis r = 0.

Built-in selections: all, boundary.

boundary: boundary of a 3D geometry

Meshers: those of its solid.

Field

Key

Value

Name

geometries.0.name

name

Of the geometry

geometry

a name

Faces

selection

one of null (all (its whole boundary)). A boundary selection of the geometry: its faces only (an open surface)

A surface: its boundary meshed directly with the parameters of the mesh by the GetFEM mesher; by the other meshers, the 3D geometry meshed, then its faces taken. Its boundary selections are built-in selections (parts) of the surface; the selection ‘boundary’ is the edge of an open surface.

Built-in selections: all, boundary.