v0.2-beta

PDEOncology

A browser-based simulator for tumor drug penetration using reaction-diffusion partial differential equations (PDEs). No installation required — all computation runs client-side in JavaScript.

∂C/∂t = ∇·(D(x,y)∇C) − λC − k·ρ(x,y)·C

Where C is drug concentration, D is the spatially-varying diffusion coefficient, λ is the degradation rate, k is the cellular uptake rate, and ρ(x,y) is the local cell density field.


Numerical method

Explicit finite difference (FTCS scheme) on a 2D uniform grid. Stability enforced via CFL condition: dt ≤ dx² / (4D).

Grid size: 80×80 nodes representing a 1cm × 1cm tissue cross-section.

AI integration

Uses the Claude API to extract biophysically grounded PDE parameters from a natural-language drug + tumor description. Parameters are auto-loaded into the simulator.

Requires a valid Anthropic API key (set in AI Drug Input tab).

Tumor model

Circular tumor geometry with a radially-graded cell density field. Diffusion coefficient is attenuated in the tumor core to simulate interstitial fluid pressure (IFP) and extracellular matrix barriers.

How to use

1. Go to Simulation — pick a drug + tumor preset or set sliders manually.
2. Or go to AI Drug Input — type a description and let Claude set parameters.
3. Click Run Simulation.
4. View and export results in Results.


PDE parameters explained

ParameterSymbolMeaningTypical range
Diffusion coefficientDHow fast the drug spreads through tissue0.005 – 0.25 (normalised)
Degradation rateλDrug breakdown / metabolic clearance0.001 – 0.05
Uptake ratekRate at which cancer cells absorb the drug0.01 – 0.15
Cell densityρ(x,y)Spatial distribution of tumor cells0.05 – 1.0
Tumor radiusrRadius of the tumor region in grid units10 – 38 px

Parameters


D (diffusion) 0.08
λ (degradation) 0.005
k (uptake) 0.06
Tumor radius 22 px
Steps 400
ready — press Run
1.00.50.0
Tumor avg C
Max C
50% depth
px
Coverage
%

Radial penetration curve

AI Drug Input

Describe a drug and tumor type in plain English. Claude will extract biophysically grounded PDE parameters and load them directly into the simulator.

API key

Your key is stored only in this browser session — never sent anywhere except directly to api.anthropic.com.

Describe your simulation

Claude response
Enter a description above and click Ask Claude.

Results & Report

Run a simulation first, then return here to view analytics and export data.

No simulation data yet. Go to Simulation →

Drug Database

Built-in parameter library for common oncology drugs across tumor types. All values are normalised for the PDE model. Click a row to load into the simulator.

Drug Tumor D λ k Radius Difficulty Class

About these parameters

Diffusion coefficients are scaled relative to free diffusion in water (~10⁻⁵ cm²/s). Uptake rates reflect receptor expression levels. Degradation rates account for metabolic clearance. Values are indicative — for research use only.

Sources: Jain RK (1987), Nugent & Jain (1984), Thurber et al. (2008), Chauhan et al. (2011).