geopyv.geometry.utilities¶
Module Contents¶
Functions¶
|
A function that returns the area of the input polygon. |
|
Function that returns a characteristic length given an element area, based on an equilateral triangle. |
|
Method to compute a first order triangulation from a second order element connectivity array and coordinates. |
- geopyv.geometry.utilities.PolyArea(pts)¶
A function that returns the area of the input polygon.
- Parameters:
pts (numpy.ndarray (Nx,2)) – Clockwise/anti-clockwise ordered coordinates.
- geopyv.geometry.utilities.area_to_length(area)¶
Function that returns a characteristic length given an element area, based on an equilateral triangle.
- Parameters:
area (float) – Element area.
- Returns:
length – Characteristic length.
- Return type:
float
- geopyv.geometry.utilities.plot_triangulation(elements, x, y)¶
Method to compute a first order triangulation from a second order element connectivity array and coordinates.
- Parameters:
elements (np.ndarray (Nx, 6)) – Element connectivity array.
x (np.ndarray (Nx, 1)) – Horizontal coordinate array.
y (np.ndarray (Nx, 1)) – Vertical coordinate array.
- Returns:
mesh_triangulation (np.ndarray (Nx, 7)) – Mesh triangulation array for plot purposes forming closed triangles.
x_p (np.ndarray (Nx, 1)) – Horizontal coordinate of triangle vertices.
y_p (np.ndarray (Nx, 1)) – Vertical coordinate of triangle vertices.