0.6.0
Loading...
Searching...
No Matches

This module contains the definition of a polygon and some related subroutines More...

Functions/Subroutines

double precision pure function mod_cg2_axisym_polygon::cg2_axisym_polygon_volume (polygon)
 Compute the area of a polygon.
 
pure subroutine mod_cg2_axisym_polygon::cg2_axisym_polygon_centroid (polygon, centroid, volume)
 Compute the centroid of a polygon.
 

Detailed Description

This module contains the definition of a polygon and some related subroutines

Attention
Modify these functions at your own risk. Many algorithms depend on the specific behaviour of these functions. They are designed to not generate false negative results. Note that false positive results may occur due to the finite representation of real numbers. Take that into consideration when writing new algorithms.

Function/Subroutine Documentation

◆ cg2_axisym_polygon_centroid()

pure subroutine mod_cg2_axisym_polygon::cg2_axisym_polygon_centroid ( type(t_polygon), intent(in) polygon,
double precision, dimension(2), intent(out) centroid,
double precision, intent(out), optional volume )

Compute the centroid of a polygon.

This routine computes the coordinates of the centroid and the volume of a polygon in axisymmetric configuration.

Parameters
[in]polygonAny polygon
[out]centroidCentroid of the polygon
[out]volumeVolume of the polygon

◆ cg2_axisym_polygon_volume()

double precision pure function mod_cg2_axisym_polygon::cg2_axisym_polygon_volume ( type(t_polygon), intent(in) polygon)

Compute the area of a polygon.

Parameters
[in]polygonAny polygon