edge Class Reference

The edge segment. More...

#include <edge.h>

Inheritance diagram for edge:
integrablechord chord

List of all members.

Public Member Functions

 edge (conftrans CT, const chord &ch, int nrule, int nposElem, int nnegElem)
 Constructs a straight edge, running between two points of the unit disk.
 edge (const edge &other)
 Initializes a copy of the given edge.
bool isBordering (int nElem) const
 Checks if the given element borders this edge.
bool isOuterBoundary () const
 Checks is this edge belongs to the outer boundary of the particle.
int getPosBordering ()
 Returns the number of the element "positively" bordering this edge.
int getNegBordering ()
 Returns the number of the element "negatively" bordering this edge.
void replaceBordering (int noldElem, int nnewElem)
 Replaces the bordering element by another one.
void setPosBordering (int nElem)
 Sets the "positive" bordering element to another one.
void setPosBordering (int nnewElem, int nelem, std::vector< edge > &Edges)
 Sets the "positive" bordering element to another one across the whole chain.
void setNegBordering (int nElem)
 Sets the "negative" bordering element to another one.
void setNegBordering (int nnewElem, int nelem, std::vector< edge > &Edges)
 Sets the "negative" bordering element to another one across the whole chain.
void replaceBordering (int noldElem, int nnewElem, std::vector< edge > &Edges)
 Replaces the bordering element by another one across the whole chain.
int getNextInChain () const
 Gives the number of the next edge in chain.
int breakInHalves (conftrans CT, int nelem, std::vector< edge > &Edges)
 Divide the current edge in halves.
double getLength (int nelem, const std::vector< edge > &Edges) const
 Calculates the edge length.
virtual int getStorage ()
 Returns the amount of RAM, occupied by this object.

Detailed Description

The edge segment.

Author:
Konstantin L. Metlov <metlov@kinetic.ac.donetsk.ua>

Constructor & Destructor Documentation

edge::edge ( conftrans  CT,
const chord &  ch,
int  nrule,
int  nposElem,
int  nnegElem 
)

Constructs a straight edge, running between two points of the unit disk.

The unit disk is mapped to the physical plane by the specified conformal mapping. The edge maintains a set of weights and abscissas for calculating directed line integral along it.

Parameters:
CT conformal transform to use.
ch is the chord, defining the extent of this edge.
nrule order of integration rule along the edge.
nposElem number of neighbouring element positively walked along the edge.
nnegElem number of neighbouring element negatively walked along the edge.

Referenced by breakInHalves().

edge::edge ( const edge &  other  ) 

Initializes a copy of the given edge.

Parameters:
other the edge to copy

Member Function Documentation

int edge::breakInHalves ( conftrans  CT,
int  nelem,
std::vector< edge > &  Edges 
)

Divide the current edge in halves.

Divides this edge in halves, shortening the original one (preserving its start), creating a new one, and putting it into the supplied "edges" array. Index of the new edge in the array is returned.

Parameters:
CT conformal transform to use when calculating weights of GJ rule.
nelem is the number of element, whose edge is divided.
Edges a vector to append the new edge to.
Returns:
number of the new edge in the vector.

References edge(), integrablechord::getNrule(), chord::getVHLength(), and chord::shiftedS().

double edge::getLength ( int  nelem,
const std::vector< edge > &  Edges 
) const

Calculates the edge length.

Returns:
edge length.

References chord::getRS(), chord::getVHLength(), and chord::isHorizontal().

int edge::getNegBordering (  )  [inline]

Returns the number of the element "negatively" bordering this edge.

Returns:
negatively bordering element.

Referenced by nanomagn::mesh::printMesh().

int edge::getNextInChain (  )  const [inline]

Gives the number of the next edge in chain.

Returns:
edge number or 0 if this edge is the last in chain.

Referenced by nanomagn::mesh::printMesh().

int edge::getPosBordering (  )  [inline]

Returns the number of the element "positively" bordering this edge.

Returns:
positively bordering element.

Referenced by nanomagn::mesh::printMesh().

int edge::getStorage (  )  [virtual]

Returns the amount of RAM, occupied by this object.

Returns:
amount of RAM in bytes.

Reimplemented from integrablechord.

bool edge::isBordering ( int  nElem  )  const [inline]

Checks if the given element borders this edge.

Parameters:
nElem element number.
Returns:
"true" if the edge borders the element

Referenced by replaceBordering(), setNegBordering(), and setPosBordering().

bool edge::isOuterBoundary (  )  const [inline]

Checks is this edge belongs to the outer boundary of the particle.

Returns:
true if this edge is lying at the particle's boundary.

References chord::getRF(), and chord::getRS().

void edge::replaceBordering ( int  noldElem,
int  nnewElem,
std::vector< edge > &  Edges 
)

Replaces the bordering element by another one across the whole chain.

Parameters:
noldElem former bordering element
nnewElem new bordering element
Edges a vector to look up chain segments in.

References isBordering(), and replaceBordering().

void edge::replaceBordering ( int  noldElem,
int  nnewElem 
) [inline]

Replaces the bordering element by another one.

Parameters:
noldElem former bordering element
nnewElem new bordering element

References setNegBordering(), and setPosBordering().

Referenced by replaceBordering().

void edge::setNegBordering ( int  nnewElem,
int  nelem,
std::vector< edge > &  Edges 
)

Sets the "negative" bordering element to another one across the whole chain.

Parameters:
nnewElem new bordering element
nelem element, defining the chain.
Edges a vector to look up chain segments in.

References isBordering(), and setNegBordering().

void edge::setNegBordering ( int  nElem  )  [inline]

Sets the "negative" bordering element to another one.

Parameters:
nElem new bordering element

Referenced by replaceBordering(), and setNegBordering().

void edge::setPosBordering ( int  nnewElem,
int  nelem,
std::vector< edge > &  Edges 
)

Sets the "positive" bordering element to another one across the whole chain.

Parameters:
nnewElem new bordering element
nelem element, defining the chain.
Edges a vector to look up chain segments in.

References isBordering(), and setPosBordering().

void edge::setPosBordering ( int  nElem  )  [inline]

Sets the "positive" bordering element to another one.

Parameters:
nElem new bordering element

Referenced by replaceBordering(), and setPosBordering().


The documentation for this class was generated from the following files:
Generated on Mon Oct 8 18:26:45 2012 for nanomagnFMM by  doxygen 1.6.3