ViennaGrid for Python
 All Classes Files Functions Variables
Functions
cell_centroid.hpp File Reference

Implement calculation of the centroid of a cell. More...

#include <boost/python.hpp>
#include "../points/cartesian.hpp"
#include "../points/cylindrical.hpp"
#include "../points/polar.hpp"
#include "../points/spherical.hpp"
#include "../cells/linear.hpp"
#include "../cells/triangular.hpp"
#include "../cells/quadrilateral.hpp"
#include "../cells/tetrahedral.hpp"

Go to the source code of this file.

Functions

PointCartesian1D LinearCartesian1D_Cell_centroid (LinearCartesian1D_Cell cell)
 Compute the centroid of a linear cartesian 1D cell.
PointCartesian2D LinearCartesian2D_Cell_centroid (LinearCartesian2D_Cell cell)
 Compute the centroid of a linear cartesian 2D cell.
PointCartesian3D LinearCartesian3D_Cell_centroid (LinearCartesian3D_Cell cell)
 Compute the centroid of a linear cartesian 3D cell.
PointCylindrical3D LinearCylindrical3D_Cell_centroid (LinearCylindrical3D_Cell cell)
 Compute the centroid of a linear cylindrical cell.
PointPolar2D LinearPolar2D_Cell_centroid (LinearPolar2D_Cell cell)
 Compute the centroid of a linear polar cell.
PointSpherical3D LinearSpherical3D_Cell_centroid (LinearSpherical3D_Cell cell)
 Compute the centroid of a linear spherical cell.
PointCartesian2D TriangularCartesian2D_Cell_centroid (TriangularCartesian2D_Cell cell)
 Compute the centroid of a triangular cartesian 2D cell.
PointCartesian3D TriangularCartesian3D_Cell_centroid (TriangularCartesian3D_Cell cell)
 Compute the centroid of a triangular cartesian 3D cell.
PointCylindrical3D TriangularCylindrical3D_Cell_centroid (TriangularCylindrical3D_Cell cell)
 Compute the centroid of a triangular cylindrical cell.
PointPolar2D TriangularPolar2D_Cell_centroid (TriangularPolar2D_Cell cell)
 Compute the centroid of a triangular polar cell.
PointSpherical3D TriangularSpherical3D_Cell_centroid (TriangularSpherical3D_Cell cell)
 Compute the centroid of a triangular spherical cell.
PointCartesian2D QuadrilateralCartesian2D_Cell_centroid (QuadrilateralCartesian2D_Cell cell)
 Compute the centroid of a quadrilateral cartesian 2D cell.
PointCartesian3D QuadrilateralCartesian3D_Cell_centroid (QuadrilateralCartesian3D_Cell cell)
 Compute the centroid of a quadrilateral cartesian 3D cell.
PointCylindrical3D QuadrilateralCylindrical3D_Cell_centroid (QuadrilateralCylindrical3D_Cell cell)
 Compute the centroid of a quadrilateral cylindrical cell.
PointPolar2D QuadrilateralPolar2D_Cell_centroid (QuadrilateralPolar2D_Cell cell)
 Compute the centroid of a quadrilateral polar cell.
PointSpherical3D QuadrilateralSpherical3D_Cell_centroid (QuadrilateralSpherical3D_Cell cell)
 Compute the centroid of a quadrilateral spherical cell.
PointCartesian3D TetrahedralCartesian3D_Cell_centroid (TetrahedralCartesian3D_Cell cell)
 Compute the centroid of a tetrahedral cartesian 3D cell.
PointCylindrical3D TetrahedralCylindrical3D_Cell_centroid (TetrahedralCylindrical3D_Cell cell)
 Compute the centroid of a tetrahedral cylindrical cell.
PointSpherical3D TetrahedralSpherical3D_Cell_centroid (TetrahedralSpherical3D_Cell cell)
 Compute the centroid of a tetrahedral spherical cell.

Detailed Description

Implement calculation of the centroid of a cell.

Function Documentation

PointCartesian1D LinearCartesian1D_Cell_centroid ( LinearCartesian1D_Cell  cell)

Compute the centroid of a linear cartesian 1D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian2D LinearCartesian2D_Cell_centroid ( LinearCartesian2D_Cell  cell)

Compute the centroid of a linear cartesian 2D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian3D LinearCartesian3D_Cell_centroid ( LinearCartesian3D_Cell  cell)

Compute the centroid of a linear cartesian 3D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCylindrical3D LinearCylindrical3D_Cell_centroid ( LinearCylindrical3D_Cell  cell)

Compute the centroid of a linear cylindrical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointPolar2D LinearPolar2D_Cell_centroid ( LinearPolar2D_Cell  cell)

Compute the centroid of a linear polar cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointSpherical3D LinearSpherical3D_Cell_centroid ( LinearSpherical3D_Cell  cell)

Compute the centroid of a linear spherical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian2D QuadrilateralCartesian2D_Cell_centroid ( QuadrilateralCartesian2D_Cell  cell)

Compute the centroid of a quadrilateral cartesian 2D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian3D QuadrilateralCartesian3D_Cell_centroid ( QuadrilateralCartesian3D_Cell  cell)

Compute the centroid of a quadrilateral cartesian 3D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCylindrical3D QuadrilateralCylindrical3D_Cell_centroid ( QuadrilateralCylindrical3D_Cell  cell)

Compute the centroid of a quadrilateral cylindrical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointPolar2D QuadrilateralPolar2D_Cell_centroid ( QuadrilateralPolar2D_Cell  cell)

Compute the centroid of a quadrilateral polar cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointSpherical3D QuadrilateralSpherical3D_Cell_centroid ( QuadrilateralSpherical3D_Cell  cell)

Compute the centroid of a quadrilateral spherical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian3D TetrahedralCartesian3D_Cell_centroid ( TetrahedralCartesian3D_Cell  cell)

Compute the centroid of a tetrahedral cartesian 3D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCylindrical3D TetrahedralCylindrical3D_Cell_centroid ( TetrahedralCylindrical3D_Cell  cell)

Compute the centroid of a tetrahedral cylindrical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointSpherical3D TetrahedralSpherical3D_Cell_centroid ( TetrahedralSpherical3D_Cell  cell)

Compute the centroid of a tetrahedral spherical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian2D TriangularCartesian2D_Cell_centroid ( TriangularCartesian2D_Cell  cell)

Compute the centroid of a triangular cartesian 2D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCartesian3D TriangularCartesian3D_Cell_centroid ( TriangularCartesian3D_Cell  cell)

Compute the centroid of a triangular cartesian 3D cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointCylindrical3D TriangularCylindrical3D_Cell_centroid ( TriangularCylindrical3D_Cell  cell)

Compute the centroid of a triangular cylindrical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointPolar2D TriangularPolar2D_Cell_centroid ( TriangularPolar2D_Cell  cell)

Compute the centroid of a triangular polar cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0
PointSpherical3D TriangularSpherical3D_Cell_centroid ( TriangularSpherical3D_Cell  cell)

Compute the centroid of a triangular spherical cell.

Parameters
cellThe cell whose centroid will be computed.
Returns
Point that represents the centroid of the cell.
Since
0.1.0