MSH2Mgeomprop [MSH]
— Function File: [varargout] = MSH2Mgeomprop(mesh,[string1,string2,...])

Computes geometrical properties of the specified mesh

Input:

  • mesh: standard PDEtool-like mesh, with field "p", "e", "t".
  • string1, string2,...: identifier of the property to compute. Possible choices are listed below.
    • "bar" (center of mass): return a matrix with size 2 times number of elements containing the coordinates of the center of mass of every trg.
    • "cir" (circumcenter): return a matrix with size 2 times number of elements containing the coordinates of the circumcenter of every trg.
    • "emidp" (boundary edges midpoint): return a matrix with size 2 times number of b.edges containing the coordinates of the midpoint.
    • "slength" (length of the sides): return a matrix with size 3 times number of elements containing the length of the sides.
    • "cdist" (distance among circumcenters of neighbouring elements): return a matrix with size 3 times number of elements containing the distance among circumcenters of neighbouring elements. If the corresponding side lies on the edge, the distance between circumcenter and border edge is returned in the matrix.
    • "wjacdet" :
    • "shg": gradient of the P1 shape functions for BIM method
    • "area" (trg area): return a row vector, with length equal to number of elements, containing the area of every trg in the mesh.
    • "midedge" (midpoint coordinates of every edge): return a matrix with size 2(x and y coordinates) times 3(edge number) times n of elements containing the coordinates of the midpoint of every trg edge.

The output will contain the geometrical properties requested in the input in the same order specified in the function call

See also: MSH2Mtopprop