Ramin's knocking on the door is a compulsion.
Compulsions are repetitive behaviors or acts that individuals feel compelled to perform- such as knocking on a front door three times before going to bed.Compulsions stem from obsessive and intrusive thoughts and beliefs. Other examples of compulsions include: repeatedly washing one's hands, checking to see if doors are locked and arranging things in a particular manner.