Skip to content

Commit bbbe9ce

Browse files
committed
some comments
1 parent 2074184 commit bbbe9ce

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

chunkie/+chnk/+axissymlap2d/g0funcall.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
% chnk.axissymlap2d.g0funcall evaluates a collection of axisymmetric Laplace
55
% Green's functions, defined by the expression:
66
%
7-
% gfunc(n) = pi*rp * \int_0^{2\pi} 1/|x - x'| e^(-i n t) dt
7+
% gfunc(n) = pi*rp * \int_0^{2\pi} 1/|x - x'| e^(-i n t) dt
8+
%
9+
% it is assumed that x = (x,0,z) otherwise the integral above should pick up a
10+
% phase factor out front of exp(i*n*phi), where phi is the azimuthal coordinate
11+
% of x in cylindrical coordinates.
812
%
913
% The extra factor of rp (and maybe pi?) out front makes subsequent interfacing
1014
% with RCIP slightly easier. Modes 0 through maxm are returned, with gval(1) =

devtools/test/g0funcallTest.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
nq = 2000;
2626
hhh = 0.000001
2727

28+
% evaluate the kernel using brute force trapezoidal integration, and then
29+
% compare with the recurrence relation code. Note: The "exact" derivatives are
30+
% estimated using finite difference, so it is expected that the error is O(h^2)
31+
2832
for m = 1:(maxm+1)
2933
dint = chnk.axissymlap2d.gkm_brute(r, rp, z, zp, zk, m-1, nq);
3034
exact(m) = dint*4*pi*pi*rp;

0 commit comments

Comments
 (0)