A physical framework for implementing virtual models of intracranial pressure and cerebrospinal fluid dynamics in hydrocephalus shunt testing.