Description Usage Arguments Value Note
Reads the mesh file generated by Gmsh (only format version 2 supported).
1 | read_msh(fname)
|
fname |
|
A list
with the following elements:
Number of mesh elements (triangles)
Number of mesh points
A nelem x 3
integer matrix of point indices (referring to x
and y
) defining the mesh elements
An integer vector of length npoin
defining the mesh boundaries (inner boundaries are zero, outer boundaries numbered)
A vector of length npoin
giving the x coordinates of the mesh points
A vector of length npoin
giving the y coordinates of the mesh points
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.