TAGGED: metasurface, monitor, profile
-
-
July 17, 2023 at 5:37 am
xuanlunhuang20
Subscriber -
July 17, 2023 at 9:00 pm
Guilin Sun
Ansys Employee这个问题好像是重复帖子吧?
你看的是不同结果,第一个是正常/正确的结果,第二个是原始数据,没有归化过,请不要使用也不要看它,因为它不是Dataset,没有与坐标关联,是按网格点画的,因此有变形。
需要注意,Matlab直接用来作图可能有失真,参见
-
July 18, 2023 at 1:57 am
xuanlunhuang20
Subscriber你好,感谢解答。因为另外一个英文帖子发了几天没回复,所以又重新提问了一次中文的帖子。我待会儿看看如何删除那篇英文帖子。
但还有一个疑问,自带的image函数,是会自动适应网格吗?我取原始数据Ex,然后使用image画图,它也可以得出正确结果:
Efield_Ex = pinch(getdata('field','Ex'));
Efield_x = getdata('field','x');
Efield_y = getdata('field','z');
image(Efield_x,Efield_y,real(Efield_Ex),"x","y","real(Ex)");
setplot("colorbar min",-1); setplot("colorbar max",1);
但当我直接画Ex时,它又变形了:
mat_size=size(Efield_Ex);
n1=mat_size(1);
n2=mat_size(2);
image(1:n1,1:n2,Efield_Ex);
setplot("colorbar min",-1); setplot("colorbar max",1);
-
-
July 18, 2023 at 3:04 pm
Guilin Sun
Ansys Employee直接用网格的坐标画当然是正确的,不管是Image还是plot,因为坐标网格是原始非均匀的,但是一旦直接在Matlab里面画,而且没有把原始坐标网格均匀化后再转给Matlab,或者直接在Matlab里面用新坐标画都是均匀网格,参见之前给出的链接。
用点数画当然就是均匀网格,因此有变形。
必须使用原始坐标在Script里或者将坐标和E先均匀插值再送Matlab才可以。
应该讲述清楚了此问题。
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.
- 询问关于FDTD和matlab软件的互联问题 ——appopen
- 关于中国用户访问Lumerical官网和帐号注册的补充说明
- Ansys Insight: 透射率反射率电场大于1,或者透射率反射率之和大于1的原因与解决方案–综合贴
- Ansys Insight: FDTD 和 varFDTD 常见的发散原因以及处理
- Ansys Insight: FDTD Solutions 的光源类型及其典型应用:初学者
- 左旋圆偏振光透过超表面后,获得的右旋圆偏振光能量比入射的左旋圆偏振光能量还要大?
- 有效折射率
- Ansys Insight: 关于FDTD 并行计算的有关问题
- 请问FDTD中如何改变光源的偏振态及如何获得能量的数值?
- Ansys Insight: 几个简单实用的脚本Script命令:用于结果分析
-
7742
-
4502
-
2961
-
1449
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.