Real-time theoretical compartmental model of blood-brain barrier drug delivery