XGCa
nintegrals_mod Module Reference

A module for evaluating some angular integrals encountered in Fourier decomposition of Green's function boundary condition for Poisson and Ampere equations. More...

## Public Member Functions

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)

## Public Attributes

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

## Detailed Description

A module for evaluating some angular integrals encountered in Fourier decomposition of Green's function boundary condition for Poisson and Ampere equations.

## Member Function/Subroutine Documentation

 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$$.

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.

Here is the call graph for this function:

Here is the caller graph for this function:

 real(kind=8) function nintegrals_mod::nintegrals_integrand ( real(kind=8) x, real(kind=8), intent(in), optional k )

Here is the call graph for this function:

Here is the caller graph for this function:

 real(kind=8) function nintegrals_mod::nintegrals_integrand_noparams ( real(kind=8) x )

Here is the call graph for this function:

Here is the caller graph for this function:

## Member Data Documentation

 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:
• /u/gitlab-xgc/builds/YGMz2TJ8/0/xgc/XGC-Devel/XGC_core/nintegrals.F90