Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
jive::geom::StdTriangle Class Reference

#include <jive/geom/StdTriangle.h>

Inheritance diagram for jive::geom::StdTriangle:
Inheritance graph

Public Types

typedef StdTriangle Self
 
typedef StdShape Super
 
- Public Types inherited from jive::geom::StdShape
typedef jem::String String
 A string type. More...
 
typedef util::Vector Vector
 A vector type. More...
 
typedef util::Matrix Matrix
 A matrix type. More...
 
typedef util::Cubix Cubix
 A three-dimensional array of doubles. More...
 

Public Member Functions

virtual idx_t rank () const
 Returns the rank of this shape. More...
 
virtual String getGeometry () const
 
virtual idx_t vertexCount () const
 
virtual Matrix getVertexCoords () const
 
virtual bool containsPoint (const Vector &u) const
 Tests whether a point is located within this shape. More...
 
virtual bool clipPoint (const Vector &u) const
 
- Public Member Functions inherited from jive::geom::StdShape
virtual String name () const =0
 Returns the name of this shape. More...
 
virtual int nodeCount () const =0
 Returns the number of nodes attached to this shape. More...
 
virtual Matrix getNodeCoords () const =0
 Returns the local node coordinates. More...
 
virtual void evalShapeFunctions (const Vector &h, const Vector &u) const =0
 Computes the shape functions in a given point. More...
 
virtual void evalShapeFunctions (const Matrix &h, const Matrix &u) const
 Computes the shape functions in multiple points within this shape. More...
 
virtual void evalShapeGradients (const Matrix &g, const Vector &u) const =0
 Computes the gradients of the shape functions in a specific point within this shape. More...
 
virtual void evalShapeGradients (const Cubix &g, const Matrix &u) const
 Computes the gradients of the shape functions in multiple points within this shape. More...
 

Static Public Member Functions

static Matrix vertexCoords ()
 
static Matrix getGaussScheme (idx_t count)
 
static Matrix getUniformScheme (idx_t count)
 
static Matrix getIntegrationScheme (String &ischeme)
 
static Matrix getIntegrationScheme (const Matrix &s1, const Matrix &s2)
 
static idx_t getGaussPointCount (idx_t count)
 
static idx_t getUniformPointCount (idx_t count)
 
- Static Public Member Functions inherited from jive::geom::StdShape
static void registerShape (StdShape *shape)
 Registers a standard shape. More...
 
static StdShapefindShape (const String &name)
 Searches for a standard shape with a given name. More...
 
static void encodeShape (jem::io::DataOutput &out, StdShape *shape)
 Writes a standard shape to a data output stream. More...
 
static StdShapedecodeShape (jem::io::DataInput &in)
 Reads a standard shape from a data input stream. More...
 

Static Public Attributes

static const int RANK = 2
 
static const int VERTEX_COUNT = 3
 
static const char * GEOMETRY
 

Protected Member Functions

virtual ~StdTriangle ()
 
- Protected Member Functions inherited from jive::geom::StdShape
 StdShape ()
 Constructs an empty shape object. More...
 
virtual ~StdShape ()
 Protected destructor to invalidate delete expressions. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

virtual jive::geom::StdTriangle::~StdTriangle ( )
protectedvirtual

Member Function Documentation

virtual idx_t jive::geom::StdTriangle::rank ( ) const
virtual

Returns the rank (number of dimensions) of the local coordinate system of this shape.

Returns
The rank of this shape.

Implements jive::geom::StdShape.

virtual String jive::geom::StdTriangle::getGeometry ( ) const
virtual
virtual idx_t jive::geom::StdTriangle::vertexCount ( ) const
virtual

Reimplemented in jive::geom::StdTriangle6.

static Matrix jive::geom::StdTriangle::vertexCoords ( )
static
virtual Matrix jive::geom::StdTriangle::getVertexCoords ( ) const
virtual

Reimplemented in jive::geom::StdTriangle6.

virtual bool jive::geom::StdTriangle::containsPoint ( const Vector u) const
virtual

Returns true if the point specified by the local coordinate vector u lies within this shape, and false otherwise.

Parameters
u- a local coordinate vector.
Precondition
u.size() == this->rank()
Returns
true if the specified point lies within this shape, and false otherwise.

Implements jive::geom::StdShape.

virtual bool jive::geom::StdTriangle::clipPoint ( const Vector u) const
virtual
static Matrix jive::geom::StdTriangle::getGaussScheme ( idx_t  count)
static
static Matrix jive::geom::StdTriangle::getUniformScheme ( idx_t  count)
static
static Matrix jive::geom::StdTriangle::getIntegrationScheme ( String ischeme)
static
static Matrix jive::geom::StdTriangle::getIntegrationScheme ( const Matrix s1,
const Matrix s2 
)
static
static idx_t jive::geom::StdTriangle::getGaussPointCount ( idx_t  count)
static
static idx_t jive::geom::StdTriangle::getUniformPointCount ( idx_t  count)
static

Member Data Documentation

const int jive::geom::StdTriangle::RANK = 2
static
const int jive::geom::StdTriangle::VERTEX_COUNT = 3
static
const char* jive::geom::StdTriangle::GEOMETRY
static