Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
My expectation is like....if switch is on,,,V1 charge the capacitor.Hi,
what do you expect to see? I do not see an initial condition for the capacitor by means of a charge / voltage i.e.
.ic V(n001) =10
This would show a discharge of the capacitor. In your case, you will see nothing, as there is no current or voltage source, nor charge, on the "switched side" (capacitor side) of the switch is involved. The used switch is like a relay, V1 only controls the switching, but does not contribute any current/voltage to the "switched side".
BR
Yes I got it.No, it does not. As mentioned above, the switch acts like a relay. So "primary" side and "secondary" side are galvanically isolated. No energy is transfered to the side (secondary) where the capacitor is attached. V1 only controls the switching, like you would change the state of an ordinary (pure) mechanical switch by you finger/hand.
BR