-
-
July 13, 2023 at 3:17 am
Hong Yiyu
Subscriber代码如下所示:
# set material and z span for all structures
selectall; # 选中当前群组范围内所有实体对象
set("material",material);
if(get("material")=="
{ set("index",index); }
# 从当前选择的实体对象(即结构组)获取所需的属性值
set("z",0);
set("z span",1e-6);
运行后报错,我这里前面代码没有定义变量material,但是我要是想定义材料为object defined material,该怎么定义呢
在这段代码中这句话set("material",material);我想设置为,但在运行代码后报错,请问该如何设置呢
-
July 13, 2023 at 10:02 pm
Guilin Sun
Ansys Employee这段脚本需要两个变量:
material
-
- 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命令:用于结果分析
-
7592
-
4440
-
2953
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.