-
-
June 2, 2021 at 6:53 pm
quantumoptics
SubscriberJune 4, 2021 at 1:52 pmGreg Baethge
Ansys Employee
Thanks for posting your question on the forum. Ansys employees are not allowed to download any file posted here (see this post), so to be able to help you, could you provide further details on how the simulation is set and the script you are using as well as the error you get. You can post screen copies of the simulation settings, for example.
June 4, 2021 at 5:10 pmquantumoptics
SubscriberThanks for your reply . I try to simulate the 3d model of a 2 slit . and get the far field from that. I want to plot the far. field distribution and my plot axis be wavelength vs angle. I did it in 2d FDTD and could get the result but for 3d I couldnt have it. here is how I simulate the structure and the script would be as follow like the picture. in my script the only change I made is the , I change the farfieldexact2d to 3d. my monitor is 2D monitor z normal .
June 7, 2021 at 10:12 amGreg Baethge
Ansys EmployeeThanks for the additional information,. I think there's a problem in how you define the projection location. The monitor is z normal, and the projection is done at z=112nm, unless the monitor is far from this position (at least 1 wavelength away). the far field calculation might not have much sense. Additionally, you calculate theta from x and y, it should be from x and z.
In any case, it might be simpler to start from theta, we can calculate the field at a distance of 1m, x,y and z are obtained from theta and we use farfieldexact to get the far field vs x(theta), 0, z(theta). It could be something like:
theta = linspace(-90, 90, 181);
thetarad = theta * pi/180;
x = sin(thetarad) ;
y =0;
z = cos(thetarad);
E = farfieldexact(m, x, y, z, 1:nf, 1.5);
E2 = sum(abs(E)^2, 2);
image(theta, lambda*1e6, E2/max(E2), "angle", "lambda (um)");
I hope this will help!
Viewing 3 reply threads- The topic ‘3d far field’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
4107
-
1487
-
1318
-
1156
-
1021
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.