DailyDiary: simulation code