integrablechord Class Reference

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>

Inheritance diagram for integrablechord:
chord edge

List of all members.

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.

Detailed Description

Chord with integration functions. Calculates and maintains Gauss-Jacobi rules cache. Allows to perform a variety of line and path integrals along this chord.

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

Constructor & Destructor Documentation

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 $ |p| $ fraction of the original chord, counted from the beginning (if $ p>0 $) or from the end (if $ p<0 $).

Parameters:
CT conformal transform to use.
ch is the chord, defining the endpoints.
nrule order of integration rule to be used.
p part specification $ -1 \leq p \leq 1 $
integrablechord::integrablechord ( const integrablechord &  other  ) 

Initializes a copy of the given integrable chord.

Parameters:
other the chord to copy

Member Function Documentation

dcmplx& integrablechord::dzi ( int  i  )  const [inline]

Integration weight for integration along this edge.

Parameters:
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.

Returns:
The order of integration rule.

Referenced by edge::breakInHalves().

int integrablechord::getStorage (  )  [virtual]

Returns the amount of RAM, occupied by this object.

Returns:
amount of RAM in bytes.

Reimplemented from chord.

Reimplemented in edge.

dcmplx& integrablechord::ja ( int  i  )  const [inline]

Integration abscissa (on the unit disk) for integration along this edge.

Parameters:
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

\[ \Re \int_{C_1} \int_{C_2} f(z_1,z_2) |{\mathrm d} z_1| {\mathrm d} z_2 \]

In case the other edge coincides with this one, the function $ f(z1,z2) $ may be non-smooth at $ z_1 = z_2 $ (two separate integrals will be evaluated in this case).

Parameters:
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

\[ \int_{C} f(z) |{\mathrm d} z| \]

Function $ f(z) $ must be smooth and have no singularities.

Parameters:
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

\[ \Re \int_{C} f(z) {\mathrm d} z \]

Function $ f(z) $ must be smooth and have no singularities.

Parameters:
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

\[ \Re \int_{C_1} \int_{C_2} f(z_1,z_2) {\mathrm d} z_1 {\mathrm d} z_2 \]

In case the other edge coincides with this one, the function $ f(z1,z2) $ may be non-smooth at $ z_1 = z_2 $ (two separate integrals will be evaluated in this case).

Parameters:
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.

Parameters:
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.

Parameters:
i number of the Gauss-Jacobi point in the rule (0 <=i < getNRule())

Referenced by rintegrate().


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