Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jive::geom::InterfaceShape Class Reference

#include <jive/geom/InterfaceShape.h>

Inheritance diagram for jive::geom::InterfaceShape:
Inheritance graph

Public Member Functions

 InterfaceShape ()
 
 InterfaceShape (const Ref< BShape > &bshape)
 
 InterfaceShape (const String &name, const Ref< BShape > &bshape)
 
virtual void readFrom (ObjectInput &in)
 
virtual void writeTo (ObjectOutput &out) const
 
virtual idx_t globalRank () const
 Returns the global rank of this shape. More...
 
virtual idx_t localRank () const
 Returns the local rank of this shape. More...
 
virtual idx_t nodeCount () const
 Returns the number of nodes. More...
 
virtual idx_t vertexCount () const
 
virtual idx_t ipointCount () const
 
virtual idx_t shapeFuncCount () const
 Returns the number of shape functions. More...
 
virtual String getGeometry () const
 
virtual Matrix getVertexCoords () const
 
virtual Matrix getIntegrationScheme () const
 
virtual void getGlobalIntegrationPoints (const Matrix &x, const Matrix &c) const
 
virtual void getIntegrationWeights (const Vector &w, const Matrix &c) const
 
virtual void getGlobalPoint (const Vector &x, const Vector &u, const Matrix &c) const
 
virtual bool getLocalPoint (const Vector &u, const Vector &x, double eps, const Matrix &c) const
 
virtual bool containsLocalPoint (const Vector &u) const
 Tests whether a point lies within this shape. More...
 
virtual Matrix getShapeFunctions () const
 Returns the shape functions evaluated in the integration points. More...
 
virtual Matrix getVertexFunctions () const
 
virtual void evalShapeFunctions (const Vector &h, const Vector &u) const
 Computes the shape functions in a given point. More...
 
void evalNormal (const Vector &q, const Vector &u, const Matrix &c) const
 
void getNormals (const Matrix &q, const Vector &w, const Matrix &c) const
 
void getVertexNormals (const Matrix &q, const Matrix &c) const
 
BShapegetBShape () const
 
void getMidCoords (const Matrix &x, const Matrix &c) const
 
const MatrixgetMidCoords (const Matrix &c) const
 
virtual void * getExtByID (ExtensionID extID) const
 
- Public Member Functions inherited from jive::geom::Shape
virtual int integrationPointCount () const =0
 Returns the number of integration points. More...
 
virtual Matrix getLocalNodeCoords () const =0
 Returns the coordinates of the nodes in the local coordinate system. More...
 
virtual Matrix getIntegrationPoints () const =0
 Returns the integration points in the local coordinate system. More...
 
virtual void getGlobalIntegrationPoints (const Matrix &x, const Matrix &c) const
 Computes the integration points in the global coordinate system. More...
 
virtual void getIntegrationWeights (const Vector &w, const Matrix &c) const =0
 Computes the integration weights in the global coordinate system. More...
 
virtual void getGlobalPoint (const Vector &x, const Vector &u, const Matrix &c) const =0
 Converts a local coordinate vector to a global coordinate vector. More...
 
virtual bool getLocalPoint (const Vector &u, const Vector &x, double eps, const Matrix &c) const
 Converts a global coordinate vector to a local coordinate vector. More...
 
virtual jem::ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
- Public Member Functions inherited from jem::Object
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Protected Member Functions

virtual ~InterfaceShape ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::io::Serializable
virtual ~Serializable ()
 
virtual void emitVtableFunc_ ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Additional Inherited Members

- Public Types inherited from jive::geom::Shape
typedef util::Vector Vector
 A vector type. More...
 
typedef util::Matrix Matrix
 A matrix type. More...
 
- Static Public Member Functions inherited from jive::geom::Shape
static jem::ClassgetType ()
 Returns a pointer to a Class object representing this class. More...
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Constructor & Destructor Documentation

jive::geom::InterfaceShape::InterfaceShape ( )
jive::geom::InterfaceShape::InterfaceShape ( const Ref< BShape > &  bshape)
explicit
jive::geom::InterfaceShape::InterfaceShape ( const String name,
const Ref< BShape > &  bshape 
)
virtual jive::geom::InterfaceShape::~InterfaceShape ( )
protectedvirtual

Member Function Documentation

virtual void jive::geom::InterfaceShape::readFrom ( ObjectInput in)
virtual

Implements jem::io::Serializable.

virtual void jive::geom::InterfaceShape::writeTo ( ObjectOutput out) const
virtual

Implements jem::io::Serializable.

virtual idx_t jive::geom::InterfaceShape::globalRank ( ) const
virtual

Returns the rank (number of dimensions) of the global coordinate system in which this shape `lives'.

Returns
The global rank of this shape.

Implements jive::geom::Shape.

virtual idx_t jive::geom::InterfaceShape::localRank ( ) const
virtual

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

Returns
The local rank of this shape.

Implements jive::geom::Shape.

virtual idx_t jive::geom::InterfaceShape::nodeCount ( ) const
virtual

Returns the number of nodes attached to this shape.

Returns
The number of nodes.

Implements jive::geom::Shape.

virtual idx_t jive::geom::InterfaceShape::vertexCount ( ) const
virtual
virtual idx_t jive::geom::InterfaceShape::ipointCount ( ) const
virtual
virtual idx_t jive::geom::InterfaceShape::shapeFuncCount ( ) const
virtual

Returns the number of shape functions encapsulated by this shape. Note that the number of shape functions and the number of nodes may differ.

Returns
The number of shape functions.

Implements jive::geom::Shape.

virtual String jive::geom::InterfaceShape::getGeometry ( ) const
virtual
virtual Matrix jive::geom::InterfaceShape::getVertexCoords ( ) const
virtual
virtual Matrix jive::geom::InterfaceShape::getIntegrationScheme ( ) const
virtual
virtual void jive::geom::InterfaceShape::getGlobalIntegrationPoints ( const Matrix x,
const Matrix c 
) const
virtual
virtual void jive::geom::InterfaceShape::getIntegrationWeights ( const Vector w,
const Matrix c 
) const
virtual
virtual void jive::geom::InterfaceShape::getGlobalPoint ( const Vector x,
const Vector u,
const Matrix c 
) const
virtual
virtual bool jive::geom::InterfaceShape::getLocalPoint ( const Vector u,
const Vector x,
double  eps,
const Matrix c 
) const
virtual
virtual bool jive::geom::InterfaceShape::containsLocalPoint ( 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->localRank()
Returns
true if the specified point lies within this shape, and false otherwise.

Implements jive::geom::Shape.

virtual Matrix jive::geom::InterfaceShape::getShapeFunctions ( ) const
virtual

Returns a matrix containing the values of the shape functions in the integration points of this shape. If the returned matrix is denoted by h, then h(i,j) equals the value of the i-th shape function in the j-th integration point.

The contents of the returned matrix should not be modified because it may share its data with one of the private members of this shape.

Returns
A matrix containing the values of the shape functions in the integration points.

Implements jive::geom::Shape.

virtual Matrix jive::geom::InterfaceShape::getVertexFunctions ( ) const
virtual
virtual void jive::geom::InterfaceShape::evalShapeFunctions ( const Vector h,
const Vector u 
) const
virtual

Fills the vector h with the values of the shape functions in a specific point within this shape: h[i] is set to the i-th shape function in that point. The vector u should contain the local coordinates of the point: u[i] should be equal to the i-th local coordinate.

Parameters
h- a vector that will be filled with the values of the shape functions in a specific point within this shape.
u- a vector containing the local coordinates of the specified point.
Precondition
h.size() == this->shapeFuncCount() &&
u.size() == this->localRank() && this->containsLocalPoint ( u )

Implements jive::geom::Shape.

void jive::geom::InterfaceShape::evalNormal ( const Vector q,
const Vector u,
const Matrix c 
) const
void jive::geom::InterfaceShape::getNormals ( const Matrix q,
const Vector w,
const Matrix c 
) const
void jive::geom::InterfaceShape::getVertexNormals ( const Matrix q,
const Matrix c 
) const
BShape * jive::geom::InterfaceShape::getBShape ( ) const
void jive::geom::InterfaceShape::getMidCoords ( const Matrix x,
const Matrix c 
) const
const Matrix & jive::geom::InterfaceShape::getMidCoords ( const Matrix c) const
virtual void* jive::geom::InterfaceShape::getExtByID ( ExtensionID  extID) const
virtual