-
-
April 24, 2023 at 1:01 pm
archimonde
Subscriber孙老师您好,在尝试导出XY视图图片时,发现从第九张图片开始,部分结构丢失了,前几张是全的。如图
使用脚本如下,循环生成结构后保存,再循环读取文件与导出结构图片
之后,我尝试在循环生成结构时直接导出图片
这次图片没丢失结构
但是有个问题,因为椭圆是最后生成的,有显眼的红点将它标记了,我不希望有这个标记。所以才想着生成文件后再读取
孙老师,您认为问题大概出在哪里呢
nm = 1e-9;
# 衬底
addrect;
set("name", "sub");
set("index", 1.45);
set("x", 0);
set("y", 0);
set("x span", 350*nm);
set("y span", 350*nm);
set("z max", 0);
set("z min", -300*nm);
# 椭圆
addcircle;
set("x",0);
set("y",0);
set("z min",0);
set("z max",5*nm);
set("radius", 54*nm);
set("make ellipsoid", true);
set("radius 2", 42*nm);
set("material", "C (graphene) - Falkovsky (mid-IR)");
set("name","ellipse");
len=5;
len1=5;
for (i=1:len)
{setnamed("ellipse", "radius", (54+i*2)*nm);
for (k=1:len1)
{
setnamed("ellipse", "radius 2", (42+k*2)*nm);
#save("D:\structure_fig\e\ellipse_"+num2str(54+2*i)+"_"+num2str(42+2*k)+".fsp");
exportview("D:\structure_fig\e\ellipse_"+num2str(54+2*i)+"_"+num2str(42+2*k), "XY");
}
}
#for (i=1:len)
#{ for(k=1:len1)
#{
#load("D:\structure_fig\e\ellipse_"+num2str(54+2*i)+"_"+num2str(42+2*k)+".fsp");
#exportview("D:\structure_fig\ellipse\ellipse_"+num2str(54+2*i)+"_"+num2str(42+2*k), "XY");
#}
#}
-
April 29, 2023 at 2:04 am
chunlian.li
Subscriber你好,生成的图片有标记应该是你在Objects Tree的madel里点选了结构“ellipse”。取消选择重新运行脚本,输出的图片是没有标记的。
-
- 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
- Ansys Insight: FDTD 和 varFDTD 常见的发散原因以及处理
- Ansys Insight: FDTD 如何设置圆偏振光
- Ansys Insight: FDTD Solutions 的光源类型及其典型应用:初学者
- 如何仿真一维光子晶体能带?
- Ansys Insight: 几个简单实用的脚本Script命令:用于结果分析
- Ansys Insight: FDTD 初学者: 平面波和全场散射场tfsf光源有什么区别
- Ansys Insight: 透射率反射率大于1,或者透射率反射率之和大于1的原因与解决方案–综合贴
- 老师,您好。FDTD中simulation bandidth和source中wavelength区别在哪里,仿真根据哪个进行?
- 左旋圆偏振光透过超表面后,获得的右旋圆偏振光能量比入射的左旋圆偏振光能量还要大?
-
5162
-
3273
-
2445
-
1308
-
956
© 2023 Copyright ANSYS, Inc. All rights reserved.