-
-
September 3, 2021 at 5:47 pm
Guilin Sun
Ansys Employee一般的计算机语言都有保留字符,它们具有特定的数值,用户最好不要用它们做变量名,Lumerical的Script也一样。常见的保留字符有 ·e:电荷1.60218e-019库仑 ?e; result: 1.60218e-019 ·h:普朗克常数6.62607e-034 J⋅s ?h; result: 6.62607e-034 ·hbar:Reduced Planck’s constant ?hbar; result: 1.05457e-034 ·c:真空中的光速 299792458 米每秒 ?c; result: 299792458 ·pi:圆周率 3.14159 ?pi; result: 3.14159 以上是使用短数据格式,如果使用长格式,则 format long; ?pi; result: 3.141592653589793还有其它很多英文字,例如三角函数和数学运算符号,以及下列单词:add, abs,all,any,angle,bar, break,cd, cell, clear, conj, connect, copy,cross,delete,dir,dot,erf,exist, exit,exp,expand, eye,fft,find, flip floor, for, format. get, global, grating, help, hide,histogram,if,image,insert,inv, legend, length, library,load, log, lower, is, matlab, matrix,max,min,mean, mesh,mold, move, new, norm,or, orbit, overlap, pause, pinch, plot, polar,precision,propagate, probe, pwd,rand, read, real,redo,refresh,replace,rm,round,run,save,select,set,show,sign,simulation, size,solar,spline,sqrt,system,transmission, transpose, try, undo, upper,version,visualize,which,write,zeros,等注意,上述禁词多数适用于每个产品,有的仅用于某个产品,例如INTERCONNECT。请注意查询,或者在设置变量是避免使用单个字母或者单个英语单词。自然对数的底e可以用下列方法得到 ?exp(1); result: 2.718281828459045 更多的脚本链接参见这个帖子: Ansys Insight: Lumerical脚本命令列表
-
- 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: 透射率反射率电场大于1,或者透射率反射率之和大于1的原因与解决方案–综合贴
- Ansys Insight: FDTD Solutions 的光源类型及其典型应用:初学者
- 左旋圆偏振光透过超表面后,获得的右旋圆偏振光能量比入射的左旋圆偏振光能量还要大?
- 有效折射率
- Ansys Insight: 关于FDTD 并行计算的有关问题
- Ansys Insight: 有关TE、TM偏振以及模式光源的问题
- 请问FDTD中如何改变光源的偏振态及如何获得能量的数值?
- Ansys Insight: 几个简单实用的脚本Script命令:用于结果分析
-
8808
-
4658
-
3151
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.