


{"id":390002,"date":"2024-10-16T11:40:09","date_gmt":"2024-10-16T11:40:09","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/poynting-vector-calculations-in-the-far-field\/"},"modified":"2024-10-16T11:40:09","modified_gmt":"2024-10-16T11:40:09","slug":"poynting-vector-calculations-in-the-far-field","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/poynting-vector-calculations-in-the-far-field\/","title":{"rendered":"Poynting vector calculations in the far-field"},"content":{"rendered":"<p>&lt;p&gt;Hello. Please I need help regarding how can I calculate the normal component of the Poynting vector directly from the far-field Electric fields ? I used the following script, but it did not work:&lt;br&gt;mon_name = &#8220;xz&#8221;;&lt;br&gt;f = getdata(mon_name, &#8220;f&#8221;);&lt;br&gt;# Get the electric field components in the far field&lt;br&gt;E_squared = farfield2d(mon_name, 1, 2000);&lt;br&gt;theta = farfieldangle(&#8220;xz&#8221;); # Get angle data if needed for integration&lt;br&gt;# Calculate the normal component of the Poynting vector using pre-defined constants&lt;br&gt;epsilon0 = 8.854187817e-12; # Permittivity of free space&lt;br&gt;Poynting_normal = sqrt(epsilon0 \/ mu0) * E_squared;&lt;br&gt;# Integrate the Poynting vector over the specified solid angle&lt;br&gt;x=getdata(mon_name,&#8221;x&#8221;);&lt;br&gt;z=getdata(mon_name,&#8221;z&#8221;);&lt;br&gt;T2 = 0.5 * integrate(Poynting_normal); # Power in watts&lt;br&gt;# get power injected by source (Watts)&lt;br&gt;sp=sourcepower(f);&lt;br&gt;# Normalize to source power&lt;br&gt;T2 = T2 \/ sp;&lt;br&gt;?&#8221;Total Scattered Power: &#8221; + num2str(T2);&lt;br&gt;?&#8221;Source power (Watts): &#8220;+num2str(sp);&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-390002","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["295373","2592"],"_bbp_author_ip":["38.46.221.119"],"_btv_view_count":["148"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["390002"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","295373"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["390090"],"_bbp_last_active_id":["390090"],"_bbp_last_active_time":["2024-10-16 16:20:58"]},"test":"halamohmmed7gmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/390002","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\/390002\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=390002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}