So I have a transformer winding that is 15vac and I'm trying to get 20vdc out of it using a half wave rectifier but it is acting weird.
V1 signifies the transformer winding.
I'm getting 0v at the junction between D1 and C1 and I'm getting -20v at the junction between V1 and D1. If I reverse the diode then I get +20v at the junction between V1 and D1. Why am I getting DC at the input and not at the output?

V1 signifies the transformer winding.
I'm getting 0v at the junction between D1 and C1 and I'm getting -20v at the junction between V1 and D1. If I reverse the diode then I get +20v at the junction between V1 and D1. Why am I getting DC at the input and not at the output?