Skip to content

Apply parity boundary conditions - #61

Draft
ohno wants to merge 1 commit into
mainfrom
codex/issue-5-fdm-boundary
Draft

Apply parity boundary conditions#61
ohno wants to merge 1 commit into
mainfrom
codex/issue-5-fdm-boundary

Conversation

@ohno

@ohno ohno commented Aug 14, 2026

Copy link
Copy Markdown
Member

Summary

  • apply the radial parity condition at the origin for central differences
  • use the even-l Neumann condition to eliminate the excluded origin value
  • preserve the odd-l zero-origin condition
  • add direct stencil tests and concise boundary documentation

Impact

Central finite differences now distinguish ψ(-r) = ψ(r) from ψ(-r) = -ψ(r) while retaining the origin-free radial grid.

Validation

  • Pkg.test() — 555/555 tests passed
  • complete Documenter build passed
  • existing hydrogen eigenvalues are preserved
  • git diff --check

Closes #5


This pull request was developed with assistance from Codex using GPT-5.6 Sol with High reasoning effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Boundary conditions in finite difference method

1 participant