


{"id":457125,"date":"2026-04-27T01:37:54","date_gmt":"2026-04-27T01:37:54","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/mismatch-in-real-power-calculation-in-transformer-simulation\/"},"modified":"2026-04-27T01:37:54","modified_gmt":"2026-04-27T01:37:54","slug":"mismatch-in-real-power-calculation-in-transformer-simulation","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/mismatch-in-real-power-calculation-in-transformer-simulation\/","title":{"rendered":"Mismatch in Real Power Calculation in Transformer Simulation"},"content":{"rendered":"<p>&lt;p data-start=&#8221;145&#8243; data-end=&#8221;246&#8243;&gt;Hello everyone, I hope you are all doing well. I would like to ask for some assistance from the community.&lt;\/p&gt;&lt;p data-start=&#8221;248&#8243; data-end=&#8221;468&#8243;&gt;I am modeling a transformer in Ansys Maxwell 2D and need to determine its efficiency. The load connected to the transformer is a single fixed resistor, so there are two straightforward ways to calculate the output power:&lt;\/p&gt;&lt;ul data-start=&#8221;470&#8243; data-end=&#8221;614&#8243;&gt;&lt;li data-section-id=&#8221;1pzdcjq&#8221; data-start=&#8221;470&#8243; data-end=&#8221;545&#8243;&gt;The RMS voltage across the load squared, divided by the load resistance<\/li>\n<p>&lt;li data-section-id=&#8221;6zgjxw&#8221; data-start=&#8221;546&#8243; data-end=&#8221;614&#8243;&gt;The average value of the product of the load voltage and current<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;616&#8243; data-end=&#8221;680&#8243;&gt;I have verified that both methods yield exactly the same result.&lt;\/p&gt;&lt;p data-start=&#8221;682&#8243; data-end=&#8221;818&#8243;&gt;The main issue arises when calculating the input real power. Since I do not directly know the power factor, I considered two simple approaches:&lt;\/p&gt;&lt;ul data-start=&#8221;820&#8243; data-end=&#8221;986&#8243;&gt;&lt;li data-section-id=&#8221;nnlcph&#8221; data-start=&#8221;820&#8243; data-end=&#8221;885&#8243;&gt;The average of the product of the primary voltage and current<\/li>\n<p>&lt;li data-section-id=&#8221;bd4ojh&#8221; data-start=&#8221;886&#8243; data-end=&#8221;986&#8243;&gt;The sum of the load power and all transformer losses (i.e., the average winding and core losses)<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;988&#8243; data-end=&#8221;1143&#8243;&gt;However, these two methods do not agree. Specifically, the first method gives 610.5 W, while the second yields 561.4 W, which is a significant discrepancy.&lt;\/p&gt;&lt;p data-start=&#8221;1145&#8243; data-end=&#8221;1199&#8243;&gt;To clarify, the transformer losses were calculated as:&lt;\/p&gt;&lt;ul data-start=&#8221;1201&#8243; data-end=&#8221;1384&#8243;&gt;&lt;li data-section-id=&#8221;volm2w&#8221; data-start=&#8221;1201&#8243; data-end=&#8221;1307&#8243;&gt;StrandedLoss, representing RI^2 losses (where &lt;span class=&#8221;katex&#8221;&gt;&lt;span class=&#8221;katex-mathml&#8221;&gt;R&lt;\/span&gt;&lt;\/span&gt;&nbsp;is the DC resistance of the windings)<\/li>\n<p>&lt;li data-section-id=&#8221;1h7quyb&#8221; data-start=&#8221;1308&#8243; data-end=&#8221;1384&#8243;&gt;CoreLoss, which includes eddy current, hysteresis, and excess losses<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;1386&#8243; data-end=&#8221;1596&#8243;&gt;All windings are defined as stranded, eddy effects are disabled for all geometries, and core loss is enabled only for the magnetic core structure. Additionally, the simulation reports that SolidLoss is zero in this case.&lt;\/p&gt;&lt;p data-start=&#8221;1598&#8243; data-end=&#8221;1919&#8243;&gt;When defining the expression for the average of the product of primary voltage and current in the transient report, I selected a steady-state interval containing an integer number of fundamental periods, ensuring that the waveforms start and end at the same positions\/values of the waveform. The same approach was applied to the loss calculations.&lt;\/p&gt;&lt;p data-start=&#8221;1921&#8243; data-end=&#8221;1946&#8243;&gt;A few additional details:&lt;\/p&gt;&lt;ul data-start=&#8221;1947&#8243; data-end=&#8221;2442&#8243;&gt;&lt;li data-section-id=&#8221;1njxcr4&#8243; data-start=&#8221;1947&#8243; data-end=&#8221;2090&#8243;&gt;There is a significant DC component in the primary current, along with some harmonic content, which is expected in my study due to magnetic saturation.<\/li>\n<p>&lt;li data-section-id=&#8221;1nl0dev&#8221; data-start=&#8221;2091&#8243; data-end=&#8221;2197&#8243;&gt;The DC offset and harmonics should not affect the average power calculation, and I have verified this.<\/li>\n<p>&lt;li data-section-id=&#8221;i9qscv&#8221; data-start=&#8221;2198&#8243; data-end=&#8221;2281&#8243;&gt;The primary voltage is a pure 60 Hz sinusoid, with no harmonics or phase shift.<\/li>\n<p>&lt;li data-section-id=&#8221;1nqa56f&#8221; data-start=&#8221;2282&#8243; data-end=&#8221;2412&#8243;&gt;The simulation uses a time step of 0.1 ms, providing more than 160 points per period, which I believe to be sufficient for accuracy.<\/li>\n<p>&lt;li data-section-id=&#8221;1cxedw3&#8243; data-start=&#8221;2413&#8243; data-end=&#8221;2442&#8243;&gt;The mesh is well refined.<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;2444&#8243; data-end=&#8221;2685&#8243;&gt;I also computed the power factor using FFT by extracting the fundamental component phase, then determining the displacement factor and finally the PF (which needs THD). However, these results are not consistent with the other methods mentioned.&lt;\/p&gt;&lt;p data-start=&#8221;2687&#8243; data-end=&#8221;2794&#8243;&gt;I apologize if I am overlooking something basic or if there is a more appropriate approach to this problem.&lt;\/p&gt;&lt;p data-start=&#8221;2796&#8243; data-end=&#8221;2865&#8243;&gt;Thank you very much for your time and any assistance you can provide.&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-457125","topic","type-topic","status-publish","hentry","topic-tag-ansys-maxwell-2d","topic-tag-magnetic-transient-solver-2","topic-tag-transformer"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27793"],"_bbp_topic_id":["457125"],"_bbp_subscription":["680555","602"],"_bbp_author_ip":["177.62.169.250"],"_bbp_last_reply_id":["457218"],"_bbp_last_active_id":["457218"],"_bbp_last_active_time":["2026-04-28 00:13:33"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["680555","602"],"_btv_view_count":["24"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1777255610:680555"]},"test":"pepecarte22gmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/457125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/457125\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=457125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}