class TopoEdge2d

Class that represents an edge of an element in the net. More...

Contains pure virtuals
Definition#include <k2dgrflow/topology.h>
InheritsTopoClass [public ]
Inherited byTopoLineEdge2d
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

Class that represents an edge of an element in the net. Abstract, all real edges (line, curve, ... ) inherit from this class

 TopoEdge2d (int nrNodes, bool noBoundary = true)

TopoEdge2d

construction of an abstract edge2d, as attribute the number of nodes on the edge is necessary

 ~TopoEdge2d ()

~TopoEdge2d

[virtual]

no special destruction, memory is left to controller object that manages the mesh

Topology  type ()

type

[virtual]

return the topology

Reimplemented from TopoClass.

TopoNode2d*  node (int index)

node

return node index, no validation if input is ok

TopoElement2d*  neighbour (int index)

neighbour

return neighbour index, no validation if input is ok not so good method, since you don't know how many neighbours there are remark : if inneredge : then 2 neighbours, else one neighbour

vector<TopoElement2d*>::iterator  NeighbourIter ()

NeighbourIter

return an iterator over the vector of all neighbouring elements

void  addNeighbour (TopoElement2d* el)

addNeighbour

add an el as a neighbour

double  length ()

length

[virtual]

return the length of the edge. Allow inheritace of this method

bool  innerEdge ()

innerEdge

[virtual]

an inneredge has a node in the inner part of the domain Beware, the other node can be on the boundary

bool  robinEdge ()

robinEdge

[pure virtual]

type of boundary. is the one of the begin and end nodes If those are on different boundary, then : -> if one Neuman node and one Dir node, then a neuman edge, since if it was dirichlet, both nodes should be dirichlet (priority of dir to neu) -> if one Neuman node and one Robin node, then Robin, since priority of neuman over robin -> if one Robin and one Dir, then Robin, since priority of dirichlet over robin

bool  neuEdge ()

neuEdge

[pure virtual]

bool  dirEdge ()

dirEdge

[pure virtual]

double len

len

[protected]

bool inner

inner

[protected]

vector<TopoNode2d*> nodes

nodes

[protected]

vector<TopoElement2d*> neighbourEle

neighbourEle

[protected]


Generated by: benny@okidoki on Thu Jun 21 10:41:51 2001, using kdoc 2.0a53.