patrick-kidger / patrick-kidger/diffrax

3D heat diffusion

Open
#594 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.1k
Forks
189
Avg merge
3d 18h
Merged PRs (30d)
1

Description

Please excuse the somewhat open-ended question!

Could you comment on the suitability of Diffrax for modelling the transient heat diffusion equation in 3D? I have followed the 1D example in the docs, where you obtain a system of coupled ODEs by discretising the spatial domain. I understand this could be extended to 3D space, indeed Crank-Nicolson is often applied to 3D space, but I am aware it would require me to write my own solver. I wonder whether this is not the sort of thing you originally wrote Diffrax for. Other libraries (FEniCSx, FiPy) exist for this sort of thing, but they are outside the JAX ecosystem. Diffrax still appeals for performance reasons and because I like the documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked nonlinear_heat_pde documentation example and compare its 1D spatial discretisation with the requested 3D transient heat-diffusion use case. Define whether supporting this belongs in Diffrax and what a completed contribution would need; the issue does not identify files, tests, or a concrete implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.