Diffpack Documentation


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

DiracDelta Class Reference

array of Dirac delta functions for finite element methods. More...

#include <DiracDelta.h>

List of all members.

Public Methods

 DiracDelta ()
 ~DiracDelta ()
void scan (MenuSystem &menu, GridFE &grid, const int delta_number=1)
void init (GridFE &grid)
int getElm (int i) const
Ptv(real) getLocalPt (int i) const
Ptv(real) getGlobalPt (int i) const
real getMagnitude (int i) const
int getNoEntries () const
void getGlobalPts (VecSimple(Ptv(real)) &pts)
void setPoint (int i, const Ptv(real) &new_point, GridFE &grid)
bool deltaInElm (int e) const
void add2ElmMatVec (ElmMatVec &elmat, FiniteElement &fe)
void turnON ()
void turnOFF ()
bool turnedON ()
void print (Os os) const
bool ok () const

Static Public Methods

void defineStatic (MenuSystem &menu, int level=MAIN, const int delta_number=1)

Protected Attributes

VecSimplest(SingleDiracDeltadelta_array
bool active


Detailed Description

array of Dirac delta functions for finite element methods.

NAME: DiracDelta - array of Dirac delta functions for finite element methods

DESCRIPTION:

Class "DiracDelta" contains a user specified collection of Dirac delta functions for use in finite element programming. (The class contains an array of "SingleDiracDelta" function objects and functionality for the delta function is placed in "SingleDiracDelta".)


Constructor & Destructor Documentation

DiracDelta::DiracDelta ( ) [inline]
 

The constructor takes no arguments. Initialization is performed by the "scan" function.

DiracDelta::~DiracDelta ( ) [inline]
 


Member Function Documentation

void DiracDelta::add2ElmMatVec ( ElmMatVec & elmat,
FiniteElement & fe )
 

modifies the right hand side of an "ElmMatVec" object according to the action of a series of delta functions.

void DiracDelta::defineStatic ( MenuSystem & menu,
int level = MAIN,
const int delta_number = 1 ) [static]
 

bool DiracDelta::deltaInElm ( int e ) const
 

int DiracDelta::getElm ( int i ) const [inline]
 

returns the element number where delta function number "i" acts.

Ptv(real) DiracDelta::getGlobalPt ( int i ) const [inline]
 

returns the global (physical) coordinates of the point where delta function number i" acts.

void DiracDelta::getGlobalPts ( VecSimple(Ptv(real)) & pts )
 

Ptv(real) DiracDelta::getLocalPt ( int i ) const [inline]
 

returns the local element coordinates of the point where delta function number "i" acts.

real DiracDelta::getMagnitude ( int i ) const [inline]
 

returns the magnitude of delta function number "i". Notice that the standard delta function is multiplied by this magnitude, and this product represents the delta function in class "DiracDelta".

int DiracDelta::getNoEntries ( ) const [inline]
 

returns the number of delta functions handled by this class object.

void DiracDelta::init ( GridFE & grid )
 

bool DiracDelta::ok ( ) const
 

void DiracDelta::print ( Os os ) const
 

dumps the contents of the delta functions.

void DiracDelta::scan ( MenuSystem & menu,
GridFE & grid,
const int delta_number = 1 )
 

void DiracDelta::setPoint ( int i,
const Ptv(real) & new_point,
GridFE & grid )
 

void DiracDelta::turnOFF ( ) [inline]
 

void DiracDelta::turnON ( ) [inline]
 

bool DiracDelta::turnedON ( ) [inline]
 


Member Data Documentation

bool DiracDelta::active [protected]
 

VecSimplest(SingleDiracDelta) DiracDelta::delta_array [protected]
 


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