A mathematical model for simulating the phas