FIX: properly handle zero epicentral distance without clamping r - #281
Merged
Conversation
Dengda98
commented
Aug 5, 2026
Owner
- Remove the old practice of rewriting r=0 to 1e-5. Introduce GRT_IS_ZERO (threshold 1e-8) and evaluate near-field Bessel terms via exact kr→0 limits in k_integ, so displacement/derivatives remain well-defined on axis.
- At r=0, keep the two-step ZRT covariant split: synthesize the finite part of (1/r)∂_θ with ∂_r Green's functions, and replace u/r connection terms by ∂_r u in coord / stress / strain / rotation.
- Force azimuth to 0° (e_r→N, e_θ→E) and reject FIM/SAFIM when any distance is zero.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.