read_msh: Read Gmsh file

Description Usage Arguments Value Note

View source: R/gmsh.R

Description

Reads the mesh file generated by Gmsh (only format version 2 supported).

Usage

1
read_msh(fname)

Arguments

fname

character, name of a Gmsh file.

Value

A list with the following elements:

nelem

Number of mesh elements (triangles)

npoin

Number of mesh points

ikle

A nelem x 3 integer matrix of point indices (referring to x and y) defining the mesh elements

ipobo

An integer vector of length npoin defining the mesh boundaries (inner boundaries are zero, outer boundaries numbered)

x

A vector of length npoin giving the x coordinates of the mesh points

y

A vector of length npoin giving the y coordinates of the mesh points

Note

So far only mesh file format version 2 is supported. Besides, only elements 'line' (considered as boundary) and 'triangle' (treated as actual mesh elements) can be handled.


tpilz/telemac documentation built on Feb. 10, 2022, 2:12 p.m.