A module for evaluating some angular integrals encountered in Fourier decomposition of Green's function boundary condition for Poisson and Ampere equations.
More...
|
real(kind=8), parameter | epsrel = 1.D-2 |
| tolerance parameters for the adaptive integrations More...
|
|
real(kind=8), parameter | epsabs = 1.D-2 |
|
real(kind=8), parameter | pi = 4*atan(1.0D0) |
| value for pi used inside the module. More...
|
|
real(kind=8), dimension(:),
allocatable | ksave |
|
A module for evaluating some angular integrals encountered in Fourier decomposition of Green's function boundary condition for Poisson and Ampere equations.
- Author
- Eero Hirvijoki
real(kind=8) function nintegrals_mod::nintegrals_gn |
( |
real(kind=8) |
k, |
|
|
integer |
n |
|
) |
| |
Evaluates the integral \( \int_0^{2\pi}\frac{\cos(nx)}{\sqrt{1-k\cos(x)}}dx \).
- Author
- Eero Hirvijoki
- Parameters
-
[in] | k | A parameter for the integrator |
[in] | n | the Fourier mode |
- Todo:
- Right now only \( -1 < k < 1 \) is can be handled. If k falls outside this range, one most probably encounters a segmentation fault.
real(kind=8) function nintegrals_mod::nintegrals_integrand |
( |
real(kind=8) |
x, |
|
|
real(kind=8), intent(in), optional |
k |
|
) |
| |
real(kind=8) function nintegrals_mod::nintegrals_integrand_noparams |
( |
real(kind=8) |
x | ) |
|
real(kind=8), parameter nintegrals_mod::epsabs = 1.D-2 |
real(kind=8), parameter nintegrals_mod::epsrel = 1.D-2 |
tolerance parameters for the adaptive integrations
real (kind=8), dimension(:), allocatable nintegrals_mod::ksave |
real(kind=8), parameter nintegrals_mod::pi = 4*atan(1.0D0) |
value for pi used inside the module.
The documentation for this module was generated from the following file: