Code
This page contains links to code from Computer Simulation For Pharmaceutical Scientists by Kevin C. Johnson as well as a video to show you how to copy and paste the code examples into Microsoft Visual Basic. Please see Computer Simulation For Pharmaceutical Scientists for a detailed explanation of the code. Visual Basic can be downloaded for free as part of the Community Version of Microsoft Visual Studio.
Start Simulating!
Watch this video to learn how to:
- get started simulating drug dissolution, absorption, precipitation, metabolism, content uniformity and more
- download Visual Basic
- copy and paste code into Visual Basic
The code on page 10 provides a “bare bones” Runge-Kutta numerical method to help you understand how it works.
The code on pages 26-27 simulates drug dissolution, absorption, and pharmacokinetics.
The code on pages 48-49 simulates a multiple-dose regimen.
The code on page 60 simulates a continuously variable absorption rate constant.
The code on pages 68-69 simulates drug precipitation and crystal growth.
The code on page 72 simulates a continuously variable absorption rate constant.
The code on page 79 simulates the effect of release on drug plasma concentrations for instantaneous dissolution.
The code on pages 82-83 simulates the release, dissolution, absorption, and pharmacokinetics from a controlled-release dosage form.
The code on pages 90-91 simulates the advanced compartmental absorption and transit model.
The code on page 102 simulates the effect of permeability on the fraction of dose absorbed.
The code on pages 108-109 simulates content uniformity based on drug particle size.
The code on page 117 simulates content uniformity based on log normal drug particle size distribution.