Verifying the three currents add to 0

  • Thread starter PhysicsTest
  • Start date
  • #1
PhysicsTest
238
26
TL;DR Summary
I want to create circuit and confirm the sum of the three currents is 0
I always think of simulating the inverter phase currents
1693327853136.png

as a first step i have created the above circuit and i want to verify the currents at Neutral is 0. But it does not add to 0 as the result
1693328471898.png
 

Attachments

  • mosfet.txt
    1.8 KB · Views: 64
Engineering news on Phys.org
  • #2
Turn the inductor's polarity dots on, and you will see that L1 is backwards in the circuit compared to L2 and L3. The inductor currents then total less than 1 fA, which for me, is close enough to zero.
The three pulse sources are identical, as is the neutral voltage.
 
  • Like
Likes PhysicsTest
  • #3
1693330911259.png

Another simulation with different duty cycle. It adds upto 0.
 
  • #4
I must take your word for it.
I'm unable to read the picture, or run the .asc
Since neutral is floating, the sum of the three currents must be zero.
Edit a plot to show the value I(L1)+I(L2)+I(L3)
 
  • #5
1693332090425.png

1693332123247.png

1693332893402.png


Sorry i am not sure the asc file is not running, through dos i renamed to txt and attached.
 

Attachments

  • Mosfetsim3.txt
    1.9 KB · Views: 47
  • #6
This is not the sort of problem you should use a simulator for. It has a simple algebraic solution. Unless the only point is to learn how to use a simulator, I guess.
 
  • Like
Likes sophiecentaur
  • #7
DaveE said:
This is not the sort of problem you should use a simulator for. It has a simple algebraic solution. Unless the only point is to learn how to use a simulator, I guess.
Because the simulation disagreed with the obvious solution, this was a "learning to use the simulator" exercise.

PhysicsTest said:
Sorry i am not sure the asc file is not running, through dos i renamed to txt and attached.
Mosfetsim3.asc runs OK.
 
  • Like
Likes DaveE
  • #8
Also note: numerical simulators will very rarely give exact zero as an answer. That's just how these things work, numerical solution is in a way only an approximation.
 
  • #9
Borek said:
Also note: numerical simulators will very rarely give exact zero as an answer.
One least significant bit in double precision is about 9 femto units, or -320dB.

Borek said:
That's just how these things work, numerical solution is in a way only an approximation.
Reality is never as accurate, and is more noisy than a good simulation. Reality is only an approximation of the ideal.
 
  • #10
Baluncore said:
Reality is never as accurate, and is more noisy than a good simulation. Reality is only an approximation of the ideal.
A real experiment is a test of the experimenter, the theory and the equipment. A simulation is a test of the software and no more; A simulator won't show you where the theory may be wrong or (unless there's a table of likely errors, included) how dodgy some measuring setups can be.

A simulator is just a circular argument; very useful at some stages in a design. The problem is that people tend to favour simulations above an analytical solution (which somebody else had to work out in oder to wrote the simulator). That applies to massive cosmology simulators as much as SPICE but there are few alternatives to simulations to work out the formation of galaxies.
 
  • #11
sophiecentaur said:
The problem is that people tend to favour simulations above an analytical solution (which somebody else had to work out in order to write the simulator).
Only the most trivial analytic solutions are worth the time, and those I can see in my head. Bigger circuit analytic solutions are like crossword puzzles, you get the satisfaction of completing the solution, but they slow you down.

For real circuits, it is always quicker to build a SPICE model than solve it analytically. Once you have a model, you can optimise the circuit without needing to repeat the solution process.

As with software development, when a simulation produces a spurious result, minimising the circuit, while still exhibiting the problem, makes it possible to determine if there is a bug in the simulator, in your understanding of the simulator, or the circuit.

This thread began based on a minimised circuit that showed a spurious result. It was obvious that the sum of all currents to and from the neutral node must be zero, no analytic solution was needed for that. The question was, why did the simulator not agree with expectations. The answer was, as usual, operator inexperience. Experience will only rise if you climb the learning curve. Asking questions speeds the climb, and reduces the injuries.
 
  • #12
Baluncore said:
Turn the inductor's polarity dots on, and you will see that L1 is backwards in the circuit compared to L2 and L3. The inductor currents then total less than 1 fA, which for me, is close enough to zero.
The three pulse sources are identical, as is the neutral voltage.

Yes I saw they were the same. Didn't he want three-phase as in, 120° phase shift from each source?
 
  • #13
Baluncore said:
Turn the inductor's polarity dots on, and you will see that L1 is backwards in the circuit compared to L2 and L3. The inductor currents then total less than 1 fA, which for me, is close enough to zero.
The three pulse sources are identical, as is the neutral voltage.

Yes I saw they were the same. Didn't he want three-phase as in, 120° phase shift from each source?
 
  • #14
@boB_K7IQ
The schematic became 3PH later in Mosfetsim3.asc in post #5.

To make up for the lack of documentation, anyone prepared to build a SPICE model, deserves the assistance they request.
 
  • #15
Baluncore said:
Only the most trivial analytic solutions are worth the time, and those I can see in my head. Bigger circuit analytic solutions are like crossword puzzles, you get the satisfaction of completing the solution, but they slow you down.
Yes, but you've left out the third option which I'll call an analytic approximation. Which is an incredibly common (and powerful) engineering approach. So, if the approximations are reasonable, you can analyse (on paper) a multi-stage amplifier one stage at a time, for example. This is the most enlightening way to understanding circuits, IMO.

But yes, exact solutions may not be worth the effort for big, or highly coupled, networks. That's what simulators are really best at.

Finally, the reason you can "see in my head" the solution is because you've done the analytical solutions so many times before. That's not true for many others, yet. This is really why I dislike the "simulator first" approach, except for pros.
 
  • Like
Likes sophiecentaur
  • #16
DaveE said:
Finally, the reason you can "see in my head" the solution is because you've done the analytical solutions so many times before.
That was what I was getting at. You can do endless simulations and get 'an answer' each time but simulations very seldom help with understanding the pattern. A dozen circuit simulations can't be guaranteed to give the message that the differential of the current waveform will give you the voltage waveform. Even accurate graphs that can be plotted numerically are not recognisable as sin(x)/x or exp ((a-x)2) unless someone who 'knows' the analysis has pointed it out first.
Simulations are brilliant for delivering results but are they really enough for getting a proper understanding of what goes on in Science.

The analysis (supported by countless careful measurements) tells us that the currents sum to zero. When it appears to fail, it's time to look for the fault in the input. (GIGO)
 

Similar threads

  • Electrical Engineering
Replies
1
Views
838
  • Electrical Engineering
Replies
12
Views
2K
  • Electrical Engineering
Replies
18
Views
702
  • Electrical Engineering
2
Replies
37
Views
3K
Replies
3
Views
641
  • Electrical Engineering
Replies
9
Views
2K
Replies
93
Views
5K
  • Electrical Engineering
Replies
17
Views
2K
  • Electrical Engineering
3
Replies
83
Views
4K
  • Electrical Engineering
Replies
33
Views
709
Back
Top