Skip to content

Helmholtz wrappers's self-interaction handling when source and target points are the same #67

@yongzhongli

Description

@yongzhongli

Hi FMM3D developers,

I am testing hfmm3d in Julia and noticed a discrepancy when setting the target points equal to the source points (a situation that naturally arises in integral equation methods).

According to the documentation:

“When x = xj, the term corresponding to xj is dropped from the sum.”

From my understanding, this means that the Green’s function contribution for coincident source–target pairs is ignored. Is this equivalent to treating the kernel value G(0) as zero when r=0?

And I found when I use hfmm3d with targets identical to sources, the resulting potentials differ from those computed with h3ddir. Should I expect hfmm3d and h3ddir results to match when targets coincide with sources, or is the discrepancy expected?

For integral equation contexts where self-terms must be treated carefully (e.g., singular integrals), is the recommendation to always avoid exact coincident source–target evaluations with hfmm3d?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions