Chord with integration functions. Calculates and maintains Gauss-Jacobi rules cache. Allows to perform a variety of line and path integrals along this chord. More...
#include <integrablechord.h>
Public Member Functions | |
| integrablechord (const conftrans &CT, const chord &ch, int nrule, double p=1.0) | |
| Constructs an integrable chord. | |
| integrablechord (const integrablechord &other) | |
| Initializes a copy of the given integrable chord. | |
| int | getNrule () const |
| Returns the order of integration rule used by this chord. | |
| dcmplx & | dzi (int i) const |
| Integration weight for integration along this edge. | |
| dcmplx & | ja (int i) const |
| Integration abscissa (on the unit disk) for integration along this edge. | |
| dcmplx & | t (int i) const |
| Integration abscissa (in the real space) for integration along this edge. | |
| dcmplx & | tp (int i) const |
| Derivative of the conformal mapping at the Gauss point. | |
| double | rintegrate (const areaintegrand &integrand) const |
| Calculates the real part of the complex contour integral along this edge segment. | |
| double | rintegrate (const siderealintegrand &integrand) const |
| Calculate the real path integral along this edge segment. | |
| double | rintegrate (const integrablechord &another, const fsintegrand &integrand, const conftrans &CT) const |
| Calculate the real part of the double contour-path integral along this and another edge segment. | |
| double | rintegrate2 (const integrablechord &another, const fsintegrand &integrand, const conftrans &CT) const |
| Calculate the real part of the double contour integral along this and another edge segment. | |
| void | freeCache () |
| Free cache of non-singular weights and abscissas. | |
| integrablechord & | shiftS (double amt, const conftrans &CT) |
| integrablechord & | shiftF (double amt, const conftrans &CT) |
| virtual int | getStorage () |
| Returns the amount of RAM, occupied by this object. | |
Chord with integration functions. Calculates and maintains Gauss-Jacobi rules cache. Allows to perform a variety of line and path integrals along this chord.
| integrablechord::integrablechord | ( | const conftrans & | CT, | |
| const chord & | ch, | |||
| int | nrule, | |||
| double | p = 1.0 | |||
| ) |
Constructs an integrable chord.
The unit disk is mapped to the physical plane by the specified conformal mapping. This object maintains a set of weights and abscissas for calculating directed line integral along it.
New integrable chord consists of
fraction of the original chord, counted from the beginning (if
) or from the end (if
).
| CT | conformal transform to use. | |
| ch | is the chord, defining the endpoints. | |
| nrule | order of integration rule to be used. | |
| p | part specification |
| integrablechord::integrablechord | ( | const integrablechord & | other | ) |
Initializes a copy of the given integrable chord.
| other | the chord to copy |
| dcmplx& integrablechord::dzi | ( | int | i | ) | const [inline] |
Integration weight for integration along this edge.
| i | number of the Gauss-Jacobi point in the rule (0 <=i < getNRule()) |
Referenced by rintegrate(), and rintegrate2().
| void integrablechord::freeCache | ( | ) |
Free cache of non-singular weights and abscissas.
For performance reasons this class caches the last used Gauss-Jacobi weights and abscissas in a non-singular case (which is the most common). This call frees the respective cache.
The cache is implemented as a static variable and its creation/destruction is not thread safe !
| int integrablechord::getNrule | ( | ) | const [inline] |
Returns the order of integration rule used by this chord.
Referenced by edge::breakInHalves().
| int integrablechord::getStorage | ( | ) | [virtual] |
| dcmplx& integrablechord::ja | ( | int | i | ) | const [inline] |
Integration abscissa (on the unit disk) for integration along this edge.
| i | number of the Gauss-Jacobi point in the rule (0 <=i < getNRule()) |
Referenced by rintegrate().
| double integrablechord::rintegrate | ( | const integrablechord & | another, | |
| const fsintegrand & | integrand, | |||
| const conftrans & | CT | |||
| ) | const [inline] |
Calculate the real part of the double contour-path integral along this and another edge segment.
That is
In case the other edge coincides with this one, the function
may be non-smooth at
(two separate integrals will be evaluated in this case).
| another | is the other edge, participating in double integration. | |
| integrand | is the integrand to integrate. | |
| CT | conformal transform to be used |
References dzi().
| double integrablechord::rintegrate | ( | const siderealintegrand & | integrand | ) | const |
Calculate the real path integral along this edge segment.
That is
Function
must be smooth and have no singularities.
| integrand | is the integrand to integrate. |
References dzi(), siderealintegrand::eval(), ja(), t(), and tp().
| double integrablechord::rintegrate | ( | const areaintegrand & | integrand | ) | const |
Calculates the real part of the complex contour integral along this edge segment.
That is
Function
must be smooth and have no singularities.
| integrand | is the integrand to integrate. |
References dzi(), areaintegrand::eval(), ja(), t(), and tp().
| double integrablechord::rintegrate2 | ( | const integrablechord & | another, | |
| const fsintegrand & | integrand, | |||
| const conftrans & | CT | |||
| ) | const [inline] |
Calculate the real part of the double contour integral along this and another edge segment.
That is
In case the other edge coincides with this one, the function
may be non-smooth at
(two separate integrals will be evaluated in this case).
| another | is the other edge, participating in double integration. | |
| integrand | is the integrand to integrate. | |
| CT | conformal transform to be used |
References dzi().
| dcmplx& integrablechord::t | ( | int | i | ) | const [inline] |
Integration abscissa (in the real space) for integration along this edge.
| i | number of the Gauss-Jacobi point in the rule (0 <=i < getNRule()) |
Referenced by rintegrate().
| dcmplx& integrablechord::tp | ( | int | i | ) | const [inline] |
Derivative of the conformal mapping at the Gauss point.
| i | number of the Gauss-Jacobi point in the rule (0 <=i < getNRule()) |
Referenced by rintegrate().
1.6.3