Tagged: define-source, fdtd
-
-
September 4, 2022 at 12:34 pm
1996lhl
Subscriber各位老师好,
我想在FDTD中,讲入射光改成聚焦的涡旋光入射,查看了官网的一些例子后但是目前仍然遇到一些问题。我看了官网这个例子“https://optics.ansys.com/hc/en-us/articles/360034383054”。 我目前的理解是自定义光源的话,需要自己输入EX,Y,Z,HX,Y,Z.如下:
if(pol==1){ # if radial polarization
Exk = cos(phi)*cos(theta)*envelope;
Eyk = sin(phi)*cos(theta)*envelope;
Ezk = sin(theta)*envelope;
Ex = -1i*czt(Exk,kx,ky,x,y);
Ey = -1i*czt(Eyk,kx,ky,x,y);
Ez = -1i*czt(Ezk,kx,ky,x,y);
Hxk = -sqrt(eps0/mu0)*sin(phi)*envelope;
Hyk = sqrt(eps0/mu0)*cos(phi)*envelope;
Hx = -1i*czt(Hxk,kx,ky,x,y);
Hy = -1i*czt(Hyk,kx,ky,x,y);
Hz = 0*Ex;
}
请问可不可以自己输入一个公式呢,比如涡旋光的公式作为输入,这样该如何编写代码呢?
-
September 6, 2022 at 4:08 pm
Guilin Sun
Ansys Employee当然可以。你只需根据以上脚本,给出E,H的各个分量表示式就可以,其它的完全一样。
-
September 7, 2022 at 7:22 am
-
September 7, 2022 at 3:04 pm
Guilin Sun
Ansys Employee原则上是可以算出来的。当然最好的办法是给出所有分量。
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error on Lumerical device
- Using a license file on a new license server
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Diverging Simulations
- Ansys Insight: Transmission results greater than one
- Ansys Insight: About override mesh in FDTD: its use and settings
- Ansys Insight: Convergence issues in CHARGE
- Is there a Lumerical script command to output the Simulation and Memory requirements?
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.