Author Topic: Ideal capacitor power in rectifier simulation  (Read 2286 times)

0 Members and 1 Guest are viewing this topic.

Offline DigibinTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Ideal capacitor power in rectifier simulation
« on: April 09, 2016, 07:21:28 pm »
I'm simulating (LTSpice) a mains full wave rectifier bridge in order to experiment with LC smoothing networks rather than just smoothing caps (which I haven't got to yet). I've added some postprocessing .meas statements to calculate the power factor of the rectifier and the power loss in the load. The network is just the four rectifier diodes, smoothing cap and load resistor.

Looking at the results my AC source is supplying 1338VA of apparent power and 580W of real power, giving a power factor of 0.4. But the (real) power dissipation in the load resistor is only 414W, so where's the rest of the 580W real power from the source? So I looked at the real power in the capacitor as well, which comes out as 168W accounting for the difference. My simulation is using ideal components, so my question is how can an ideal capacitor dissipate power? The ideal capacitor should be storing energy during the sharp input current spikes and releasing energy to the load for the rest of the half cycle, with the net energy flow being zero. Is there an issue with my simulation or is there some quirk of LTSpice I'm not aware of?
 

Offline orolo

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: es
Re: Ideal capacitor power in rectifier simulation
« Reply #1 on: April 09, 2016, 08:08:49 pm »
Try .meas C1_power AVG V(V_load)*I(C1) from (end/2) to end  with a timestep of 1e-6s. Note that the capacitor stores energy at the beginning, which is not released into the load. Also, a timestep not fine enough would give approximation errors. Have you checked how much energy is lost in the diodes?
 

Offline DigibinTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Ideal capacitor power in rectifier simulation
« Reply #2 on: April 09, 2016, 09:10:57 pm »
Try .meas C1_power AVG V(V_load)*I(C1) from (end/2) to end  with a timestep of 1e-6s. Note that the capacitor stores energy at the beginning, which is not released into the load. Also, a timestep not fine enough would give approximation errors. Have you checked how much energy is lost in the diodes?

Great, yep, finer timestep fixed it. The real power delivered by the source now almost matches the power in R1. Still a 2W discrepancy, perhaps this is dissipated in the diodes but they are ideal so shouldn't be consuming any power. Power in C1 is down to 1mW.

Thanks for the help!
 

Offline orolo

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: es
Re: Ideal capacitor power in rectifier simulation
« Reply #3 on: April 09, 2016, 11:49:20 pm »
Glad I could help. You'll probably find that the rest of the energy is dissipated in the diodes: even if they're ideal, the voltage drop while conducting will cause some loss.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21854
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Ideal capacitor power in rectifier simulation
« Reply #4 on: April 10, 2016, 04:17:39 am »
SPICE "ideal" diodes follow the Shockley function without series resistance or reverse recovery.  That's as reasonably "ideal" as one should hope to expect from any diode you'd want to simulate.

An ""ideal"" diode (meaning, zero forward drop, zero reverse current) would never simulate because it's an absolute discontinuity: unrealistic both in regards to real diodes, and to numerical solutions that depend upon having continuous derivatives to produce a solution.

(You can make arbitrarily "ideal" diodes by using a switch (both in simulation and real life), but the difference is, it takes time to decide whether voltage is positive, or current is negative; which leads to finite forward and reverse recovery times.  So there's still mathematical continuity on a fine enough timescale -- which SPICE needs to dip down to, to make sure it's getting it right -- which makes this okay.  Basically, what happens at DC is meaningless; what happens at AC is where things get interesting.)

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline DigibinTopic starter

  • Regular Contributor
  • *
  • Posts: 90
Re: Ideal capacitor power in rectifier simulation
« Reply #5 on: April 10, 2016, 09:00:08 pm »
On a separate but related point, I'm having trouble with Fairchild encrypted spice models. I'm trying to import the model for the FCP190N60, which is available on the product page here. It's provided in encrypted form (attached). Do I just use the model in the same way as an un-encrypted model? Because LTSpice can't find the .model - m1: Can't find definition of model "fcp190n60e_3p".
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf