Navigation

Operators and Keywords

Function List:

C++ API

Function File: [varargout] = msh3m_geometrical_properties(mesh,[string1,string2,...])

Compute mesh geometrical properties identified by input strings.

Valid properties are:

  • "bar": return a matrix with size 3 times the number of mesh elements containing the center of mass coordinates.
  • "wjacdet": return the weigthed Jacobian determinant used for the numerical integration with trapezoidal rule over an element.
  • "shg": return a matrix of size 3 times the number of elements matrix containing the gradient of P1 shape functions.
  • "shp": return a matrix containing the the value of P1 shape functions.
  • "area": return a row vector containing the volume of each element.

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

If an unexpected string is given as input, an empty vector is returned in output.

See also: msh2m_topological_properties, msh2m_geometrical_properties.

Package: msh