Degenerate shapes and extreme aspect ratios
Before this page
Hill polarization tensors for the closed forms and the cubatures, and COD tensors for the cracks.
The closed forms of the Hill, Eshelby and crack opening tensors are written for a generic shape. At the shapes where two semi-axes meet, where a spheroid becomes a sphere, a disc or a needle, or where the two acoustic roots of a transversely isotropic matrix coincide, they reach removable
This page lists those situations, says for each one what goes wrong, and how the package evaluates it instead. Every figure quoted is a relative error, measured against a reference that shares no code with the formula it checks: the nested cubature at tolerances ForwardDiff through the cubature and finite differences of the closed form.
| Situation | What goes wrong | Treatment | Accuracy |
|---|---|---|---|
| spheroid near the sphere, isotropic matrix | divided difference of two potentials | the potentials as the integrals they stand for | |
| triaxial ellipsoid with two close semi-axes | elliptic integrals and their divided differences | expansion around the spheroid | |
| derivative where two semi-axes meet | the merged shape no longer depends on their gap | shapes merged only when their derivatives coincide | |
| spheroid in a TI matrix: sphere, coincident roots, disc, needle | cancellations, a square root of zero | three regimes in the mean and squared half-difference of the roots | |
| elliptical crack near the circle | power series | ||
a cubature under ForwardDiff | NaN error estimate, dual integration bounds | error norm on the values, plain bounds | — |
| self-consistent estimate of TI class | estimate rebuilt as a full tensor | projection within the class |
The integrals behind the first four rows live in src/Core/spheroid_integrals.jl.
The integrals of a spheroid
With
With
With
These cancel as
They are used for
Spheroid near the sphere, isotropic matrix
The closed forms in an isotropic matrix — Hill, Eshelby and concentration tensors,
newton_potential_3d evaluates instead, with
then
Where the integral forms come from
The potentials are
and the mixed one, with one more factor
Against the nested cubature at tight tolerances, the Hill tensor of a spheroid in an isotropic matrix is now within
Triaxial ellipsoid close to a spheroid
A triaxial ellipsoid goes through Legendre's elliptic integrals, and its mixed potentials through divided differences such as
When the closer pair of semi-axes
where
so that each potential is a combination of the moments
Against the cubature, a triaxial ellipsoid with two semi-axes
Where two semi-axes meet: derivatives
An ellipsoid whose two semi-axes are equal is classified as a spheroid (or a sphere), and its closed form depends on the shared semi-axis only. Differentiate with respect to one of the two at the point where they meet, and that closed form has nothing to give: merged, the derivative of the Hill tensor of a sphere with respect to one of its semi-axes is zero, and the derivatives along the gap of the shapes next to a spheroid are off by 100 % to 550 %, without a word.
Two semi-axes carried by ForwardDiff.Dual numbers are therefore merged only when their derivatives coincide too; otherwise the ellipsoid is triaxial, and the expansion above, exact at
which the package returns to rounding. Against ForwardDiff through the cubature these derivatives agree to
Spheroid in a transversely isotropic matrix
The Walpole coefficients of a spheroid coaxial with a transversely isotropic matrix, given in Hill polarization tensors, involve
as
These are the coefficients of that page, in which
The
rational in the moduli and free of their scale. Four situations would otherwise break the evaluation:
near the sphere,
, the closed forms cancel;coincident roots — an isotropic matrix stored as transversely isotropic, or one within
of isotropy — make the partial fractions divide by , and the square root of has an infinite derivative; merging the roots there instead makes the derivatives along every modulus that breaks isotropy wrong by 24 % to a factor 14, at an isotropic point included;a flat spheroid,
, makes the partial fractions of cancel as ;a needle,
, makes those of and cancel as .
They are evaluated in three regimes:
near the sphere,
: the power series , where needs only and ;nearly coincident roots,
: with , , truncated at , so that ;elsewhere, partial fractions,
with , arranged so as not to cancel. For a flat spheroid ( ), and come from by . For a needle, turns the single-root integrals into a part rational in , summed exactly, and a remainder in :whose partial fractions cancel as
only.
The sign of the partial fractions
For
No square root of
Against the same integrals in 256-bit arithmetic, on generic, strongly anisotropic and nearly isotropic matrices (
Elliptical crack near the circle
The crack opening tensor of an elliptical crack of aspect ratio
and
A kink at the circle
ForwardDiff orders two dual numbers of equal value by their partials, so the semi-axis being increased is sorted as the larger one, and the derivative returned is the one in the direction of the increase. Next to the circle, it agrees with the cubature to
Cubatures under ForwardDiff
Two traps stop a cubature under differentiation.
The error estimate. QuadGK compares the Kronrod and Gauss estimates of each segment through a norm.
LinearAlgebra.normrescales by the largest entry and divides by it unless that entryiszero, and a dual number of value zero with non-zero partials is notiszero. On a segment where the two rules agree to the last bit, which a smooth integrand produces, the estimate comes outNaNand the integration stops with aDomainError— the derivative of the anisotropic conduction tensor of a sphere, for one. Every cubature of the package hands QuadGK the norm of the values: the refinement makes the decisions an evaluation without derivatives makes, so the value of a differentiated evaluation is that evaluation itself, and the derivatives ride on the same nodes.The integration bounds. QuadGK has no rule for a dual interval: bounds taken in the number type of the crack make the derivative with respect to a crack semi-axis in an anisotropic matrix a
MethodError. The bounds are plain numbers; the derivatives live in the integrand.
Self-consistent estimates of transversely isotropic class
The self-consistent scheme projects each iterate on the major-symmetric tensors. The products of transversely isotropic tensors that build an iterate land in the six- or eight-parameter Walpole form. Projected by rebuilding them as generic tensors, the class is lost, and the Hill tensor of a coaxial spheroid in the next iterate goes through a cubature. In the Walpole basis the major transpose swaps
exact, and the estimate keeps its class. On a 3:1 spheroid the scheme then uses the closed form throughout: 46 µs instead of 4.2 ms, and the fixed point agrees with the one reached through the cubature at tight tolerances to
Where to go next
The next chapter leaves the ellipsoid for patterns whose inner strain is not uniform: Layered sphere solves the generalized Eshelby problem of a concentric multilayer. The closed forms treated here are those of Hill polarization tensors and COD tensors, and the self-consistent iteration that relies on them is in Self-consistent schemes.