Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformer current not correct #146

Open
HansRamon opened this issue Feb 12, 2025 · 4 comments
Open

Transformer current not correct #146

HansRamon opened this issue Feb 12, 2025 · 4 comments

Comments

@HansRamon
Copy link

I have noticed an issue with the transformer component in the simulator. Currently, the voltage and current behavior at the primary and secondary sides do not align with the expected power balance.

Normally, the power should be equal on both sides, following P = U × I. This means that if the voltage is higher on the primary side, the current should be lower, and vice versa. However, in the current simulation, both voltage and current appear to be higher on the primary side, leading to an incorrect power calculation.

Could you please check this issue? Let me know if you need any further details.

link to an example:
https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3AWAnC1b0DYRNpMB2MAZmLgFYAmMADgjIRDMckYFMBaMMAKADdx8WCvgoCsYBAxZ0WRCkxaLoZbgHcQRSiAoUGm0cNGRuAFW0jwSUfstHwcbSHYxIZMkUgIdXCfnzUSKFh5QgoSQjk5MHpqINQ1c1EwK0TwSSgEw21dVKzjdQIhCyy8hJssyVjSgCcQSrSGerz7eDKtZOt29PzGdIlGhFj+jPV6BgrB1OMAB16GYbHUonAoFvg4blnpbqWV6XXW9W35wQaR1azCqe4ifGlT4cv05YhjW9kugaHnve4gA

Best regards,
Hans

@pfalstad
Copy link
Owner

I'm seeing that the voltage on the primary side is half of the secondary voltage, and current is twice the secondary current.

229.8 * .0928 = 21.325 W
459 * .0459 = 21.068 W

seems about right...

@pfalstad
Copy link
Owner

The circuit never reaches steady-state because there is no resistance in the primary.

I changed the phase offset of the AC source to 90 degrees so that it starts closer to steady state.

Also, I increased the inductance, which brings the transformer closer to ideal.

https://tinyurl.com/22hfwcgu

@HansRamon
Copy link
Author

Thanks for your answer. With This diagram I can work with the students. Maybe put the small resinstance as a parameter of the transformer because a coil has always a resistance.

Thanks for the help. I'm a big fan of the simulator by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants