Why current out of phase ?

Discussion in 'Programmer's Corner' started by silv3r.m00n, Apr 18, 2010.

  1. silv3r.m00n

    Thread Starter New Member

    Apr 15, 2010
    14
    0
    Code ( (Unknown Language)):
    1.  
    2. AC Source connected to a resistor
    3. v1 1 0 ac sin(0 100 60 0 0)
    4. rload 1 0 2
    5. .tran 1m 30m
    6. .plot tran v(1) i(v1)
    7. .end
    8.  
    The above simple program shows the plot of voltage and current. And they are out of phase by 180 degree. The current is supposed to be in phase with voltage. Is the program wrong somewhere ?
     
  2. kingdano

    Member

    Apr 14, 2010
    377
    19
  3. Ghar

    Active Member

    Mar 8, 2010
    655
    72
    180 degrees is the same as being negative.
    The current direction is defined into the + terminal so the voltage source current is opposite the resistor current (i.e. 180 degree phase).
     
Loading...