|
|
Class that represents an element of the net. Abstract, all real elements, eg triangle, polygon, ... inherit from this class
TopoElement2d (int nrNodes, int nrEdges)
| TopoElement2d |
Construct a general element by telling how many nodes and edges it has
~TopoElement2d ()
| ~TopoElement2d |
[virtual]
the element does not free space when destructed. An element will always be part of an net. The net frees the space on destruction
Topology type ()
| type |
[virtual]
return the type if asked for, inherited from baseclass, performance issue : no bytes stored
Reimplemented from TopoClass.
double surface ()
| surface |
[pure virtual]
an element has a surface
bool freshLocMat ()
| freshLocMat |
is the local matrix of the element already calculated or not. Execute this function befor accessing the local matrix
void setFresh (bool fr)
| setFresh |
setting the fresh variable : is the local matrix up to date or not ?
void setLocMat (uint localnodeI, uint localnodeJ, double value)
| setLocMat |
[pure virtual]
setting a value I J of the local matrix
double locMat (uint localnodeI, uint localnodeJ)
| locMat |
[pure virtual]
return value I J of the local matrix
void setLocForce (uint localnodeJ, double value)
| setLocForce |
[pure virtual]
setting a value J of the force vector
double locForce ( uint localnodeJ)
| locForce |
[pure virtual]
return value J of the force vector
TopoNode2d* node (int index)
| node |
return pointer to node index
TopoNode2d* node (unsigned int index)
| node |
return pointer to node index
TopoEdge2d* edge (int index)
| edge |
return pointer to edge index
TopoElement2d* neighbour (int index)
| neighbour |
return pointer to neighbour index - no good method, you don't know how many neighbours there are better to give an iterator to the users
vector<TopoElement2d*>::iterator NeighbourIter ()
| NeighbourIter |
return an iterator over the vector of all neighbouring elements
void addNeighbour (TopoElement2d* el)
| addNeighbour |
add an element as neighbour of this element, el is added to the list of neighbours
double localBasisFunc (int nodeI, double coor1, double coor2)
| localBasisFunc |
[pure virtual]
return the value of basisfunction associated to local node I in point (coor1, coor2)
double localBasisFuncD1 (int nodeI, double coor1, double coor2)
| localBasisFuncD1 |
[pure virtual]
return the value of basisfunction associated to local node I, derived to first coord, in point (coor1, coor2)
double localBasisFuncD2 (int nodeI, double coor1, double coor2)
| localBasisFuncD2 |
[pure virtual]
return the value of basisfunction associated to local node I, derived to second coord, in point (coor1, coor2)
double surf | surf |
[protected]
vector<TopoEdge2d*> edges | edges |
[protected]
vector<TopoNode2d*> nodes | nodes |
[protected]
vector <TopoElement2d*> neighbourEle | neighbourEle |
[protected]
bool fresh | fresh |
[private]
Generated by: benny@okidoki on Thu Jun 21 10:41:51 2001, using kdoc 2.0a53. |