TAGGED: define-source, Lumerical-FDTD, OpticStudio, ZBF
-
-
January 2, 2024 at 2:26 amgukhyun.namSubscriber
Dear all
After designing a lens in Zemax, I want to check the information of the beam past the lens in Lumerical FDTD.Â
Is there any other way to move beam information from Zemax to Lumerical besides a JSON file?
I want simulation 3D in Lumerical FDTDÂ
Can anyone help?
-
January 3, 2024 at 6:51 pmAmrita PatiAnsys Employee
Hi Gukhyun,
You can export the beam as a Zemax Beam File (.zbf) file and then import it into Lumerical for further calculation. The following article shows how the .zbf file can be loaded onto the global deck in FDE to perform overlap analysis: How to convert from Lumerical simulations to OpticStudio and back.Â
For Lumerical FDTD, you can import the zbf file as a source to do subsequent analysis. On Lumerical side, you may use a script like the following to create an import source:filename = "test_zemax_to_lum";
Â
# Read back the structured data from zbf file and visualize it
zbfload(filename + ".zbf");
addimportedsource;
set("name","ZBF source");
Â
x = getdata("::zbf_data",'x');
y = getdata("::zbf_data",'y');
z = getdata("::zbf_data",'z');
Â
lambda = getdata("::zbf_data",'wavelength');
f = getdata("::zbf_data",'f');
Â
Ex = getdata("::zbf_data",'Ex');
Ey = getdata("::zbf_data",'Ey');
Ez = getdata("::zbf_data",'Ez');
Hx = getdata("::zbf_data",'Hx');
Hy = getdata("::zbf_data",'Hy');
Hz = getdata("::zbf_data",'Hz');
Â
EM = rectilineardataset("EM fields",x,y,z);
EM.addparameter("lambda",lambda,"f",f); # Optional
EM.addattribute("E",Ex,Ey,Ez);
EM.addattribute("H",Hx,Hy,Hz); # Optional
Â
select("ZBF source");
importdataset(EM);
Let me know if you have any questions.
Â
Regards,
Amrita -
March 8, 2024 at 7:49 am
-
March 8, 2024 at 4:50 pmAmrita PatiAnsys Employee
Hi Gukhyun,
Are the fields not looking reasonable to you? The span in the x-y directions is automatically taken from the data. I haven't worked with Zemax a lot, but I think Zemax is not fully vectorial. So, you might not be able to get all field components for Zemax. On the Zemax side, let me talk to someone and talk to you.
Regards,
Amrita -
March 17, 2024 at 1:21 pmgukhyun.namSubscriber
Hi AmritaÂ
thanks your replyI'll be waiting!Â
Best regards
-
- The topic ‘Zemax to Lumerical’ is closed to new replies.
- Errors Running Ring Modulator Example on Cluster
- Difference between answers in version 2024 and 2017 lumerical mode solution
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- The two modes overlap the integral
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.