XGC1
|
A module for evaluating some angular integrals encountered in Fourier decomposition of Green's function boundary condition for Poisson and Ampere equations. More...
Functions/Subroutines | |
real(kind=8) function | nintegrals_gn (k, n) |
Evaluates the integral \( \int_0^{2\pi}\frac{\cos(nx)}{\sqrt{1-k\cos(x)}}dx \). More... | |
real(kind=8) function | nintegrals_integrand (x, k) |
real(kind=8) function | nintegrals_integrand_noparams (x) |
Variables | |
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.
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 \).
[in] | k | A parameter for the integrator |
[in] | n | the Fourier mode |
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.