grid simulation