The edge segment. More...
#include <edge.h>
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. | |
The edge segment.
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.
| 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.
| other | the edge to copy |
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.
| 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. |
References edge(), integrablechord::getNrule(), chord::getVHLength(), and chord::shiftedS().
| double edge::getLength | ( | int | nelem, | |
| const std::vector< edge > & | Edges | |||
| ) | const |
Calculates the edge length.
References chord::getRS(), chord::getVHLength(), and chord::isHorizontal().
| int edge::getNegBordering | ( | ) | [inline] |
Returns the number of the element "negatively" bordering this edge.
Referenced by nanomagn::mesh::printMesh().
| int edge::getNextInChain | ( | ) | const [inline] |
Gives the number of the next edge in chain.
Referenced by nanomagn::mesh::printMesh().
| int edge::getPosBordering | ( | ) | [inline] |
Returns the number of the element "positively" bordering this edge.
Referenced by nanomagn::mesh::printMesh().
| int edge::getStorage | ( | ) | [virtual] |
Returns the amount of RAM, occupied by this object.
Reimplemented from integrablechord.
| bool edge::isBordering | ( | int | nElem | ) | const [inline] |
Checks if the given element borders this edge.
| nElem | element number. |
Referenced by replaceBordering(), setNegBordering(), and setPosBordering().
| bool edge::isOuterBoundary | ( | ) | const [inline] |
Checks is this edge belongs to the outer boundary of the particle.
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.
| 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.
| 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.
| 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.
| 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.
| 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.
| nElem | new bordering element |
Referenced by replaceBordering(), and setPosBordering().
1.6.3