Home▸Chemistry & Materials▸Drug Ionisation and pH Partition: pKa, logD, Ion Trapping and Membrane Permeability

Drug Ionisation and pH Partition: pKa, logD, Ion Trapping and Membrane Permeability

Set the pKa and logP of a weak acid or base and move it between two compartments of different pH separated by a lipid membrane. See the Henderson-Hasselbalch neutral fraction, logD, the unstirred-layer limited permeability, the exponential approach to equilibrium and the ion-trapping concentration ratio. A Blender-built two-chamber cell, with numerical checks built in. Educational physical chemistry, not medical advice.

Chemistry & Materials3DModerate60 FPS📱 Mobile-adapted🟠 Blender💧 Water⇄ 2D version
Drug Ionisation and pH Partition: pKa, logD, Ion Trapping and Membrane Permeability ↗ Open standalone

A prodrug is an inactive form of a medicine, chemically masked so it absorbs or distributes better, that the body must first convert into the real, active drug before it works. This simulator renders that conversion as a population of individually-tracked 3D molecules: each prodrug particle has a per-timestep probability of being hydrolyzed into the active form, and each active-drug particle has its own probability of being cleared, exactly reproducing the sequential first-order kinetics — dP/dt = −k1P, dA/dt = k1P − k2A — that describe real prodrug pharmacokinetics such as enalapril→enalaprilat or valacyclovir→acyclovir. Adjustable hydrolysis and elimination rate constants, dose size and simulation speed let you explore activation-limited versus elimination-limited regimes while a live concentration-time chart and population readouts track the run.

⚙ Under the hood

Set the pKa and logP of a weak acid or base and move it between two compartments of different pH separated by a lipid membrane. See the Henderson-Hasselbalch neutral fraction, logD, the unstirred-layer limited permeability, the exponential approach to equilibrium and the ion-trapping concentration ratio. A Blender-built two-chamber cell, with numerical checks built in. Educational physical chemistry, not medical advice.

pharmacokineticsprodrugenzyme kineticsdrug metabolismmedicinal chemistryMedicinal ChemistrypKalogDHenderson-HasselbalchIon TrappingMembrane Permeability

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)