A simulation environment for directional sensing as a phase separation process