FDM simulation of an electrical transformer?

Click For Summary
SUMMARY

The discussion focuses on programming a Finite Difference Method (FDM) simulation of an electrical transformer using a coupled inductor model. The user encounters issues with negative inductor values when simulating with SPICE, leading to no output signal. The differential equations derived from the model are valid, but the perfect coupling condition complicates solving for current derivatives. The user notes that while SPICE produces expected outputs with certain parameters, variations in coupling factor significantly affect results, highlighting the sensitivity of transformers to derivative changes and the limitations of FDM due to truncation error.

PREREQUISITES
  • Understanding of Finite Difference Method (FDM) simulation techniques
  • Familiarity with coupled inductor models in electrical engineering
  • Proficiency in using SPICE for circuit simulation
  • Knowledge of differential equations related to electrical circuits
NEXT STEPS
  • Research techniques to mitigate truncation error in FDM simulations
  • Explore advanced SPICE modeling for transformers with varying coupling factors
  • Study the impact of internal resistance on transformer simulations
  • Learn about numerical methods for solving differential equations in electrical engineering
USEFUL FOR

Electrical engineers, simulation developers, and students interested in transformer modeling and numerical methods for circuit analysis.

Will Flannery
Messages
121
Reaction score
36
My goal is to program a FDM simulation of a transformer. So, we have the coupled inductor model to start with ...
SIsGV.jpg


However, if L1 = 1, L2 = 9, and coupling is perfect then M = sqrt(1*9) = 3 and L1 - M = -2.

So, this seems problematical to me. Also, if I try to simulate this model using SPICE, just for fun you understand, my goal is to program the sim myself, SPICE chokes on the negative inductor value and no output signal is generated.

I note that the model above does produce the right differential equations, that is, v1 = L1*i1' + M*i2' v2 = L2*i2' + M*i1'

However, if you try to simulate these differential equations directly, and the coupling is perfect, the the ratio L1 / M = M / L2 = sqrt(L1) / sqrt(L2) and you cannot solve them for i1' and i2'. So, I'm stuck starting with these differential equations too.

One more thing - running the SPICE transformer model, i.e. specifying L1 = 1, L2 = 9, and k = 1, with a 1 v. 60 Hz input produces the expected 3 v. output. However, changing k to .9 reduces the output to a few mv. Even .99 and its still a few mv. That seems very peculiar to me (I'm not an EE).
 
Engineering news on Phys.org
This is not the kind of thing you want to simulate with FDM. The main drawback of FDM is the truncation error you get in the derivatives. Transformers are super-sensitive to the derivative of the currents. Where's the input coming from? If you really want to do FDM, you should add some internal resistance to mitigate the effects of truncation error.
 

Similar threads

Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
6K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 108 ·
4
Replies
108
Views
35K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
7
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K