source code for running dynamics in pbme and fbts