A bi-directional distance transformation for the elimination of near-singularity in boundary element method | Synapse