Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

MassMatrix Class Reference

object for flexible representation of a mass matrix. More...

#include <MassMatrix.h>

Inheritance diagram for MassMatrix::

HandleId List of all members.

Public Methods

 MassMatrix ()
 ~MassMatrix ()
bool isLumped () const
const MatDiag(NUMT)& M () const
MatDiag(NUMT)& M ()
bool make (FEM &simulator, GridFE &grid)
void solve (const Vector(NUMT) &rhs, Vector(NUMT) &x)

Detailed Description

object for flexible representation of a mass matrix.

NAME: MassMatrix - object for flexible representation of a mass matrix

DESCRIPTION:

The class "MassMatrix" is a trivial encapsulation of a "MatDiag" matrix with assembly and solve functionality.


Constructor & Destructor Documentation

MassMatrix::MassMatrix ( )
 

There is only one constructor which takes no arguments.

MassMatrix::~MassMatrix ( ) [inline]
 


Member Function Documentation

MatDiag(NUMT) & MassMatrix::M ( )
 

const MatDiag(NUMT) & MassMatrix::M ( ) const
 

bool MassMatrix::isLumped ( ) const [inline]
 

bool MassMatrix::make ( FEM & simulator,
GridFE & grid )
 

calls "FEM makeMassMatrix" for computing the mass matrix. On repeated calls, "make" does only compute a new matrix if the number of nodes is changed. The return value is true if real computations have taken place (false indicates that the an already computed mass matrix can still be utilized).

void MassMatrix::solve ( const Vector(NUMT) & rhs,
Vector(NUMT) & x )
 

soles the system "M*x=rhs" by trivial Gaussian elimination when "M" is of type "MatDiag".


Friends And Related Function Documentation

class FEM [friend]
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.