Ignoring the resistor and inductor, you've got a capacitor connected directly across a voltage source, so it will fill up very quickly. Then, the current through the inductor L1 will increase since it has voltage across it. Higher current through the inductor will cause higher current through the switch. Since the switch is modeled with a non-zero on-resistance, you'll get a voltage drop across the switch. As the switch current increases, the switch's voltage drop increases (V_switch_drop = I_switch * R_switch), until the switch voltage drop is equal to the input voltage (1V). This causes the gradual ramp to 0V on the switch output node. So,
- yes, your simulation is working properly, though it's sort of an odd circuit to model. A real-world circuit may act differently due to parasitic resistances and such in the components.
- The switch resistance and R1 form a voltage divider at the beginning, and the capacitor fills up to that voltage at the start. If the switch resistance defaults to 1 ohms as glen said, then when R1 is 1 ohm, R_switch and R1 make a 1/2 divider, so C1 fills to Vin/2 = 0.5 V. When R1 is 1k ohm, R_switch and R1 make a 1000/1001 voltage divider, so C1 fills to 0.999 V (essentially 1V).