OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

pyramid Class Template Reference

Collaboration diagram for pyramid:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Point, class PointRef, class polygonRef>
class Foam::pyramid< Point, PointRef, polygonRef >

Definition at line 78 of file pyramid.H.


Public Member Functions

 pyramid (polygonRef base, const Point &apex)
 Construct from base polygon and apex point.
 pyramid (Istream &)
 Construct from Istream.
const Point & apex () const
 Return apex point.
polygonRef base () const
 Return base polygon.
Point centre (const pointField &points) const
 Return centre (centroid).
vector height (const pointField &points) const
 Return height vector.
scalar mag (const pointField &points) const
 Return scalar magnitude - returns volume of pyramid.

Friends

Istream & operator>> (Istream &, pyramid &)
Ostream & operator (Ostream &, const pyramid &)

Constructor & Destructor Documentation

pyramid ( polygonRef  base,
const Point &  apex 
) [inline]

Construct from base polygon and apex point.

Definition at line 48 of file pyramidI.H.

References IOstream::check().

Here is the call graph for this function:

pyramid ( Istream &   )  [inline]

Construct from Istream.

Definition at line 59 of file pyramidI.H.


Member Function Documentation

const Point & apex (  )  const [inline]

Return apex point.

Definition at line 69 of file pyramidI.H.

polygonRef base (  )  const [inline]

Return base polygon.

Definition at line 75 of file pyramidI.H.

Point centre ( const pointField &  points  )  const [inline]

Return centre (centroid).

Definition at line 83 of file pyramidI.H.

vector height ( const pointField &  points  )  const [inline]

Return height vector.

Definition at line 93 of file pyramidI.H.

scalar mag ( const pointField &  points  )  const [inline]

Return scalar magnitude - returns volume of pyramid.

Definition at line 104 of file pyramidI.H.

References p.


Friends And Related Function Documentation

Istream& operator>> ( Istream &  ,
pyramid< Point, PointRef, polygonRef > &   
) [friend]

Ostream& operator ( Ostream &  ,
const pyramid< Point, PointRef, polygonRef > &   
) [friend]


The documentation for this class was generated from the following files:
  • src/OpenFOAM/meshes/primitiveShapes/pyramid/pyramid.H
  • src/OpenFOAM/meshes/primitiveShapes/pyramid/pyramidI.H
Copyright © 2000-2007 OpenCFD Ltd