Thank you very much for making the things really clear for me to understand, i understand the things a lot better now.Keep in mind that a simulation is not as theoretical as the pure math is. In the case of a diode, here is some leakage. You can roughly model that as a somewhat high value resistor just to get a feel for what might be happening. If we had a 1MegOhm resistor in parallel to the diode, then what would we see?
With DC voltages the 2v source would dominate Vout because the cap would look like an open circuit after all exponentials died down.
With an AC voltage for V1, Vout will be constantly changing and that 1Megohm resistor across the diode will not load the output too much.
For your diode choice though that parallel resistance could be as high as 500Megohms.
Think about these ideas.