centroid

Module Contents

This module contains functions with different methods of calculating centroids.

centroid.averageVertices(nodeCoords)

Estimates the centroid of nodeCoords by simply averaging the coordinates.

Parameters:

nodeCoords (list) – A list of lists containing the nodal coordinates to be averaged.

Returns:

A numpy array containing the coordinates of the element centroid.

Return type:

numpy.ndarray