-
-
July 11, 2024 at 8:28 amGuan Hong LiSubscriber
I am currently using MODE Solutions to solve the electric field inside a waveguide, and I need to extract the far-field mode. In my script, I wrote:
farfield=getresult("FDE::data::mode1","farfield");
However, this script prompts the frequency selection window to appear. How can I modify my script to automatically press 'OK' in the frequency selection window?
I have already included:
farfieldsettings("far field filter", 0.2); farfieldsettings("override near field mesh", 1); setanalysis("wavelength", 1.03*um);
Any suggestions? -
July 11, 2024 at 8:41 amAmrita PatiAnsys Employee
Hi Guan,
Instead of using getresult, you can use the standard farfield commands similar to what we do in FDTD. Here is a sample code:
mode_number=1; #The mode number
mon_name="FDE::data::mode"+num2str(mode_number);
res = 151;#resolution of farfield data
E2=farfield3d(mon_name,1,res,res);
ux=farfieldux(mon_name,1,res,res);
uy=farfieldux(mon_name,1,res,res);
image(ux,uy,E2,"","","|E|^2 at 1 m","polar");Let me know in case you have questions.
Regards,
Amrita -
July 11, 2024 at 11:00 amGuan Hong LiSubscriberHi,AmritaThanks for your help, but I still have a question.
Is it feasible to change the far-field projection coordinates to a screen at a fixed distance from the waveguide and convert them to Cartesian coordinates?
By the way, the solver what I using is the FDE solver in MODE solusion.
Regards,
Guan Hong -
July 17, 2024 at 8:01 amxin zhangSubscriber
Hi!
Do you know how to select the “farfieldfilter” parameters correctly? If the monitor edge electric field is large, do I also need to filter it to 0.
-
- You must be logged in to reply to this topic.
-
461
-
230
-
200
-
183
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.