feat(pipekit): elliptic solver operators — Poisson / Helmholtz with FFT, DST and DCT boundary conditions
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by reading the existing solve_helmholtz_2d implementation and _BC_DISPATCH, then inspect the prerequisite issue #151 and the related solver in #107. Implementing the Helmholtz and Poisson operators spans boundary-condition transforms, spectral input handling, and differentiation with respect to λ. Done means matching the solver across supported BC combinations, preserving zero transforms for all-periodic spectral input, and checking λ gradients against finite differences.
Written by the indexing model from the issue text.
Description
Part of epic #148. Depends on: #151 (E4.1). Wraps today's solve_helmholtz_2d (per-axis BCs); #107's single HelmholtzSolver only simplifies the body later.
Proposal
class Helmholtz(SpectralOperator):
"""(∇² − λ) ψ = f with BCs per axis (periodic / Dirichlet / Neumann)."""
bc: tuple[str, ...] = eqx.field(static=True) # e.g. ("periodic", "dirichlet")
approximation: str = eqx.field(static=True, default="spectral")
lam: Array = 0.0 # λ, a leaf (see #105 on λ = 0)
zero_mean: bool | None = eqx.field(static=True, default=None)
class Poisson(Helmholtz): # λ ≡ 0
- The carrier is physical in, physical out for DST / DCT boundary conditions, because their coefficient layouts are not the Fourier
Spectrallayout. With all-periodicbc, the op also accepts and emitsSpectral(0 transforms spectral → spectral). - A
bctuple andapproximationthat the #107 solver does not support fail at construction with the supported set.
Acceptance criteria
- Equals
solve_helmholtz_2don the per-axis BC combinations of_BC_DISPATCH. - All-periodic
Spectral→Spectral: 0 transforms. - grad w.r.t.
lammatches finite differences away from λ = 0; the docstring links #105 for the discontinuity at λ = 0 on null-mode BCs.
Generated by Claude Code
- Dominant language
- Python
- Stars
- 2
- Forks
- 0
- Avg merge
- 8h 13m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/spectraldiffx
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jejjohnson/spectraldiffx#172 ·
-
epic
Difficulty 1/5 Under an hour Newbie friendliness 62/100
jejjohnson/spectraldiffx#167 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jejjohnson/spectraldiffx#113 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jejjohnson/spectraldiffx#105 ·
-
dependencies
Difficulty 4/5 3-5 days Newbie friendliness 45/100
jejjohnson/spectraldiffx#181 ·
All issues in jejjohnson/spectraldiffx
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day