It is half wave rectifier work in positive half cycle of input wave because in half wave cycle (positive) diode get required biasing voltage and diode will act as low resistant path and resulting into unity gain non inverting amplifier (voltage follower) which have output equal to applied input.