How this calculation works
The exterior Laplace problem asks for a harmonic potential outside a closed planar conductor, given boundary values and a condition at large distance. In two dimensions, a logarithmic far field replaces the inverse-distance behavior familiar from three-dimensional electrostatics.
Use2DGreen G(x,y)=-log|x-y|/(2π). Piecewiseconstantdensityq_j onstraightpanels. Sij=integralpaneljG(mid_i,y)ds, analyticself L/(2π)*(1-log(L/2)); ordinaryoffdiag quadrature oranalyticlogsegmentintegral (near-panelneedsrobust). Augment [S,ones;lengths,0][q,c]=[g,Q], prescribedtotaldensityQ fixeslogfarfield u~c-Qlogr/(2π). Q0 boundedfarfieldunknownc, ratherthanarbitraryfixedzeroatinfinity. Reconstructu(x)=c+sumq_j∫G. Validatepanelboundarysimple andnoqueryonsingularity. Layerdensityisnotnaivelyphysicalnormalfluxonpolygon; ifclaimfluxusejumpformulawithsign. ParentplanBemppsource3Dnotadequate2D.A worked example
With the prefilled inputs, farFieldConstant = 2. Polygon panel j runs vertex j→j+1; one midpoint value per panel. Total charge fixed; farfield constant solved.
Good to know
2D Laplace exterior single-layer constant-panel midpoint collocation,G=−log(r)/(2π). Prescribed charge Q fixes logarithmic term;constant c solved,farfield c−Qlog(r)/(2π). Residual at collocation points is not a whole-boundary error bound.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
An exterior problem in two dimensions
The exterior Laplace problem asks for a harmonic potential outside a closed planar conductor, given boundary values and a condition at large distance. In two dimensions, a logarithmic far field replaces the inverse-distance behavior familiar from three-dimensional electrostatics.
That distinction affects both uniqueness and numerical formulation. A constant boundary value cannot generally be paired with an arbitrary zero limit at infinity as though the problem were three-dimensional. The page must state its chosen logarithmic normalization beside the boundary inputs.
Compare with the Two dimensional Poisson equation calculator on a unit square. Solveanunboundedexteriorelectrostaticboundaryintegralproblem; boundedPoissongridsrequireafiniteouterboundaryandvolumesource.
Polygon panels and boundary values
Polygon panel j runs vertex j→j+1; one midpoint value per panel. Total charge fixed; farfield constant solved.Enter eight through eighty consecutive vertices of a simple closed polygon, one finite midpoint Dirichlet value per panel and a prescribed finite total charge. One through one hundred exterior query points are supported. Each straight side becomes a boundary panel carrying a constant unknown layer density. Boundary values are imposed at the declared collocation points, ordinarily panel midpoints.
Panels must have positive length and should not cross. Sharp corners can produce singular densities that require refinement even when the potential remains well behaved. A visually detailed polygon does not guarantee that equal-length panels resolve those corner effects.
The logarithmic single-layer model
The two-dimensional fundamental solution uses minus log distance divided by two pi. Integrating it over each panel gives a dense influence matrix. The self-panel integral is finite despite the pointwise logarithmic singularity and needs analytic treatment or a properly singular-aware rule.
Ordinary quadrature is adequate only when the observation point is safely separated from a panel. Near-boundary evaluation can be inaccurate even after the collocation solve has a small residual. The implementation should distinguish solve residuals from close-evaluation errors.
Fixing the far-field degree of freedom
An augmented system solves for both layer densities and an additive constant while fixing the total layer density integral. With the stated kernel, that total controls the coefficient of minus log radius divided by two pi in the far field.
Setting the total to zero gives a bounded solution whose limiting constant is determined by the boundary data. Prescribing an unrelated constant and total simultaneously can overdetermine the problem. The input form should expose a consistent normalization rather than accept incompatible conditions silently.
A constant-boundary worked check
Set every boundary value to one and choose zero total layer density. Zero density and additive constant one solve the augmented system on any valid closed polygon. The reconstructed potential is one at every exterior query point.
This case verifies the extra constant and normalization equation but does not test nontrivial kernel accuracy. A circular analytic solution approached by successively refined regular polygons provides a stronger check of logarithmic scaling, layer integration and far-field evaluation.
Reading potentials and density diagnostics
A static figure can show the polygon, exterior query points and potential contours. The layer-density table belongs alongside residual and conditioning information. A layer density must not be labeled physical outward flux without the appropriate jump relation and sign convention.
The far-field constant and total-density constraint are part of the result, not implementation trivia. Together they explain how a potential at a distant query should scale. Comparing values only near the boundary can miss a wrong logarithmic coefficient. A boundary collocation residual checks the entered midpoint equations, while an exterior query evaluates the resulting potential representation at a different location. Agreement at the midpoints does not imply that every point along every panel has the same small error. Increasing the number of panels and comparing stable exterior query values is an additional discretization check, particularly near polygon corners where the density may vary sharply.
Discretization and unresolved cases
A collocation result approximates the boundary-value problem using constant panels. Refinement changes both geometry and density resolution. Conditioning can deteriorate for certain scales or poorly shaped panels, so a small formal solve must still be checked numerically.
The calculator does not solve a three-dimensional conductor, multiple unspecified components or an arbitrary charge model. Unsupported geometries and unresolved systems should be rejected explicitly. The two-dimensional normalization is a mathematical requirement, not an optional cosmetic setting. 2D Laplace exterior single-layer constant-panel midpoint collocation,G=−log(r)/(2π). Prescribed charge Q fixes logarithmic term;constant c solved,farfield c−Qlog(r)/(2π). Residual at collocation points is not a whole-boundary error bound.
A few questions, answered
Why can I not simply require zero potential at infinity?
Two-dimensional logarithmic behavior makes that condition incompatible with some boundary data; the far-field normalization must be specified consistently.
Is the single-layer density the outward flux?
Not automatically; flux requires the correct normal-derivative jump relation and orientation.
Does a small collocation residual guarantee near-boundary accuracy?
No; close evaluation has its own singular or near-singular quadrature errors.
What does zero prescribed total density mean?
It removes the logarithmic growth term and leaves a bounded far-field constant determined by the boundary values.